This commit is contained in:
2023-03-17 16:34:39 +01:00
parent 51e2fd8d59
commit af34d20aee

View File

@@ -97,7 +97,6 @@ client.on(Events.InteractionCreate, async event => {
}) })
//! modals //! modals
const modalPath = path.join(__dirname, 'events', 'modals'); const modalPath = path.join(__dirname, 'events', 'modals');
const modalFiles = fs.readdirSync(modalPath).filter(file => file.endsWith('.js')); const modalFiles = fs.readdirSync(modalPath).filter(file => file.endsWith('.js'));
@@ -111,21 +110,16 @@ for (const file of modalFiles) {
} else { } else {
console.log(`[WARNING] The modal at ${filePath} is missing a required "name", "execute" or "type" property.`); console.log(`[WARNING] The modal at ${filePath} is missing a required "name", "execute" or "type" property.`);
} }
} }
client.once(Events.Ready, c => {
console.log(`Logged in as ${c.user.tag}!`);
});
client.on(Events.ClientReady, () => { client.on(Events.ClientReady, () => {
client.user.setActivity({ name: 'Illegitimate Guild.', type: ActivityType.Watching }); console.log("Logged in as " + client.user.tag + "!");
}); });
client.on(Events.ClientReady, () => { client.on(Events.ClientReady, () => {
client.user.setStatus('online'); client.user.setActivity({ name: 'over the Illegitimate Guild.', type: ActivityType.Watching });
});
client.on(Events.ClientReady, () => {
client.user.setStatus('dnd');
}); });
client.login(token); client.login(token);
connect(mongoURI, {}).then(() => { connect(mongoURI, {}).then(() => {