diff --git a/README.md b/README.md index b3c0dd2..34a8bf6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Anitrox Dev # aka anitrox_unstable -This is for dev builds of Anitrox, This will be pushed to Anitrox PTB once things are confirmed working/finished. +This is for the dev branch of the bot, The bot can be used in the Support/Development server. diff --git a/commands/8ball.js b/commands/8ball.js index 2132040..4c324d1 100644 --- a/commands/8ball.js +++ b/commands/8ball.js @@ -18,10 +18,21 @@ module.exports = { var answer = (answers[index]); console.log(args); + if (!question) { + const embed = { + "title": "<:AnitroxError:809651936563429416> Well that happened...", + "description": "You need to specify a question!", + "color": 13632027, + "footer": { + "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + } + } + } const embed = { "title": ":8ball: Anitrox 8 Ball", "description": "Your question: **" + question + "**", - "color": 6942950, + "color": 9442302, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" @@ -35,5 +46,6 @@ module.exports = { ] }; message.channel.send({ embed }); + } } \ No newline at end of file diff --git a/commands/avatar.js b/commands/avatar.js new file mode 100644 index 0000000..6703783 --- /dev/null +++ b/commands/avatar.js @@ -0,0 +1,21 @@ +module.exports = { + name: "avatar", + description: "Gets a users avatar.", + execute(client, message, args) { + const user = message.mentions.users.first() + + const embed = { + "title": ":frame_photo: " + user.username + "'s Avatar", + "description": "Here is " + user.username + "'s avatar!", + "color": 9442302, + "footer": { + "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png", + "text": "Made with <3 in Illinois | Anitrox (C) 2018-2021 IDeletedSystem64" + }, + "image": { + "url": user.displayAvatarURL() + } + }; + message.channel.send({ embed }); + } +} diff --git a/commands/bonk.js b/commands/bonk.js index 41c7d5d..6daa809 100644 --- a/commands/bonk.js +++ b/commands/bonk.js @@ -6,7 +6,7 @@ module.exports = { const messageAuthor = message.author const taggedUser = message.mentions.users.first(); const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 13632027, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/cheese.js b/commands/cheese.js new file mode 100644 index 0000000..2dff733 --- /dev/null +++ b/commands/cheese.js @@ -0,0 +1,33 @@ +module.exports = { +//a + name: "cheese", + description: "Cheese an user, or run just ``n!cheese`` for a surprise :eyes:", + execute(client, message, args) { + const messageAuthor = message.author + const taggedUser = message.mentions.users.first(); + //--------------------------------- + + + if(!taggedUser) { + return message.channel.send("*slams cheese on desk* Cheese. https://www.youtube.com/watch?v=Or4IE8fkpn4"); + + } + + + const embed = { + "title": ":cheese: Cheesed", + "description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + messageAuthor + ">!", + "color": 16312092, + "footer": { + "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + }, + "image": { + "url": "https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png" + } + } + + + message.channel.send({ embed: embed }); + } + } diff --git a/commands/cuddle.js b/commands/cuddle.js index 15f1e41..a151285 100644 --- a/commands/cuddle.js +++ b/commands/cuddle.js @@ -17,6 +17,9 @@ module.exports = { var gif = (gifchoices[index]); // --------------------------------------- + if(!taggedUser) { + return message.channel.send("<:AnitroxError:809651936563429416> You need to specify an user!") + } const embed = { "title": ":heart: Cuddle", "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!", diff --git a/commands/help.js b/commands/help.js index d897d38..26b15e0 100644 --- a/commands/help.js +++ b/commands/help.js @@ -7,7 +7,7 @@ module.exports = { const messageAuthor = message.author const embed = { "title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ", - "color": 9540095, + "color": 9442302, "description": "More commands are soon to come, stay tuned!", "footer": { "text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021" diff --git a/commands/hug.js b/commands/hug.js index 0204a1f..47f6cf7 100644 --- a/commands/hug.js +++ b/commands/hug.js @@ -14,7 +14,7 @@ module.exports = { ]; //--------------------------------- const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/info.js b/commands/info.js index f96c97b..c051e9a 100644 --- a/commands/info.js +++ b/commands/info.js @@ -3,7 +3,8 @@ module.exports = { name: 'info', description: 'Shows bot and host information', - execute(client, message, args) { + execute(client, message, args,) { + const { build, release } = require('../config.json'); function Uptime(uptimetype) { let totalSeconds = (uptimetype / 1000); @@ -22,22 +23,20 @@ module.exports = { return uptime; }; - - -const version = ("Public Test Release 4.1 (build 444)") - const release = ("anitrox_ptb") + const os = require("os") - + var osu = require('node-os-utils') + var cpu = osu.cpu const embed = { - "title": "<:NyabotInfo:697145463350231040> Information about Anitrox", + "title": "<:AnitroxInfo:809651936831733791> Information about Anitrox", "description": "Everything you've ever wanted to know about Anitrox!", - "color": 11038194, + "color": 9442302, "footer": { "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021 " }, "thumbnail": { - "url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png" + "url": ("https://cdn.discordapp.com/avatars/576805923964715018/20f9b2815850dbbebd6d858308c90330.webp") }, "fields": [ { @@ -50,7 +49,7 @@ const version = ("Public Test Release 4.1 (build 444)") }, { "name": "Release Version", - "value": version + "value": build }, { "name": "Uptime", @@ -70,7 +69,7 @@ const version = ("Public Test Release 4.1 (build 444)") }, { "name": "<:cpu:793672442056802354> CPU Type", - "value": process.arch + "value": process.arch + ", " + cpu.model() }, { @@ -93,7 +92,7 @@ const version = ("Public Test Release 4.1 (build 444)") }, { "name": "<:usersuccess:793885338250641469> **Special Thanks To**", - "value": "@OfficialTCGMatt for providing help with development/n @chuu_shi Allowing me to host Anitrox on his server" + "value": "@OfficialTCGMatt for providing help with development\n @chuu_shi Allowing me to host Anitrox on his server" } ] diff --git a/commands/invite.js b/commands/invite.js index 4a85195..1e5156b 100644 --- a/commands/invite.js +++ b/commands/invite.js @@ -4,6 +4,37 @@ module.exports = { name: 'invite', description: 'Sends invite to add the bot to a server.', execute(client, message) { - message.channel.send("PTB: https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303"); + const embed = { + "title": "Add Anitrox to your Server", + "description": "Weather you want stable, or that squeaky clean fresh PTB build, we gotchu.", + "color": 9442302, + "footer": { + "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + }, + "thumbnail": { + "url": "https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png" + }, + "fields": [ + { + "name": "Anitrox", + "value": "This is the stable main build. \n https://discord.com/oauth2/authorize?client_id=576805923964715018&scope=bot&permissions=8" + }, + { + "name": "Anitrox PTB (Public Test Build)", + "value": "This is the PTB build, which has new features as they are pushed out. and is generally stable. \n https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303" + }, + { + "name": "Anitrox Dev (Unstable)", + "value": "This isn't availiable for invite, though it is availiable on the support server." + }, + { + "name": "Need help?", + "value": "You can join the support server here: bit.ly/anitrox-help" + } + + ] + }; + message.channel.send({ embed }); }, }; \ No newline at end of file diff --git a/commands/kiss.js b/commands/kiss.js index 2e80494..2273463 100644 --- a/commands/kiss.js +++ b/commands/kiss.js @@ -19,7 +19,7 @@ module.exports = { var gif = (gifchoices[index]); // --------------------------------------- const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 13632027, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/leskiss.js b/commands/leskiss.js index 9412e16..5f83b2a 100644 --- a/commands/leskiss.js +++ b/commands/leskiss.js @@ -31,7 +31,7 @@ module.exports = { var gif = (gifchoices[index]); // --------------------------------------- const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/lick.js b/commands/lick.js index 4851bbf..87ab2e8 100644 --- a/commands/lick.js +++ b/commands/lick.js @@ -20,7 +20,7 @@ var gif = (gifchoices[index]); // --------------------------------------- //--------------------------------------------------- const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/nom.js b/commands/nom.js index 4956020..98f4961 100644 --- a/commands/nom.js +++ b/commands/nom.js @@ -19,7 +19,7 @@ module.exports = { var gif = (gifchoices[index]); // --------------------------------------- const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/pat.js b/commands/pat.js index 033b062..54dc598 100644 --- a/commands/pat.js +++ b/commands/pat.js @@ -18,7 +18,7 @@ module.exports = { var gif = (gifchoices[index]); // --------------------------------------- const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/ping.js b/commands/ping.js index e137f35..17b350b 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -4,7 +4,7 @@ module.exports = { execute(client, message, args) { const embed = { "title": ":ping_pong: Ping", - "color": 15433939, + "color": 9442302, "fields": [ { "name": "Ping is " + client.ws.ping + " ms", diff --git a/commands/poke.js b/commands/poke.js index eb04bfb..1803d64 100644 --- a/commands/poke.js +++ b/commands/poke.js @@ -18,7 +18,7 @@ module.exports = { var gif = (gifchoices[index]); // --------------------------------------- const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/reload.js b/commands/reload.js index 387c418..a434e39 100644 --- a/commands/reload.js +++ b/commands/reload.js @@ -2,7 +2,7 @@ module.exports = { name: 'reload', description: 'Reloads a command', args: true, - execute(client, message, args) { + execute(client, message, args, denied) { if (message.author.id == 309427567004483586) { const commandName = args[0].toLowerCase(); const command = message.client.commands.get(commandName) @@ -21,7 +21,7 @@ module.exports = { console.log('User reloaded ${command.name}.') } catch (error) { console.error(error); - message.channel.send(`There was an error while reloading \`${command.name}\`:\n\`${error.message}\``); + message.channel.send(`<:AnitroxError:809651936563429416> There was an error while reloading \`${command.name}\`:\n\`${error.message}\``); } } else { const embed = { diff --git a/commands/restart.js b/commands/restart.js index 9c6e695..009cc4a 100644 --- a/commands/restart.js +++ b/commands/restart.js @@ -3,7 +3,7 @@ module.exports = { name: 'restart', description: '(Owner Only) Shuts down the bot.', execute(client, message, args) { - const { token } = require('./config.json'); + const { token } = require('../config.json'); if (message.author.id == 309427567004483586) { message.channel.send(" Restarting...").then client.destroy() diff --git a/commands/setnick.js b/commands/setnick.js new file mode 100644 index 0000000..99afa6b --- /dev/null +++ b/commands/setnick.js @@ -0,0 +1,49 @@ +module.exports = { + name: 'setnick', + description: 'Sets your nickname', + execute(client, message, args) { + + if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")) { + var newnick = args.slice(0).join(" ") + + try { + const successembed = { + "title": "<:AnitroxSuccess:809651936819019796> Nickname Changed", + "color": 9442302, + "footer": { + "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + }, + "fields": [ + { + "name": "Changed nickname successfully!", + "value": "You need to have permission ``CHANGE_NICKNAME`` to change your nick!" + }, + { + "name": "New Nickname", + "value": newnick, + "inline": true + } + ] + }; + message.member.setNickname(newnick, "Nickname change requested by the server member. If you don't want users to be able to change their nickname disable 'CHANGE_NICKNAME' via Change Nickname in Roles.") + message.channel.send({ embed: successembed }); + } catch (error) { + const failembed = { + "title": "<:AnitroxDenied:809651936642203668> Well that happened...", + "color": 13632027, + "footer": { + "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + }, + "fields": [ + { + "name": "Failed to set nickname", + "value": "You need to have permission ``CHANGE_NICKNAME`` to change your nick!" + } + ] + }; + message.channel.send({ embed: failembed }); + }; + }; +}} diff --git a/commands/slap.js b/commands/slap.js index 0582203..721acb8 100644 --- a/commands/slap.js +++ b/commands/slap.js @@ -9,7 +9,7 @@ module.exports = { //--------------------------------------------------- const errorembed = { - "title": "<:NyabotError:697145462347661412> Error", + "title": "<:AnitroxError:809651936563429416> Error", "color": 13632027, "footer": { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", diff --git a/commands/stop.js b/commands/stop.js index 46a1e6b..7b3fe5f 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -1,13 +1,32 @@ - module.exports = { - name: 'stop', - description: '(Owner Only) Shuts down the bot.', + name: "stop", + description: "Stops the bot", execute(client, message, args) { if (message.author.id == 309427567004483586) { - message.channel.send(" Shutting Down...").then - client.destroy() - .catch(console.error) + const embed = { + "title": " **Shutting Down...**", + "description": "See you next time!", + "color": 9442302, + "footer": { + "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + } + }; + message.channel.send({ embed }); + setTimeout(function(){ + client.destroy() + }, 5000); } else { - message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command."); + const denied = { + "title": ":AnitroxDenied: Access Denied", + "description": "You need to be the bot owner to execute this command!", + "color": 13632027, + "footer": { + "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + } + }; + message.channel.send({ denied }); + } } - }} \ No newline at end of file + } \ No newline at end of file diff --git a/commands/userinfo.js b/commands/userinfo.js index 4d2e9c2..71723c7 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -13,10 +13,12 @@ module.exports = { var i=0;i", - "ownerID": "309427567004483586" + "token": "token", + "ownerID": "309427567004483586", + "release": "anitrox_ptb", + "build": "Anitrox Stable Release Canidiate 1" } diff --git a/icons.json b/icons.json new file mode 100644 index 0000000..39907aa --- /dev/null +++ b/icons.json @@ -0,0 +1,7 @@ +{ + "denied": "<:AnitroxDenied:809651936642203668>", + "error": "<:AnitroxError:809651936563429416> ", + "info": "<:AnitroxInfo:809651936831733791>", + "success": "<:AnitroxSuccess:809651936819019796>", + "warning": "<:AnitroxWarning:809651934717804555>" +} \ No newline at end of file diff --git a/start.js b/start.js index a51d4c6..f460495 100644 --- a/start.js +++ b/start.js @@ -1,97 +1,100 @@ -console.log('Preparing to start!') -const fs = require('fs'); -const Discord = require('discord.js'); -const { prefix, token } = require('./config.json'); -const os = require("os"); - -const version = "build 465"; - -const release = "anitrox_ptb" -const activities_list = [ - "with np!help", - "Where am I?", - "with Sylveons!", - "on my host's hard disk", - "with Sophie", - "HAAAAAAAAPPPPPPPYYYYYYYYYYYYYYYYYYYY", - "Running on " + process.platform + " / " + os.version() + "!", - "with the tea machine", - "with Borked Computers", - "on Sophie's main PC- wait shoot she's coming", - "btw I use Debian linux", - "Watching you", - "Running " + release + " Version " + version, - "in Incognito Mode- wait what", - "uwu", - "Team Fortress 2 with Sophie", - "videos on Hulu", - "American Truck Simulator", - "with my users!", - "with Sophies skirt" -]; - -console.log('Starting! This should only take a moment.') -const client = new Discord.Client(); -client.commands = new Discord.Collection(); -const footicon = "https://cdn.discordapp.com/attachments/803658122299572255/805506708352008232/system64.png" -const footer = "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" - -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); -} - -client.on("error", (e) => console.error(e)); -client.on("warn", (e) => console.warn(e)); - -client.once('ready', () => { - console.log(' ___ _ __ '); - console.log(' / | ____ (_) /__________ _ __'); - console.log(' / /| | / __ \/ / __/ ___/ __ \| |/_/'); - console.log(' / ___ |/ / / / / /_/ / / /_/ /> < '); - console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ') - - console.log('All Systems Go. | Anitrox (C) 2021 IDeletedSystem64.'); -}); -setInterval(() => { - const index = Math.floor(Math.random() * (activities_list.length - 1) + 1); - client.user.setActivity(activities_list[index]); -}, 20000); - -client.on('message', message => { - 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; - - try { - client.commands.get(command).execute(client, message, args); - } catch (error) { - console.error - const embed = { - "title": "<:NyabotError:697145462347661412> **Well that happened...**", - "color": 13632027, - "footer": { - "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved." - }, - "fields": [ - { - "name": "**What Happened?**", - "value": "The command you tried to run failed to execute due to an error." - }, - { - "name": "Error Info", - "value": error.message - } - ] - }; - message.channel.send({ embed }); - } -}); - -client.login(token); +console.log('Preparing to start!') +const fs = require('fs'); +const Discord = require('discord.js'); +const { build, release, prefix, token } = require('./config.json'); +const { denied, error, info, success, warning } = require('./icons.json'); +const os = require("os"); + +const activities_list = [ + "with np!help", + "Where am I?", + "with Sylveons!", + "on my host's hard disk", + "with Sophie", + "HAAAAAAAAPPPPPPPYYYYYYYYYYYYYYYYYYYY", + "Running on " + process.platform + " / " + os.version() + "!", + "with the tea machine", + "with Borked Computers", + "on Sophie's main PC- wait shoot she's coming", + "btw I use Debian linux", + "Watching you", + "Running " + release + " Version " + build, + "in Incognito Mode- wait what", + "uwu", + "Team Fortress 2 with Sophie", + "videos on Hulu", + "American Truck Simulator", + "with my users!", + "with Sophies skirt", + "Euro Truck Simulator 2", + "with a screwdriver", + "Found new hardware.", + "@everyone" +]; + +console.log('Starting! This should only take a moment.') +const client = new Discord.Client(); +client.commands = new Discord.Collection(); +const footicon = "https://cdn.discordapp.com/attachments/803658122299572255/805506708352008232/system64.png" +const footer = "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + +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); +} + +client.on("error", (e) => console.error(e)); +client.on("warn", (e) => console.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 (C) 2021 IDeletedSystem64.'); +}); +setInterval(() => { + const index = Math.floor(Math.random() * (activities_list.length - 1) + 1); + client.user.setActivity(activities_list[index]); +}, 20000); + +client.on('message', message => { + 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; + + try { + client.commands.get(command).execute(client, message, args, Discord); + } catch (error) { + console.error + const embed = { + "title": "<:AnitroxError:809651936563429416> **Well that happened...**", + "color": 13632027, + "footer": { + "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved." + }, + "fields": [ + { + "name": "**What Happened?**", + "value": "The command you tried to run failed to execute due to an error." + }, + { + "name": "Error Info", + "value": error.stack + } + ] + }; + message.channel.send({ embed }); + } +}); + +client.login(token);