From 801539e4ace770701d6e0b621287992767218346 Mon Sep 17 00:00:00 2001 From: Sophie Mondz Date: Mon, 28 Feb 2022 12:56:15 -0600 Subject: [PATCH 01/28] Set the example userid --- config-example.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-example.json b/config-example.json index 4143d60..cacf3ee 100644 --- a/config-example.json +++ b/config-example.json @@ -1,7 +1,7 @@ { "prefix": "n!", "token": "IM SO EXCITED ABOUT BURGER", - "ownerID": "309427567004483586", + "ownerID": "MY FAVORITE COLOR IS TWELVE", "release": "anitrox_dev", "build": "Public Test Build 4" } From 418878981f1c2b772bdd5d178342a030c7885df4 Mon Sep 17 00:00:00 2001 From: Sophie Mondz Date: Mon, 28 Feb 2022 12:58:34 -0600 Subject: [PATCH 02/28] A proper readme --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e6472c1..a69a449 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ -# Anitrox Dev Branch -# anitrox_unstable -This is for the ultra-fresh builds of Anitrox and is **very** unstable. It is only avaliable in Anitrox Central. -# These builds are UNSUPPORTED and you will not be able to recieve support if there's a problem. It's best you wait for a new build if you're having a problem. +# Anitrox Dev Branch (anitrox_unstable) +This is the development branch for Anitrox, If you want those fresh hot Anitrox builds right from the oven, you've come to the right place! +# Dependencies to get started +To begin, you will need to satisfy the following dependencies: +Node.JS: 14 +npm: 6.14 +# Let's get this ~~party~~ bot started! +For first time start up, You will need to run ``npm install`` to install the needed npm packages. +Afterwards fill out the ``config-example.json`` and rename it to ``config.json``, then just run ``node start.js``! +⚠️ If you don't specify the Owner ID, Some commands such as the bot controls will be unusable! +# Support +Anitrox isn't really supported but you can get help from the Discord server if you need any: discord.gg/5nQtMNpf43 From 9ac012b995d252a24bda285be7fa71e1ef33ce08 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 18:15:39 -0500 Subject: [PATCH 03/28] Change build --- config-example.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config-example.json b/config-example.json index cacf3ee..9f45dc7 100644 --- a/config-example.json +++ b/config-example.json @@ -3,5 +3,5 @@ "token": "IM SO EXCITED ABOUT BURGER", "ownerID": "MY FAVORITE COLOR IS TWELVE", "release": "anitrox_dev", - "build": "Public Test Build 4" -} + "build": "Stable" +} \ No newline at end of file From 493680d03863b57efa91a77d1a92228b3e840d33 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 18:17:07 -0500 Subject: [PATCH 04/28] Remove unused icons.json and releasenotes --- icons.json | 7 ------- releasenotes.txt | 0 2 files changed, 7 deletions(-) delete mode 100644 icons.json delete mode 100644 releasenotes.txt diff --git a/icons.json b/icons.json deleted file mode 100644 index 39907aa..0000000 --- a/icons.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "denied": "<:AnitroxDenied:809651936642203668>", - "error": "<:AnitroxError:809651936563429416> ", - "info": "<:AnitroxInfo:809651936831733791>", - "success": "<:AnitroxSuccess:809651936819019796>", - "warning": "<:AnitroxWarning:809651934717804555>" -} \ No newline at end of file diff --git a/releasenotes.txt b/releasenotes.txt deleted file mode 100644 index e69de29..0000000 From 057b8f66bd6c8ee6d2606dda1e76f8a3eaa2d55b Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 21:47:23 -0500 Subject: [PATCH 05/28] Move statuses and footer to JSON, Simplify errors --- start.js | 51 +++++++++++++++------------------------------------ 1 file changed, 15 insertions(+), 36 deletions(-) diff --git a/start.js b/start.js index c80c52e..8ed2c8e 100644 --- a/start.js +++ b/start.js @@ -1,23 +1,10 @@ - console.log("Let's get started") const fs = require('fs'); const Discord = require('discord.js'); const { MessageActionRow, MessageButton } = require('discord.js') -const { build, release, prefix, token, footer } = require('./config.json'); +const { statuses, build, release, prefix, token, footerTxt } = require('./config.json'); const os = require("os"); -const activities_list = [ - "with np!help", - "with Sophie!", - "Trans Rights!", - "in your computer", - "with my internet router", - "ssh: system64@borkeonv2", - "YouTube", - "with source code", - "Visual Studio Code", - "Running Anitrox" + build -]; console.log('Starting! This should only take a moment.') const client = new Discord.Client(); client.commands = new Discord.Collection(); @@ -31,7 +18,7 @@ for (const file of commandFiles) { client.on("error", (e) => console.log("[ERROR]" + error(e))); client.on("warn", (e) => ("[WARN]" + warn(e))); -// Log errors and warnings ton console. +// Log errors to console. client.once('ready', () => { console.clear() console.log(' ___ _ __ '); @@ -42,12 +29,12 @@ client.once('ready', () => { console.log(release + ", " + build) console.log("All Systems Go. | Anitrox by IDeletedSystem64 | meow meow :3"); }); -// does a cool logo thingy on start up + setInterval(() => { - const index = Math.floor(Math.random() * (activities_list.length - 1) + 1); - client.user.setActivity(activities_list[index]); + const index = Math.floor(Math.random() * (statuses.length - 1) + 1); + client.user.setActivity(statuses[index]); }, 20000); -// runs some math to randomly pick a status from activites_list, this may need tuning when statuses are added/removed to make it more random (as it may just land on the current status instead) +// Picks a status from the config file client.on('message', message => { if (!message.content.startsWith(prefix) || message.author.bot) return; @@ -57,30 +44,22 @@ client.on('message', message => { if (!client.commands.has(command)) return; try { - client.commands.get(command).execute(client, message, args, Discord, footer); + client.commands.get(command).execute(client, message, args, footerTxt, Discord); } catch (error) { console.stack + const usr = message.author; const embed = { - "title": "<:AnitroxError:809651936563429416> **Well that happened...**", + "title": "<:AnitroxError:809651936563429416> **Something went wrong!**", + "description": error.stack, "color": 13632027, "footer": { - "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": footer - }, - "fields": [ - { - "name": "**What Happened?**", - "value": "The command you tried to run failed to execute due to an error." - }, - { - "name": "Error Info", - "value": error.stack - } - ] - }; + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt + } + }; message.channel.send({ embed }); // tries to run the executed command, if fails it will send a error msg with the error stack } }); -client.login(token); +client.login(token); \ No newline at end of file From 2c129c0e61747a217b0a524dbad64798f2f188d3 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 21:48:56 -0500 Subject: [PATCH 06/28] Simplify embed --- commands/ping.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/commands/ping.js b/commands/ping.js index e8a4ac0..bff4bc0 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -1,17 +1,19 @@ module.exports = { name: "ping", description: "Gets bot ping", - execute(client, message, args) { + execute(client, message) { + const {footerTxt} = require('../config.json'); + const embed = { "title": ":ping_pong: Ping", - "color": 9442302, - "fields": [ - { - "name": "Ping is " + client.ws.ping + " ms", - "value": "If this is more than 350ms there may be a problem!" - } - ] -}; -message.channel.send({ embed }); + "description": "**Pong!** " + client.ws.ping + " ms.", + "color": 9442302, + "footer": { + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt + } +} + + message.channel.send({ embed }); } }; From 165587b3cbf733b272747b88d9ceffb71803a087 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 21:49:52 -0500 Subject: [PATCH 07/28] Move statuses and footer --- config-example.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/config-example.json b/config-example.json index 9f45dc7..a04a7db 100644 --- a/config-example.json +++ b/config-example.json @@ -3,5 +3,22 @@ "token": "IM SO EXCITED ABOUT BURGER", "ownerID": "MY FAVORITE COLOR IS TWELVE", "release": "anitrox_dev", - "build": "Stable" + "build": "Stable", + "footerTxt": "Anitrox, made with <3 by IDeletedSystem64 | 2018-2022", + + "statuses": [ + "with np!help", + "with Sophie!", + "Trans Rights!", + "in your computer", + "with my internet router", + "ssh: system64@borkeonv2", + "YouTube", + "with source code", + "Visual Studio Code", + "Minecraft", + "with the network connections.", + "VLC Media Player", + "Chromium" +] } \ No newline at end of file From 2be9ee8b698e0a05fc73058d43e2529036c2e30e Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 21:55:08 -0500 Subject: [PATCH 08/28] ALL MY CODE KEEPS BLOWING UP! --- start.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/start.js b/start.js index 8ed2c8e..f59d261 100644 --- a/start.js +++ b/start.js @@ -1,11 +1,10 @@ -console.log("Let's get started") const fs = require('fs'); const Discord = require('discord.js'); const { MessageActionRow, MessageButton } = require('discord.js') const { statuses, build, release, prefix, token, footerTxt } = require('./config.json'); const os = require("os"); -console.log('Starting! This should only take a moment.') +console.log('Starting!') const client = new Discord.Client(); client.commands = new Discord.Collection(); @@ -27,7 +26,7 @@ client.once('ready', () => { console.log(' / ___ |/ / / / / /_/ / / /_/ /> < '); console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ') console.log(release + ", " + build) - console.log("All Systems Go. | Anitrox by IDeletedSystem64 | meow meow :3"); + console.log("All Systems Go. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!"); }); setInterval(() => { From 9940954ae9e8ac0a394b6cdad23078c69c7c792d Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 23:11:49 -0500 Subject: [PATCH 09/28] Remove statuses --- commands/userinfo.js | 52 +++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 30 deletions(-) diff --git a/commands/userinfo.js b/commands/userinfo.js index c8c05ed..ffe834b 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -1,31 +1,17 @@ module.exports = { - name: "userinfo", - description: "Gets info about an user, such as ID, Discord Join date and more.", + description: "Gets info about an user, such as ID, Discord Join date and more", + syntax: "", execute(client, message, args) { - - - - - - - const user = message.mentions.users.first(); - var i=0;i Date: Thu, 17 Mar 2022 23:32:20 -0500 Subject: [PATCH 10/28] Change math formula, add new answers --- commands/8ball.js | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/commands/8ball.js b/commands/8ball.js index 3f6c068..499359b 100644 --- a/commands/8ball.js +++ b/commands/8ball.js @@ -1,31 +1,42 @@ module.exports = { name: '8ball', description: 'Ask Anitrox a question, any question! and they will answer it!', + syntax: ["[Question]"], execute(client, message, args) { + const {footerTxt} = require('../config.json'); const answers = [ "Heck no!", "Are you crazy!? No!", "Don't even think about it.", "No! You might bork something!", "Heck yeah", - "YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE", + "I don't think so.", + "Let me think about it first. No.", + "Let me think about it first. Yeah", + "Let me think about it first. Maybe", + "I don't know man", + "Maybe", + "I'm not sure", + "Ask again", + "YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!!!", "Definitely!", - "Go for it! :smile:" - // This should have a 50/50 amount of yes and no answers for equality even though anitrox doesn't seem to care 🙃 + "Go for it! :smile:", + "Good idea!", + "Sure" ] - const index = Math.floor(Math.random() * (answers.length - 1) + 1); + const index = Object.keys(answers)[Math.floor(Math.random() * Object.keys(answers).length)]; var question = args.slice(0).join(" ") var answer = (answers[index]); console.log(args); if (!question) { const embed = { - "title": "<:AnitroxError:809651936563429416> Well that happened...", - "description": "You need to specify a question!", + "title": "<:AnitroxError:809651936563429416> **Something went wrong!**", + "description": "You need to ask a", "color": 13632027, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "placeholder" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt } } } @@ -34,8 +45,8 @@ module.exports = { "description": "Your question: **" + question + "**", "color": 9442302, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "placeholder" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ From f6cbe2ebd6d267e1c83546b62edc51cc296fa0d0 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 23:47:04 -0500 Subject: [PATCH 11/28] Rearrange embed --- commands/info.js | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/commands/info.js b/commands/info.js index 21fd2c5..648adcd 100644 --- a/commands/info.js +++ b/commands/info.js @@ -1,10 +1,11 @@ +const { Client, ClientUser } = require('discord.js'); module.exports = { name: 'info', description: 'Shows bot and host information', execute(client, message, args) { - const { build, release } = require('../config.json'); + const { build, release, footerTxt } = require('../config.json'); function Uptime(uptimetype) { let totalSeconds = (uptimetype / 1000); @@ -29,14 +30,14 @@ module.exports = { let botAvatar = client.user.displayAvatarURL() const embed = { "title": "<:AnitroxInfo:809651936831733791> Information about Anitrox", - "description": "Everything you've ever wanted to know about Anitrox!", + "description": "Everything you've ever wanted to know about your favorite bot, Anitrox!", "color": 9442302, "footer": { - "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "meow" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "thumbnail": { - "url": ("https://cdn.discordapp.com/avatars/576805923964715018/20f9b2815850dbbebd6d858308c90330.webp") + "url": client.user.displayAvatarURL() }, "fields": [ { @@ -45,19 +46,33 @@ module.exports = { }, { "name": "Release Type", - "value": release + "value": release, + "inline": true }, { "name": "Release Version", - "value": build + "value": build, + "inline": true }, { "name": "Uptime", - "value": Uptime(client.uptime) + "value": Uptime(client.uptime), + "inline": true }, { "name": "<:memory:793536677737136178> Bot Memory Usage", - "value": (Math.round(process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100) + " MiB" + "value": (Math.round(process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100) + " MiB", + "inline": true + }, + { + "name": "Bot Name", + "value": client.user.tag, + "inline": true + }, + { + "name": "Bot ID", + "value": "``" + client.user.id + "``", + "inline": true }, { "name": "<:hostinfo:793529505263517747> Host Information", From 21bc96157414a4289a1ac1937b378e3f6c1c9e35 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Thu, 17 Mar 2022 23:47:37 -0500 Subject: [PATCH 12/28] On second thought, that ID looks baaad --- commands/userinfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/userinfo.js b/commands/userinfo.js index ffe834b..d8adc8a 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -44,7 +44,7 @@ module.exports = { }, { "name": "User ID", - "value": "```" + user.id + "```" + "value": "``" + user.id + "``" }, { "name": "User Joined Discord", From 78b409c3c1a09eebd783a17d1dcf29358c479655 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 11:04:08 -0500 Subject: [PATCH 13/28] Change error embed footer, additional comments --- start.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/start.js b/start.js index f59d261..3c3169f 100644 --- a/start.js +++ b/start.js @@ -34,9 +34,11 @@ setInterval(() => { client.user.setActivity(statuses[index]); }, 20000); // Picks a status from the config file -client.on('message', message => { - if (!message.content.startsWith(prefix) || message.author.bot) return; +// Begin Command Handler +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(); @@ -53,11 +55,11 @@ client.on('message', message => { "color": 13632027, "footer": { "icon_url": message.author.displayAvatarURL(), - "text": footerTxt + "text": footerTxt + " | Something went wrong! :(" } }; message.channel.send({ embed }); - // tries to run the executed command, if fails it will send a error msg with the error stack +// End Command Handler } }); From 8e670215861a2d870571001e5f8343178dd5ed23 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 14:54:14 -0500 Subject: [PATCH 14/28] Change layout and remove dev --- commands/invite.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/commands/invite.js b/commands/invite.js index 77a02f1..d2d184a 100644 --- a/commands/invite.js +++ b/commands/invite.js @@ -2,15 +2,17 @@ module.exports = { name: 'invite', - description: 'Sends invite to add the bot to a server.', + description: 'Add Anitrox to your beautiful server!', + syntax: [], execute(client, message) { + const {footerTxt} = require('../config.json'); const embed = { - "title": "Add Anitrox to your Server", + "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 by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "thumbnail": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png" @@ -18,19 +20,15 @@ module.exports = { "fields": [ { "name": "Anitrox", - "value": "This is the stable main build. \n https://discord.com/oauth2/authorize?client_id=576805923964715018&scope=bot&permissions=8" + "value": "Get the ripe off the vine Anitrox! \n [Add Anitrox to your server](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." + "value": "So you want the fresh and hot builds straight from the oven? We gotchu \n [Add Anitrox PTB to your server](https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303)" }, { "name": "Need help?", - "value": "You can join the support server here: bit.ly/anitrox-help" + "value": "Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)" } ] From 809284e8f8d42abb4234e581efe0a633f25c9a21 Mon Sep 17 00:00:00 2001 From: Sophie Mondz Date: Fri, 18 Mar 2022 21:03:54 -0500 Subject: [PATCH 15/28] Create commands.md --- commands.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 commands.md diff --git a/commands.md b/commands.md new file mode 100644 index 0000000..713e94b --- /dev/null +++ b/commands.md @@ -0,0 +1,4 @@ +# Anitrox Command List +|Command|Arguments | +|-------|----------| +|Help |none | From db045972c15e6190592aeb0864435efcb3219ef2 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 21:26:36 -0500 Subject: [PATCH 16/28] Add ping locations --- config-example.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config-example.json b/config-example.json index a04a7db..b6e2ed2 100644 --- a/config-example.json +++ b/config-example.json @@ -20,5 +20,18 @@ "with the network connections.", "VLC Media Player", "Chromium" +], +"locations": [ +"Microsoft", +"LinusTechTips", +"Linus Torvalds", +"borkeonv2", +"Google", +"192.168.1.1", +"127.0.0.1", +"Sophie's computer", +"Mars", +"Elon Musk", +"TMC Software" ] } \ No newline at end of file From bdd45a7e4f0877489adee594ac54c990e8ce1177 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 21:27:09 -0500 Subject: [PATCH 17/28] Redo help embed --- commands/help.js | 68 +++++++++++++++++++----------------------------- 1 file changed, 27 insertions(+), 41 deletions(-) diff --git a/commands/help.js b/commands/help.js index 0cf7b16..bed475e 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,44 +1,30 @@ module.exports = { - - name: 'help', - description: '', - execute(client, message, args) { + + name: 'help', + description: 'Get help on anything from commands, to what the bot does! just not your homework..', + syntax: '', - const messageAuthor = message.author -const embed = { - "title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ", - "color": 9442302, - "description": "More commands are soon to come, stay tuned!", - "footer": { - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" - }, - "fields": [ - { - "name": "Utility Commands", - "value": "`help` ``info`` ``userinfo`` ``ping`` ``invite`` ``avatar``" - }, - { - "name": "Server Management Commands", - "value": "`setnick`" - }, - { - "name": "Action Commands", - "value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom` `leskiss` `snuggle`" - }, - { - "name": "**...or is the bot actually on fire? Come here for help and support!**", - "value": "bit.ly/anitrox-help" - }, - { - "name": "**Or you can view the bot progress, known issues, and planned features!**", - "value": "bit.ly/anitrox-trello" - }, - { - "name": "<:AnitroxInfo:809651936831733791> **The bot isn't yet fully finished. There's more to come! if I don't rewrite from scratch that is 😛**" - } + execute(client, message, args) { + const {footerTxt} = require('../config.json'); - ] - }; - message.channel.send({ embed }); -} -}; \ No newline at end of file + const Embed = { + "title": "HELP! SEYMOUR! THE BOT IS ON FIRE!", + "description": "Get help on anything from commands, to what the bot does! just not your homework..", + "color": 9442302, + "footer": { + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt + " | No mother it's just the northern lights" + }, + "fields": [ + { + "name": "Command List", + "value": "[Click here!](https://github.com/IDeletedSystem64/anitrox/blob/dev/commands.md)" + }, + { + "name": "...Or is the bot actually on fire?", + "value": "Join the [support server!](https://discord.gg/grebRGsBZ3)" + } + ] + }; + message.channel.send({ embed: Embed }); +}}; \ No newline at end of file From b2f169e05fe6cb6aa2267dcb09b1b5cf87bec0fd Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 21:28:05 -0500 Subject: [PATCH 18/28] Remove server creation (maybe readded in future.) --- commands/createserver.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 commands/createserver.js diff --git a/commands/createserver.js b/commands/createserver.js deleted file mode 100644 index d5f59a7..0000000 --- a/commands/createserver.js +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = { - name: 'serversetup', - description: 'Sets up channels and roles for your newly created server', - execute(client, message, args) { - const start = { - "title": " Beginning Server Setup...", - "description": "This will set up the following:\nStaff Roles\nStaff Channels\nServer Channels\nThis will not set up:\nAdvertisements (if applicable)\nModeration bots\n\nClick :white_check_mark: to Continue\nClick :x: to Cancel", - "color": 12390624, - "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" - } - }; - // Embeds - - message.channel.send({ embed: start }); - } - } -// This ain't even finished yet lmao \ No newline at end of file From b05a7335f84c5a945d7e93503f9b1d84cff74a88 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 21:28:59 -0500 Subject: [PATCH 19/28] buttontest wasn't intended for stable to begin with. --- commands/buttontest.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 commands/buttontest.js diff --git a/commands/buttontest.js b/commands/buttontest.js deleted file mode 100644 index 643cd22..0000000 --- a/commands/buttontest.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = { - name: "buttontest", - description: "buttontest", - execute(client, message, args) { -const buttonembed = { - "title": "buttontest", - "description": "anitrox buttontest", - "color": 9442302, - "footer": { - "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png", - "text": "footertext" - } -}; -message.channel.send({ embed: buttonembed }); - } -} \ No newline at end of file From 8f1583b8dac7ec7d607e47e71d59363216d50a43 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 21:29:44 -0500 Subject: [PATCH 20/28] Online status adding may be readded in the future. --- commands/addstatus.js | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 commands/addstatus.js diff --git a/commands/addstatus.js b/commands/addstatus.js deleted file mode 100644 index 2469412..0000000 --- a/commands/addstatus.js +++ /dev/null @@ -1,26 +0,0 @@ -const { Message } = require('discord.js'); -const fs = require('fs'); -module.exports = { - name: 'addstatus', - description: 'Adds a new custom status to Anitrox', - async execute(message, args) { - const embed = { - "title": "<:AnitroxSuccess:809651936819019796> Status Added", - "color": 3585665, - "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 by IDeletedSystem64" - }, - "fields": [ - { - "name": "Successfully added status!", - "value": "Added status " + args.slice(0,2) - } - ] - }; - const statuses = JSON.parse((await fs.promises.readFile('./statuses.json')).toString()) - statuses.push(args.slice(0,2)) - await fs.promises.writeFile('./statuses.json', JSON.stringify(ranges)); - Message.channel.send( {embed} ) - } - } \ No newline at end of file From 1ce206307121fbd224fe4ab4f809e3f0c48c3ed1 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 18 Mar 2022 21:31:07 -0500 Subject: [PATCH 21/28] Remove ban: Moderation is far from complete, I'd rather wait until moderation is actually added to readd banning --- commands/ban.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 commands/ban.js diff --git a/commands/ban.js b/commands/ban.js deleted file mode 100644 index c8549fb..0000000 --- a/commands/ban.js +++ /dev/null @@ -1,31 +0,0 @@ -const { GuildMember } = require("discord.js"); - -module.exports = { - name: "ban", - description: "Bans an user, This requires that you have ``BAN_MEMBERS`` or ``ADMINISTRATOR``", - execute(client, message, args) { - const banembed = { - "title": "<:usersuccess:793885338250641469> User Banned", - "description": "User ${user.tag} was banned!", - "color": 5736060, - "fields": [ - { - "name": "Reason", - "value": "reason" - } - ] - }; - const user = message.mentions.users.first(); - if (user) { - const member = message.guild.member(user); - if (member) { - member - .ban({ - reason: 'reason', - }) - .then(() => - - message.channel.send("bye lmao")); - - } - }}} \ No newline at end of file From d47a280bad1b0b0e79a80818810e4a1ce8713b0a Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Sat, 19 Mar 2022 10:43:33 -0500 Subject: [PATCH 22/28] Now pinging locations. --- commands/ping.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/ping.js b/commands/ping.js index bff4bc0..bfd0020 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -2,11 +2,13 @@ module.exports = { name: "ping", description: "Gets bot ping", execute(client, message) { - const {footerTxt} = require('../config.json'); + const {footerTxt, locations} = require('../config.json'); - const embed = { + const index = Math.floor(Math.random() * (locations.length -1 ) + 1); + PingLocation = locations[index] + const embed = { "title": ":ping_pong: Ping", - "description": "**Pong!** " + client.ws.ping + " ms.", + "description": "**Pong!** We pinged **" + PingLocation + "** and got " + client.ws.ping + " ms.", "color": 9442302, "footer": { "icon_url": message.author.displayAvatarURL(), From 71f582403cb22d7e88f121f83cf335d341a7c9e9 Mon Sep 17 00:00:00 2001 From: Sophie Mondz Date: Sat, 19 Mar 2022 19:06:20 -0500 Subject: [PATCH 23/28] Update commands.md --- commands.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commands.md b/commands.md index 713e94b..90f1f77 100644 --- a/commands.md +++ b/commands.md @@ -1,4 +1,11 @@ # Anitrox Command List +<> = Optionable +
+[] = Required + |Command|Arguments | |-------|----------| |Help |none | +|8ball |[Question]| +| +...I need to come back and finish this From 26d8a4f60d37f6e6be684b2ed4ad7fda01a496ee Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Mon, 21 Mar 2022 10:27:50 -0500 Subject: [PATCH 24/28] Rename userinfo to uinfo --- commands/userinfo.js | 58 -------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 commands/userinfo.js diff --git a/commands/userinfo.js b/commands/userinfo.js deleted file mode 100644 index d8adc8a..0000000 --- a/commands/userinfo.js +++ /dev/null @@ -1,58 +0,0 @@ -module.exports = { - name: "userinfo", - description: "Gets info about an user, such as ID, Discord Join date and more", - syntax: "", - execute(client, message, args) { - const {footerTxt} = require('../config.json'); - let user = message.mentions.users.first() || args[0] - if (!user) user = message.author - const embed = { - "title": "Everything you've ever wanted to know about " + user.username + "!", - "color": 9442302, - "footer": { - "icon_url": message.author.displayAvatarURL(), - "text": footerTxt - }, - - "thumbnail": { - "url": user.displayAvatarURL() - }, - "fields": [ - - { - "name": "Username", - "value": user.username, - "inline": true - }, - { - "name": "Discriminator", - "value": user.discriminator, - "inline": true - }, - { - "name": "Full Username", - "value": user.tag, - "inline": true - }, - { - "name": "User Profile Picture", - "value": user.displayAvatarURL() - }, - { - "name": "User Status", - value: user.presence.status - }, - { - "name": "User ID", - "value": "``" + user.id + "``" - }, - { - "name": "User Joined Discord", - "value": user.createdAt, - inline: true - }, - ] - }; - message.channel.send({ embed: embed }); - } - } From 17969f62a81cf5c032ce81688ff42d7e60926ea7 Mon Sep 17 00:00:00 2001 From: Sophie Mondz Date: Mon, 21 Mar 2022 10:28:55 -0500 Subject: [PATCH 25/28] Rename userinfo to uinfo --- commands/uinfo.js | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 commands/uinfo.js diff --git a/commands/uinfo.js b/commands/uinfo.js new file mode 100644 index 0000000..0cb944f --- /dev/null +++ b/commands/uinfo.js @@ -0,0 +1,58 @@ +module.exports = { + name: "uinfo", + description: "Gets info about an user, such as ID, Discord Join date and more", + syntax: "", + execute(client, message, args) { + const {footerTxt} = require('../config.json'); + let user = message.mentions.users.first() || args[0] + if (!user) user = message.author + const embed = { + "title": "Everything you've ever wanted to know about " + user.username + "!", + "color": 9442302, + "footer": { + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt + }, + + "thumbnail": { + "url": user.displayAvatarURL() + }, + "fields": [ + + { + "name": "Username", + "value": user.username, + "inline": true + }, + { + "name": "Discriminator", + "value": user.discriminator, + "inline": true + }, + { + "name": "Full Username", + "value": user.tag, + "inline": true + }, + { + "name": "User Profile Picture", + "value": user.displayAvatarURL() + }, + { + "name": "User Status", + value: user.presence.status + }, + { + "name": "User ID", + "value": "``" + user.id + "``" + }, + { + "name": "User Joined Discord", + "value": user.createdAt, + inline: true + }, + ] + }; + message.channel.send({ embed: embed }); + } + } From 978ccc323143c9cc3593d81da1bd96d8ce02c14c Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Mon, 21 Mar 2022 10:37:04 -0500 Subject: [PATCH 26/28] Change avatar to get from message author if no user is mentioned --- commands/avatar.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/commands/avatar.js b/commands/avatar.js index 061104c..3741e6e 100644 --- a/commands/avatar.js +++ b/commands/avatar.js @@ -2,15 +2,17 @@ module.exports = { name: "avatar", description: "Gets a users avatar.", execute(client, message, args) { - const user = message.mentions.users.first() + user = message.mentions.users.first() + if (!user) user = message.author + + const {footerTxt} = require('../config.json'); const embed = { - "title": ":frame_photo: " + user.username + "'s Avatar", - "description": "Here is " + user.username + "'s avatar!", + "title": ":frame_photo: " + user.username + "'s Beautiful Avatar!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": user.displayAvatarURL() From 9dbab772fced2cfc9dec8eaecb8e66f3b283d45a Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Mon, 21 Mar 2022 10:48:51 -0500 Subject: [PATCH 27/28] Finish command list --- commands.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/commands.md b/commands.md index 90f1f77..4a99be3 100644 --- a/commands.md +++ b/commands.md @@ -3,9 +3,25 @@
[] = Required -|Command|Arguments | -|-------|----------| -|Help |none | -|8ball |[Question]| -| -...I need to come back and finish this +|Command|Arguments |Description | +|-------|----------|------------| +|Help |none |Help? Help!!| +|8ball |[Question]|Ask a question, Any question! | +|avatar |\ |Get a users beautiful avatar | +|bonk |[Member] | Bonk, no horny. | +|cheese |\| Cheese.| +|cuddle |[Member] | Cuddle someone! | +|hug |[Member] | Hug someone! | +|info |none | Information about the bot and host. +|invite |none | Invite Anitrox to your server! +|kiss |[Member] | Kiss someone! | +|leskiss|[Member] | Lesbain kiss (Suggested by Emi) +|lick |[Member] | Did you just lick me!? +|nom |[Member] | Nom someone or something +|opensource| none | Source code for Anitrox +|pat |[Member] | Pat someone! +|ping |none | Ping Elon Musk! or Mars! nah jk, Discord. +|poke |[Member] | Poke someone! +|slap |[Member] | Slap someone :( +|snuggle|[Member] | Snuggle someone! +|uinfo |[Member] | Information about an user \ No newline at end of file From e4a64c51bfab3f4d6b7657e6d2ba4e712d1defd7 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Mon, 21 Mar 2022 12:55:29 -0500 Subject: [PATCH 28/28] Update all the commands to use new footer --- commands/bonk.js | 8 ++++---- commands/cheese.js | 10 ++++------ commands/cuddle.js | 9 ++++----- commands/hug.js | 12 ++++++------ commands/kiss.js | 6 +++--- commands/leskiss.js | 6 +++--- commands/lick.js | 8 ++++---- commands/nom.js | 6 +++--- commands/opensource.js | 7 ++++--- commands/pat.js | 10 +++++----- commands/poke.js | 8 ++++---- commands/slap.js | 10 +++++----- commands/snuggle.js | 6 +++--- 13 files changed, 52 insertions(+), 54 deletions(-) diff --git a/commands/bonk.js b/commands/bonk.js index 11e0fea..99da59f 100644 --- a/commands/bonk.js +++ b/commands/bonk.js @@ -3,8 +3,8 @@ module.exports = { name: "bonk", description: "Bonks an user!", execute(client, message, args) { - const messageAuthor = message.author const taggedUser = message.mentions.users.first(); + const {footerTxt} = require('../config.json'); const errorembed = { "title": "<:AnitroxError:809651936563429416> Error", "color": 13632027, @@ -27,11 +27,11 @@ module.exports = { const embed = { "title": " Bonk", - "description": "<@" + taggedUser + ">" + " You have been bonked by <@" + messageAuthor + ">!", + "description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif" diff --git a/commands/cheese.js b/commands/cheese.js index 6f78914..76aae42 100644 --- a/commands/cheese.js +++ b/commands/cheese.js @@ -3,10 +3,8 @@ module.exports = { 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(); - //--------------------------------- - + const {footerTxt} = require('../config.json'); if(!taggedUser) { return message.channel.send("*slams cheese on desk* Cheese. https://www.youtube.com/watch?v=Or4IE8fkpn4"); @@ -16,11 +14,11 @@ module.exports = { const embed = { "title": ":cheese: Cheesed", - "description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + messageAuthor + ">!", + "description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + message.author + ">!", "color": 16312092, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png" diff --git a/commands/cuddle.js b/commands/cuddle.js index 4f08ccf..b518f31 100644 --- a/commands/cuddle.js +++ b/commands/cuddle.js @@ -3,9 +3,8 @@ module.exports = { name: "cuddle", description: "Cuddle an user!", execute(client, message, args) { - const messageAuthor = message.author const taggedUser = message.mentions.users.first(); - + const {footerTxt} = require('../config.json'); // -------------------------------------- const gifchoices = [ "https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif", @@ -22,11 +21,11 @@ module.exports = { } const embed = { "title": ":heart: Cuddle", - "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!", + "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + message.author + ">!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/hug.js b/commands/hug.js index 47f6cf7..4c17632 100644 --- a/commands/hug.js +++ b/commands/hug.js @@ -3,7 +3,7 @@ module.exports = { name: "hug", description: "Hugs an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); const gifchoices = [ "https://cdn.discordapp.com/attachments/803658122299572255/807670647920001044/hug2.gif", @@ -17,8 +17,8 @@ module.exports = { "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", - "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": message.author.displayAvatarURL() }, "fields": [ { @@ -37,11 +37,11 @@ module.exports = { var gif = (gifchoices[index]); const embed = { "title": " Hug", - "description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + messageAuthor + ">!", + "description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + message.author + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/kiss.js b/commands/kiss.js index b220904..e4b8fca 100644 --- a/commands/kiss.js +++ b/commands/kiss.js @@ -3,7 +3,7 @@ module.exports = { name: "kiss", description: "Kisses an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); @@ -22,8 +22,8 @@ module.exports = { "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", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { diff --git a/commands/leskiss.js b/commands/leskiss.js index fa4982f..a94c328 100644 --- a/commands/leskiss.js +++ b/commands/leskiss.js @@ -6,8 +6,8 @@ module.exports = { name: "leskiss", description: "Lesbian kiss <:lesbian:803831629428686849>", execute(client, message, args) { - const messageAuthor = message.author const taggedUser = message.mentions.users.first(); + const {footerTxt} = require('../config.json'); // -------------------------------------- const gifchoices = [ "https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif", @@ -34,8 +34,8 @@ module.exports = { "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", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { diff --git a/commands/lick.js b/commands/lick.js index 87ab2e8..7d10aef 100644 --- a/commands/lick.js +++ b/commands/lick.js @@ -3,7 +3,7 @@ module.exports = { name: "lick", description: "Licks an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); //--------------------------------------------------- // -------------------------------------- @@ -41,11 +41,11 @@ if(!taggedUser) { const embed = { "title": " Lick", - "description": "<@" + taggedUser + "> You have been licked by <@" + messageAuthor + ">!", + "description": "<@" + taggedUser + "> You have been licked by <@" + message.author + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif" diff --git a/commands/nom.js b/commands/nom.js index b67fa75..d77eddd 100644 --- a/commands/nom.js +++ b/commands/nom.js @@ -3,7 +3,7 @@ module.exports = { name: "nom", description: "Noms an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); // -------------------------------------- @@ -43,8 +43,8 @@ module.exports = { "description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/opensource.js b/commands/opensource.js index 946ecab..342558d 100644 --- a/commands/opensource.js +++ b/commands/opensource.js @@ -2,13 +2,14 @@ module.exports = { name: 'opensource', description: 'Attributions to open source components used by Anitrox', execute(client, message, args){ - const embed = { + const {footerTxt} = require('../config.json'); + const embed = { "title": "Component Attribution", "description": "Some parts of Anitrox are using open source code, and their attributions are avaliable here!", "color": 52508, "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 by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "thumbnail": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/838854256471703602/793885335498522685.png" diff --git a/commands/pat.js b/commands/pat.js index 0e05524..adc8ee8 100644 --- a/commands/pat.js +++ b/commands/pat.js @@ -3,7 +3,7 @@ module.exports = { name: "pat", description: "Pats an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); // -------------------------------------- @@ -21,8 +21,8 @@ module.exports = { "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", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { @@ -42,8 +42,8 @@ module.exports = { "description": "<@" + taggedUser + "> You have been patted by <@" + messageAuthor + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/poke.js b/commands/poke.js index 6b8ebd0..d9a1fd5 100644 --- a/commands/poke.js +++ b/commands/poke.js @@ -21,8 +21,8 @@ module.exports = { "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", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { @@ -42,8 +42,8 @@ module.exports = { "description": "<@" + taggedUser + "> You have been poked by <@" + messageAuthor + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/slap.js b/commands/slap.js index 94ebaa9..106e0af 100644 --- a/commands/slap.js +++ b/commands/slap.js @@ -3,7 +3,7 @@ module.exports = { name: "slap", description: "Slaps an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); //--------------------------------------------------- @@ -12,8 +12,8 @@ const errorembed = { "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", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { @@ -33,8 +33,8 @@ if(!taggedUser) { "description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943" diff --git a/commands/snuggle.js b/commands/snuggle.js index 3869711..583219c 100644 --- a/commands/snuggle.js +++ b/commands/snuggle.js @@ -3,7 +3,7 @@ module.exports = { name: "snuggle", description: "Snuggle an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); // -------------------------------------- @@ -22,8 +22,8 @@ module.exports = { "description": "<@" + taggedUser + ">" + " You have been snuggled by " + "<@" + messageAuthor + ">!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif