This commit is contained in:
@ -21,13 +21,16 @@ const client = new Client({
|
||||
const DDRNG_GUILD_ID = 148849688722800640;
|
||||
const DDRNG_ALLOWED_CHANNELS = [
|
||||
496061346446835732, 499656239572058132, 771329671953776661,
|
||||
556864412338749440,
|
||||
];
|
||||
client.commands = new Collection();
|
||||
client.ownerID = 263247134147608578;
|
||||
client.prefix = prefix;
|
||||
client.sharedEndpoint = process.env.SHARED_ENDPOINT;
|
||||
if (!client.sharedEndpoint)
|
||||
return log.error("client.sharedEndpoint is undefined.");
|
||||
return log.error(
|
||||
"client.sharedEndpoint (process.env.SHARED_ENDPOINT) is undefined."
|
||||
);
|
||||
|
||||
fs.readdir("./commands/", (err, files) => {
|
||||
if (err) return console.error(err);
|
||||
@ -68,7 +71,6 @@ client.on(Events.MessageCreate, async (message) => {
|
||||
try {
|
||||
await message.react(item.emoji);
|
||||
} catch (err) {
|
||||
message.channel.send("FAILED TO REACT TO MESSAGE! " + err);
|
||||
console.error("Failed to react to message:", err);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user