diff --git a/README.md b/README.md new file mode 100644 index 0000000..b3c0dd2 --- /dev/null +++ b/README.md @@ -0,0 +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. diff --git a/commands/8ball.js b/commands/8ball.js new file mode 100644 index 0000000..2132040 --- /dev/null +++ b/commands/8ball.js @@ -0,0 +1,39 @@ +module.exports = { + name: '8ball', + description: 'Ask Anitrox a question, any question! and they will answer it!', + execute(client, message, args) { + const answers = [ + "Heck no!", + "Are you crazy!? No!", + "Don't even think about it.", + "No! You might bork something!", + "Heck yeah", + "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 🙃 + ] + const index = Math.floor(Math.random() * (answers.length - 1) + 1); + var question = args.slice(0).join(" ") + var answer = (answers[index]); + console.log(args); + + const embed = { + "title": ":8ball: Anitrox 8 Ball", + "description": "Your question: **" + question + "**", + "color": 6942950, + "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": "🤔 My Answer", + "value": answer + } + ] + }; + message.channel.send({ embed }); + } +} \ No newline at end of file diff --git a/commands/bonk.js b/commands/bonk.js index 073c39c..41c7d5d 100644 --- a/commands/bonk.js +++ b/commands/bonk.js @@ -28,7 +28,7 @@ module.exports = { const embed = { "title": " Bonk", "description": "<@" + taggedUser + ">" + " You have been bonked by <@" + messageAuthor + ">!", - "color": 3272562, + "color": 9442302, "footer": { "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" diff --git a/commands/config.json b/commands/config.json deleted file mode 100644 index 054d70b..0000000 --- a/commands/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "prefix": "n!", - "token": "NTQwOTQxNjc5MDQ2Mjk1NTUz.XotbnA.0hllsNlr9hWaepl3KwB1Bhh5TnA", - "ownerID": "309427567004483586" -} \ No newline at end of file diff --git a/commands/cuddle.js b/commands/cuddle.js index bb945ef..15f1e41 100644 --- a/commands/cuddle.js +++ b/commands/cuddle.js @@ -20,7 +20,7 @@ module.exports = { const embed = { "title": ":heart: Cuddle", "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!", - "color": 8311585, + "color": 9442302, "footer": { "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" diff --git a/commands/help.js b/commands/help.js index 5d14125..d897d38 100644 --- a/commands/help.js +++ b/commands/help.js @@ -4,34 +4,41 @@ module.exports = { description: '', execute(client, message, args) { + const messageAuthor = message.author const embed = { - "title": "<:NyabotInfo:697145463350231040> **Help? HELP!** ", + "title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ", "color": 9540095, - "description": "<:NyabotWarning:697145463194910791> Not all commands have been implemented, and may be removed without warning.", + "description": "More commands are soon to come, stay tuned!", "footer": { "text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021" }, "fields": [ { - "name": "**General Commands**", - "value": "`help` ``info`` ``userinfo`` ``ping`` ``invite`` ``avatar`` ``google`` ``youtube``" + "name": "Utility Commands", + "value": "`help` ``info`` ``userinfo`` ``ping`` ``invite`` ``avatar``" }, { "name": "Moderation Commands", - "value": "`ban` `kick` `warn` `mute` `unban` `unmute` `purge` `permissions`" + "value": "`ban`/`unban` `kick` `mute`/`unmute` " }, { "name": "Server Management Commands", - "value": "` channelcreate` `channeldelete` `channelrename` `rolecreate` `roleedit` `roledelete` `setnick`" + "value": "`makerole`/`delrole`/`editrole` `setnick` `makechan`/`editchan`/`delchan` " }, { - "name": "Fun Commands", - "value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom` `leskiss`" + "name": "Action Commands", + "value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom` `leskiss` `snuggle`" }, { - "name": "**Need additional help or want to report an issue?**", - "value": "https://discord.gg/grebRGsBZ3" + "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" } + + ] }; message.channel.send({ embed }); diff --git a/commands/hug.js b/commands/hug.js index a136479..5719400 100644 --- a/commands/hug.js +++ b/commands/hug.js @@ -11,7 +11,8 @@ module.exports = { "https://cdn.lowgif.com/full/91e3f30773596637-.gif", "https://thumbs.gfycat.com/WealthyWastefulBluemorphobutterfly-size_restricted.gif", "https://data.whicdn.com/images/294164107/original.gif", - "https://media1.tenor.com/images/e5e7779385d003db13396e03b7fd1024/tenor.gif?itemid=16619907" + "https://media1.tenor.com/images/e5e7779385d003db13396e03b7fd1024/tenor.gif?itemid=16619907", + "https://cdn.discordapp.com/attachments/803658122299572255/806775446095396915/hug.gif" ]; //--------------------------------- const errorembed = { diff --git a/commands/info.js b/commands/info.js index c549db5..f96c97b 100644 --- a/commands/info.js +++ b/commands/info.js @@ -91,10 +91,6 @@ const version = ("Public Test Release 4.1 (build 444)") "value": Math.round(client.ws.ping) + " ms", "inline": true }, - { - "name": "<:NyabotInfo:697145463350231040> **Want more system information?**", - "value": "Run np!sysinfo for more detailed system information (Coming Soon™)" - }, { "name": "<:usersuccess:793885338250641469> **Special Thanks To**", "value": "@OfficialTCGMatt for providing help with development/n @chuu_shi Allowing me to host Anitrox on his server" diff --git a/commands/kiss.js b/commands/kiss.js index 37c49c6..2e80494 100644 --- a/commands/kiss.js +++ b/commands/kiss.js @@ -9,12 +9,11 @@ module.exports = { // -------------------------------------- const gifchoices = [ - "https://thumbs.gfycat.com/SlowGlossyBlackcrappie-small.gif", - "https://media0.giphy.com/media/12VXIxKaIEarL2/giphy.gif", - "https://cutewallpaper.org/21/anime-kiss-girl/Anime-Kissing-GIF-Anime-Kissing-Girl-Discover-Share-GIFs.gif", - "https://i.makeagif.com/media/4-29-2017/orH05W.gif", - "https://31.media.tumblr.com/ea7842aad07c00b098397bf4d00723c6/tumblr_n570yg0ZIv1rikkvpo1_500.gif" - + "https://cdn.discordapp.com/attachments/803658122299572255/807671954055626812/kiss5.gif", + "https://cdn.discordapp.com/attachments/803658122299572255/807671956236140554/kiss2.gif", + "https://cdn.discordapp.com/attachments/803658122299572255/807671964599713862/kiss1.gif", + "https://cdn.discordapp.com/attachments/803658122299572255/807671971168387082/kiss4.gif", + "https://cdn.discordapp.com/attachments/803658122299572255/807672017217781840/kiss3.gif" ]; const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1); var gif = (gifchoices[index]); @@ -37,10 +36,15 @@ module.exports = { if(!taggedUser) { return message.channel.send({ embed: errorembed}); } + + if(!taggedUser) { + return message.channel.send({ embed: errorembed}); + // Checks if a user was mentioned. If not, returns error message. + } const embed = { "title": ":heart: Kiss", "description": "<@" + taggedUser + ">" + ", You have been kissed by <@" + messageAuthor + ">!", - "color": 8311585, + "color": 9442302, "footer": { "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" diff --git a/commands/leskiss.js b/commands/leskiss.js index 2476a3c..9412e16 100644 --- a/commands/leskiss.js +++ b/commands/leskiss.js @@ -27,12 +27,12 @@ module.exports = { "https://cdn.discordapp.com/attachments/793537380330111028/803834514269798460/gif19.gif" ]; - const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1); + const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1.75); var gif = (gifchoices[index]); // --------------------------------------- const errorembed = { "title": "<:NyabotError:697145462347661412> Error", - "color": 13632027, + "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" diff --git a/commands/lick.js b/commands/lick.js index 19dca35..4851bbf 100644 --- a/commands/lick.js +++ b/commands/lick.js @@ -6,11 +6,22 @@ module.exports = { const messageAuthor = message.author const taggedUser = message.mentions.users.first(); //--------------------------------------------------- + // -------------------------------------- + const gifchoices = [ + "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif", + "https://cdn.lowgif.com/full/2027501b8fa5225c-.gif", + "https://i.gifer.com/36Nx.gif", + "https://media.tenor.com/images/e8bbe712a5f36bbe9545930894b08bf9/tenor.gif" + +]; +const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1); +var gif = (gifchoices[index]); +// --------------------------------------- //--------------------------------------------------- const errorembed = { "title": "<:NyabotError:697145462347661412> Error", - "color": 13632027, + "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" @@ -29,7 +40,7 @@ if(!taggedUser) { } const embed = { - "title": "Lick", + "title": " Lick", "description": "<@" + taggedUser + "> You have been licked by <@" + messageAuthor + ">!", "color": 8311585, "footer": { diff --git a/commands/nom.js b/commands/nom.js index 3449231..4956020 100644 --- a/commands/nom.js +++ b/commands/nom.js @@ -20,7 +20,7 @@ module.exports = { // --------------------------------------- const errorembed = { "title": "<:NyabotError:697145462347661412> Error", - "color": 13632027, + "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" diff --git a/commands/pat.js b/commands/pat.js index a876ba4..033b062 100644 --- a/commands/pat.js +++ b/commands/pat.js @@ -19,7 +19,7 @@ module.exports = { // --------------------------------------- const errorembed = { "title": "<:NyabotError:697145462347661412> Error", - "color": 13632027, + "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" diff --git a/commands/poke.js b/commands/poke.js index 1c98e1d..eb04bfb 100644 --- a/commands/poke.js +++ b/commands/poke.js @@ -19,7 +19,7 @@ module.exports = { // --------------------------------------- const errorembed = { "title": "<:NyabotError:697145462347661412> Error", - "color": 13632027, + "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" diff --git a/commands/reload.js b/commands/reload.js index 475bb7c..387c418 100644 --- a/commands/reload.js +++ b/commands/reload.js @@ -1,26 +1,44 @@ -module.exports = { - name: 'reload', - description: 'Reloads a command', - args: true, - execute(client, message, args) { - const commandName = args[0].toLowerCase(); - const command = message.client.commands.get(commandName) - || message.client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName)); - - if (!command) { - return message.channel.send(`There is no command with name or alias \`${commandName}\`, ${message.author}!`); - } - - delete require.cache[require.resolve(`./${command.name}.js`)]; - - try { - const newCommand = require(`./${command.name}.js`); - message.client.commands.set(newCommand.name, newCommand); - message.channel.send(`<:NyabotSuccess:697211376740859914> **Reloaded \`${command.name}\` successfully!**`); - 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}\``); - } - }, +module.exports = { + name: 'reload', + description: 'Reloads a command', + args: true, + execute(client, message, args) { + if (message.author.id == 309427567004483586) { + const commandName = args[0].toLowerCase(); + const command = message.client.commands.get(commandName) + || message.client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName)); + + if (!command) { + return message.channel.send(`There is no command with name or alias \`${commandName}\`, ${message.author}!`); + } + + delete require.cache[require.resolve(`./${command.name}.js`)]; + + try { + const newCommand = require(`./${command.name}.js`); + message.client.commands.set(newCommand.name, newCommand); + message.channel.send(`<:NyabotSuccess:697211376740859914> **Reloaded \`${command.name}\` successfully!**`); + 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}\``); + } + } else { + const embed = { + "title": "<:NyabotDenied:697145462565896194> **Access is denied**", + "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": "You don't have the appropriate permissions to run this command!" + } + ] + }; + message.channel.send({ embed }); + } + }, }; \ No newline at end of file diff --git a/commands/slap.js b/commands/slap.js index 78d33b6..0582203 100644 --- a/commands/slap.js +++ b/commands/slap.js @@ -31,7 +31,7 @@ if(!taggedUser) { const embed = { "title": ":anger: Slap", "description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!", - "color": 8311585, + "color": 9442302, "footer": { "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" diff --git a/commands/snuggle.js b/commands/snuggle.js new file mode 100644 index 0000000..4a5f982 --- /dev/null +++ b/commands/snuggle.js @@ -0,0 +1,36 @@ +module.exports = { + + name: "snuggle", + description: "Snuggle an user!", + execute(client, message, args) { + const messageAuthor = message.author + const taggedUser = message.mentions.users.first(); + + // -------------------------------------- + const gifchoices = [ + "https://media.discordapp.net/attachments/803658122299572255/806775382995894282/anime-couple-snuggle-gif-5.gif?width=450&height=238", + "https://media.discordapp.net/attachments/803658122299572255/806775411928989726/snuggl1.gif", + "https://cdn.discordapp.com/attachments/803658122299572255/806775422833786911/ImpureDeepAmbushbug-small.gif" + + ]; + const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1); + var gif = (gifchoices[index]); + // --------------------------------------- + + const embed = { + "title": "<:BlobSnuggleCat:806759753450782731> Snuggle", + "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 © IDeletedSystem64 2018-2021" + }, + "image": { + "url": gif + } + } + + + message.channel.send({ embed: embed }); + } + } \ No newline at end of file diff --git a/commands/todo.txt b/commands/todo.txt deleted file mode 100644 index 8e3c09c..0000000 --- a/commands/todo.txt +++ /dev/null @@ -1 +0,0 @@ -This is really just to make a directory lol. diff --git a/commands/userinfo.js b/commands/userinfo.js index 33f006a..4d2e9c2 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -4,34 +4,56 @@ module.exports = { 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 user = message.mentions.users.first(); + var i=0;i 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 { 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); diff --git a/statuses.json b/statuses.json new file mode 100644 index 0000000..217a100 --- /dev/null +++ b/statuses.json @@ -0,0 +1,22 @@ +{ + "activities_list": { + with np!help + Where am I? + with Sylveons! + on my host's hard disk + with Sophie + HAAAAAAAAPPPPPPPYYYYYYYYYYYYYYYYYYYY + with the tea machine + with Borked Computers + on Sophie's main PC- wait shoot she's coming + btw I use Debian linux + Watching you + in Incognito Mode- wait what + uwu + Team Fortress 2 with Sophie + videos on Hulu + American Truck Simulator + my users! + with Sophies skir + } +} \ No newline at end of file