diff --git a/commands/eval.js b/commands/eval.js index b94dde9..d98ac1d 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -2,10 +2,10 @@ const { inspect } = require("util"); module.exports = { - name: 'eval', - description: 'Runs js code', - async execute(_, message, args, footerTxt) { - if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) { + name: 'eval', + description: 'Runs js code', + async execute(_, message, args, footerTxt) { + if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) { try { const code = args.join(" "); const evaled = inspect(eval(code)); diff --git a/commands/info.js b/commands/info.js index a58b9d5..24eeecf 100644 --- a/commands/info.js +++ b/commands/info.js @@ -2,9 +2,9 @@ const {build, release} = require('../config.json'); module.exports = { - name: 'info', - description: 'Shows bot and host information', - async execute(client, message, _, footerTxt) { + name: 'info', + description: 'Shows bot and host information', + async execute(client, message, _, footerTxt) { function Uptime(uptime) { const totalSeconds = (uptime / 1000); diff --git a/commands/invite.js b/commands/invite.js index ce04d12..609357c 100644 --- a/commands/invite.js +++ b/commands/invite.js @@ -1,9 +1,9 @@ module.exports = { - name: 'invite', - description: 'Add Anitrox to your beautiful server!', - syntax: [], - async execute(_0, message, _1, footerTxt) { + name: 'invite', + description: 'Add Anitrox to your beautiful server!', + syntax: [], + async execute(_0, message, _1, footerTxt) { await message.channel.send({embed: { "title": "Add Anitrox to your Server!", "description": "Weather you want stable, or that squeaky clean fresh PTB build, we gotchu.", @@ -30,5 +30,5 @@ module.exports = { } ] }}); - }, + }, }; \ No newline at end of file diff --git a/commands/reload.js b/commands/reload.js index b04dbba..6f89903 100644 --- a/commands/reload.js +++ b/commands/reload.js @@ -1,8 +1,8 @@ module.exports = { - name: 'reload', - description: 'Reloads a command', - async execute(client, message, args, footerTxt) { - if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) { + name: 'reload', + description: 'Reloads a command', + async execute(client, message, args, footerTxt) { + if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) { if (!args.length) { await message.channel.send(client.generateErrorMessage("You forgot to provide anything to reload, you pillock",message.author.displayAvatarURL())); } @@ -43,6 +43,6 @@ module.exports = { } ] }}); - } - } + } + } }; \ No newline at end of file diff --git a/start.js b/start.js index 117f0c0..958cb8c 100755 --- a/start.js +++ b/start.js @@ -11,8 +11,8 @@ client.commands = new Discord.Collection(); const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); for (const file of commandFiles) { - const command = require(`./commands/${file}`); - client.commands.set(command.name, command); + const command = require(`./commands/${file}`); + client.commands.set(command.name, command); } client.generateErrorMessage = (errorMsg, messageAuthorURL) => ({embed: { @@ -33,47 +33,47 @@ client.generateErrorMessage = (errorMsg, messageAuthorURL) => ({embed: { client.on("error", (e) => console.log(`[ERROR] ${error(e)}`)); client.on("warn", (e) => (`[WARN] ${warn(e)}`)); client.once('ready', () => { - console.clear() - console.log(' ___ _ __ '); - console.log(' / | ____ (_) /__________ _ __'); - console.log(' / /| | / __ \\/ / __/ ___/ __ \\| |/_/'); - console.log(' / ___ |/ / / / / /_/ / / /_/ /> < '); - console.log('/_/ |_/_/ /_/_/\\__/_/ \\____/_/|_| '); - console.log(`${release}, ${build}`); - console.log("All Systems Go. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!"); + console.clear() + console.log(' ___ _ __ '); + console.log(' / | ____ (_) /__________ _ __'); + console.log(' / /| | / __ \\/ / __/ ___/ __ \\| |/_/'); + console.log(' / ___ |/ / / / / /_/ / / /_/ /> < '); + console.log('/_/ |_/_/ /_/_/\\__/_/ \\____/_/|_| '); + console.log(`${release}, ${build}`); + console.log("All Systems Go. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!"); }); setInterval(async () => { // Picks a status from the config file - const index = Math.floor(Math.random() * statuses.length); - await client.user.setActivity(statuses[index]); + const index = Math.floor(Math.random() * statuses.length); + await client.user.setActivity(statuses[index]); }, 20000); // Begin Command Handler client.on('message', async (message) => { - if (!message.content.startsWith(prefix) || message.author.bot) return; + if (!message.content.startsWith(prefix) || message.author.bot) return; - const args = message.content.slice(prefix.length).split(/ +/); - const command = args.shift().toLowerCase(); - - if (!client.commands.has(command)) return; + const args = message.content.slice(prefix.length).split(/ +/); + const command = args.shift().toLowerCase(); + + if (!client.commands.has(command)) return; - try { - await client.commands.get(command).execute(client, message, args, footerTxt); - } catch (error) { - console.stack; - message.channel.send({embed: { - "title": "<:AnitroxError:809651936563429416> **Something went wrong!**", - "description": error.stack, - "color": 13632027, + try { + await client.commands.get(command).execute(client, message, args, footerTxt); + } catch (error) { + console.stack; + message.channel.send({embed: { + "title": "<:AnitroxError:809651936563429416> **Something went wrong!**", + "description": error.stack, + "color": 13632027, "footer": { "icon_url": message.author.displayAvatarURL(), "text": footerTxt }, - }}); - } + }}); + } }); client.login(token); \ No newline at end of file