Update indentation

This commit is contained in:
Nathaniel Mason 2022-04-18 17:03:01 +01:00
parent 3fd6a893dd
commit db5c9f4f55

View file

@ -32,20 +32,20 @@ client.generateErrorMessage = (errorMsg, messageAuthorURL) => ({embed: {
client.on("error", (e) => console.log(`[ERROR] ${error(e)}`)); client.on("error", (e) => console.log(`[ERROR] ${error(e)}`));
client.on("warn", (e) => (`[WARN] ${warn(e)}`)); client.on("warn", (e) => (`[WARN] ${warn(e)}`));
client.once('ready', () => { client.once('ready', () => {
console.clear() console.clear()
console.log(' ___ _ __ '); console.log(' ___ _ __ ');
console.log(' / | ____ (_) /__________ _ __'); console.log(' / | ____ (_) /__________ _ __');
console.log(' / /| | / __ \\/ / __/ ___/ __ \\| |/_/'); console.log(' / /| | / __ \\/ / __/ ___/ __ \\| |/_/');
console.log(' / ___ |/ / / / / /_/ / / /_/ /> < '); console.log(' / ___ |/ / / / / /_/ / / /_/ /> < ');
console.log('/_/ |_/_/ /_/_/\\__/_/ \\____/_/|_| '); console.log('/_/ |_/_/ /_/_/\\__/_/ \\____/_/|_| ');
console.log(`${config.release}, ${config.build}`); console.log(`${config.release}, ${config.build}`);
console.log("Bot online. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!"); console.log("Bot online. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!");
// Statuses // Statuses
setInterval(async () => { setInterval(async () => {
// Picks a status from the config file // Picks a status from the config file
const index = Math.floor(Math.random() * config.statuses.length); const index = Math.floor(Math.random() * config.statuses.length);
await client.user.setActivity(config.statuses[index]); await client.user.setActivity(config.statuses[index]);
}, 20000); }, 20000);
}); });
@ -53,27 +53,27 @@ client.once('ready', () => {
// Begin Command Handler // Begin Command Handler
client.on('message', async (message) => { client.on('message', async (message) => {
if (!message.content.startsWith(config.prefix) || message.author.bot) return; if (!message.content.startsWith(config.prefix) || message.author.bot) return;
const args = message.content.slice(config.prefix.length).split(/\s+/); const args = message.content.slice(config.prefix.length).split(/\s+/);
const command = args.shift().toLowerCase(); const command = args.shift().toLowerCase();
if (!client.commands.has(command)) return; if (!client.commands.has(command)) return;
try { try {
await client.commands.get(command).execute(client, message, args, config); await client.commands.get(command).execute(client, message, args, config);
} catch (error) { } catch (error) {
console.stack; console.stack;
message.channel.send({embed: { message.channel.send({embed: {
"title": "<:AnitroxError:809651936563429416> **Something went wrong!**", "title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
"description": error.stack, "description": error.stack,
"color": 13632027, "color": 13632027,
"footer": { "footer": {
"icon_url": message.author.displayAvatarURL(), "icon_url": message.author.displayAvatarURL(),
"text": config.footerTxt "text": config.footerTxt
}, },
}}); }});
} }
}); });
client.login(config.token); client.login(config.token);