From 55797574975c89c5ee3ff8aaab27b266fb7c6565 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Tue, 26 Jan 2021 23:15:07 -0600 Subject: [PATCH 1/4] Hotfix for leskiss ``message.author`` was set as `message.messageAuthor` due to VSCode. --- commands/leskiss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/leskiss.js b/commands/leskiss.js index d803185..6dc0ea5 100644 --- a/commands/leskiss.js +++ b/commands/leskiss.js @@ -6,7 +6,7 @@ module.exports = { name: "leskiss", description: "Lesbian kiss <:lesbian:803831629428686849>", execute(client, message, args) { - const messageAuthor = message.messageAuthor + const messageAuthor = message.author const taggedUser = message.mentions.users.first(); // -------------------------------------- const gifchoices = [ From 3c7ecffcd43cdef9a549ad731a5e5241d063adaa Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Sat, 30 Jan 2021 23:34:37 -0600 Subject: [PATCH 2/4] Add new statuses This will be uploaded to the bot soon. --- start.js | 172 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 88 insertions(+), 84 deletions(-) diff --git a/start.js b/start.js index 7301cc4..825fa22 100644 --- a/start.js +++ b/start.js @@ -1,84 +1,88 @@ -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 = "Test Release 3, build 439"; -const release = "anitrox_ptb" - - -console.log('Starting!') -const client = new Discord.Client(); -client.commands = new Discord.Collection(); -const activities_list = [ - "with n!help", - "Where am I?", - "with Sylveons!", - "on my host's hard disk", - "with Happy", - "HAAAAAAAAPPPPPPPYYYYYYYYYYYYYYYYYYYY", - "Running on " + process.platform + " / " + os.version() + "!", - "with the tea machine", - "with Borked Computers", - "on Happy's main PC- wait shoot she's coming", - "btw I use Debian linux", - "Watching you", - "Running " + release + " Version " + version, - "in Incognito Mode- wait what" -]; -const footicon = "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.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.on("debug", (e) => console.info(e)) -client.once('ready', () => { - console.log('All systems go.'); -}); -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) { - 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 { prefix, token } = require('./config.json'); +const os = require("os") +const version = "build 435"; +const release = "anitrox_unstable" + +console.log('Starting!') +const client = new Discord.Client(); +client.commands = new Discord.Collection(); +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", + "my users!", + "with Sophies skirt" +]; +const footicon = "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.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.on("debug", (e) => console.info(e)) +client.once('ready', () => { + console.log('All systems go.'); +}); +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) { + 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); From 8821e5527bc64523e67f715daa64935d4c877d35 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Sun, 31 Jan 2021 22:05:49 -0600 Subject: [PATCH 3/4] Delete servers.js --- commands/servers.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 commands/servers.js diff --git a/commands/servers.js b/commands/servers.js deleted file mode 100644 index a8875a4..0000000 --- a/commands/servers.js +++ /dev/null @@ -1,37 +0,0 @@ - -module.exports = { - name: 'servers', - description: 'Lists what servers the bot is in', - execute(message) { - if (message.author.id == 309427567004483586) { - var i = 0, guildLength = 0, ownerData = {}; -var fileToExportTo = "./servers.txt"; - -client.guilds.forEach(g=> { - guildLength = client.guilds.size; - var moreSquares = ""; - for (var cnt = 0; cnt < g.name.length; cnt++) moreSquares = moreSquares + "="; - - var content = "\n== " + g.name + " ==\nID: " + g.id + "\nOWNER: " + g.owner.user.tag + " (" + g.owner.id + ")\n===" + moreSquares + "===\n"; - require("fs").appendFile(fileToExportTo, content, 'utf8', (err) => { if (err) { console.error(err); } }); - - if (ownerData[g.owner.id] == null) - ownerData[g.owner.id] = { "id": g.owner.id, "tag": g.owner.user.tag, "count": 1 }; - else - ownerData[g.owner.id].count = (ownerData[g.owner.id].count + 1); - i++; -}); - -var morecontent = []; -for (let owner in ownerData) { - morecontent.push(ownerData[owner]["tag"] + " (" + ownerData[owner]["id"] + "): " + ownerData[owner]["count"]); -}; - -var content = "\n\n== FINAL COUNTS [as they appear they owned] ==\n" + morecontent.join("\n") + "\n==============================================\nExported: " + new Date().toString() + "\nData is as accurate as exported time & date."; -require("fs").appendFile(fileToExportTo, content, 'utf8', (err) => { if (err) { console.error(err); } }); -if (i == guildLength) - message.channel.send(client.config.system.emotes.success + " Done."); - } else { - message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command."); - } - }} \ No newline at end of file From 2f6f505f84070c7036fde1db43b7864a7f6ae62d Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Sun, 31 Jan 2021 22:09:21 -0600 Subject: [PATCH 4/4] Update start.js for I hope the last frickin time --- start.js | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/start.js b/start.js index 825fa22..ef76042 100644 --- a/start.js +++ b/start.js @@ -2,13 +2,9 @@ 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 435"; -const release = "anitrox_unstable" - -console.log('Starting!') -const client = new Discord.Client(); -client.commands = new Discord.Collection(); +const os = require("os"); +const version = "build 444"; +const release = "anitrox_ptb" const activities_list = [ "with np!help", "Where am I?", @@ -31,7 +27,11 @@ const activities_list = [ "my users!", "with Sophies skirt" ]; -const footicon = "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png" + +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')); @@ -43,9 +43,15 @@ for (const file of commandFiles) { client.on("error", (e) => console.error(e)); client.on("warn", (e) => console.warn(e)); -client.on("debug", (e) => console.info(e)) + client.once('ready', () => { - console.log('All systems go.'); + 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); @@ -63,6 +69,7 @@ client.on('message', message => { try { client.commands.get(command).execute(client, message, args); } catch (error) { + console.error const embed = { "title": "<:NyabotError:697145462347661412> **Well that happened...**", "color": 13632027,