fix bug with dm
This commit is contained in:
parent
218c9f22e5
commit
bcd51de025
@ -8,7 +8,7 @@ var commands = require("./commands");
|
||||
var app = require("./www");
|
||||
|
||||
client.on("messageCreate", async message => {
|
||||
if (message.guild.id != config.guild) return;
|
||||
if (message.guild?.id != config.guild) return;
|
||||
if (message.author.id == client.user.id) return;
|
||||
let pixiv_urls = new Set(message.content.match(/https?:\/\/(?:www\.)?pixiv\.net(?:\/en)?\/artworks\/\d+\b/g));
|
||||
if (!pixiv_urls.size) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user