pushing untested code is fun
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 23s
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 23s
This commit is contained in:
10
bot/index.js
10
bot/index.js
@ -18,6 +18,10 @@ const client = new Client({
|
|||||||
GatewayIntentBits.MessageContent,
|
GatewayIntentBits.MessageContent,
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
const DDRNG_GUILD_ID = 148849688722800640;
|
||||||
|
const DDRNG_ALLOWED_CHANNELS = [
|
||||||
|
496061346446835732, 499656239572058132, 771329671953776661,
|
||||||
|
];
|
||||||
client.commands = new Collection();
|
client.commands = new Collection();
|
||||||
client.ownerID = 263247134147608578;
|
client.ownerID = 263247134147608578;
|
||||||
client.prefix = prefix;
|
client.prefix = prefix;
|
||||||
@ -71,7 +75,11 @@ client.on(Events.MessageCreate, async (message) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (message.content.indexOf(prefix) !== 0) return;
|
if (message.content.indexOf(prefix) !== 0) return;
|
||||||
|
if (
|
||||||
|
message.guildId == DDRNG_GUILD_ID &&
|
||||||
|
!DDRNG_ALLOWED_CHANNELS.find((id) => id == message.channelId)
|
||||||
|
)
|
||||||
|
return;
|
||||||
const args = message.content.slice(prefix.length).trim().split(/ +/g);
|
const args = message.content.slice(prefix.length).trim().split(/ +/g);
|
||||||
const command = args.shift().toLowerCase();
|
const command = args.shift().toLowerCase();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user