From d0c16e431b65627cb7150af76cd7cbf2a080f737 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Wed, 20 Jan 2021 21:05:57 -0600 Subject: [PATCH 1/4] Delete userinfo.js --- commands/userinfo.js | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 commands/userinfo.js diff --git a/commands/userinfo.js b/commands/userinfo.js deleted file mode 100644 index 39a8346..0000000 --- a/commands/userinfo.js +++ /dev/null @@ -1,42 +0,0 @@ -module.exports = { - - name: "userinfo", - description: "Gets info about an user, such as ID, Discord Join date and more.", - execute(client, message, args) { - - const taggedUser = message.mentions.users.first(); - const embed = { - "title": "Everything you've ever wanted to know about taggedUser.username!", - "color": 172544, - "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" - }, - // This should get the user icon to display as the command thumbnail. - "thumbnail": { - "url": "https://cdn.discordapp.com/embed/avatars/0.png" - }, - "fields": [ - { - "name": "Full Username", - "value": taggedUser.tag - }, - { - "name": "User ID", - "value": "``" + taggedUser.id + "``" - }, - { - "name": "User Joined Discord", - "value": taggedUser.CreatedAt, - "inline": true - }, - { - "name": "User Joined Server", - "value": "tba", - "inline": true - } - ] - }; - message.channel.send({ embed }); - } - } From 9b22994a684e044012bf667fddcf68bd75b665dd Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Wed, 20 Jan 2021 21:11:17 -0600 Subject: [PATCH 2/4] Add restart.js --- commands/restart.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 commands/restart.js diff --git a/commands/restart.js b/commands/restart.js new file mode 100644 index 0000000..aca1d34 --- /dev/null +++ b/commands/restart.js @@ -0,0 +1,17 @@ + +module.exports = { + name: 'restart', + description: '(Owner Only) Shuts down the bot.', + execute(client, message, args) { + const token=("") + if (message.author.id == 309427567004483586) { + message.channel.send(" Restarting...").then + client.destroy() + .catch(console.error) + .then + client.login(token); + message.channel.send("<:NyabotSuccess:697211376740859914> Restart Successful") + } else { + message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command."); + } + }} \ No newline at end of file From 1af63e8d2101a89f4e8dad9431935aa12b196028 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Wed, 20 Jan 2021 21:18:20 -0600 Subject: [PATCH 3/4] Add userinfo.js --- commands/userinfo.js | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 commands/userinfo.js diff --git a/commands/userinfo.js b/commands/userinfo.js new file mode 100644 index 0000000..42ddd99 --- /dev/null +++ b/commands/userinfo.js @@ -0,0 +1,52 @@ +const { User } = require("discord.js"); + +module.exports = { + + name: 'userinfo', + description: 'Shows information about you or another user.', + execute(client, message, args) { + const taggedUser = message.mentions.users.first(); + + + //Actual code + const embed = { + "title": "<:userinfo:793885335498522685> **User Information**", + "description": "Everything you've ever wanted to know about **" + taggedUser.username + ("!**"), + "color": 11038194, + + "footer": { + "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Anitrox © IDeletedSystem64 2018-2021. All Rights Reserved" + }, + "thumbnail": { + "url": taggedUser.displayAvatarURL({ dynamic: true }) + }, + "fields": [ + { + "name": "<:userquestion:793984046912110633> **Full Username**", + "value": taggedUser.username + ("#") + taggedUser.discriminator + }, + { + "name": "<:userquestion:793984046912110633> User Status", + "value": taggedUser.status, + "value": taggedUser.presence + }, + { + "name": "<:userquestion:793984046912110633> User ID", + "value": taggedUser.id + }, + { + "name": "<:userquestion:793984046912110633> User Joined Discord", + "value": taggedUser.CreatedAt, + "inline": true + }, + { + "name": "<:userquestion:793984046912110633> User Joined Server", + "value": "tba", + "inline": true + } + ] + }; + message.channel.send({ embed }); + } + }; \ No newline at end of file From eed388c77a231674c5d9def54a34d278eef9400a Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Wed, 20 Jan 2021 21:19:06 -0600 Subject: [PATCH 4/4] Update to build 429 --- commands/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/info.js b/commands/info.js index cee00d1..573bd7c 100644 --- a/commands/info.js +++ b/commands/info.js @@ -24,7 +24,7 @@ module.exports = { -const version = ("Public Test Buld 3, Based on dev Build 424") +const version = ("Public Test Buld 4, Based on dev Build 429") const release = ("anitrox_ptb") const os = require("os")