Update to SRC1

**Anitrox has been updated.**
**Old Version: PTB 4.1, Build 465**
**New Version: Stable Release Canidate 1, Build 500**
**This Major Anitrox Release Brings New Features and Bug Fixes to Anitrox!**
**What's New?**
- Cheese your friends with np!cheese
- Change your nickname with np!setnick (kinda buggy atm, will be fixed in SRC1.1)
- np!shutdown has been changed to stop and now makes a osu! reference
- Updated invite to have some sweet sweet sexy embeds (wait did I just say sexy embeds whaT)
- Changed info to show the CPU model, this is more of my curiosity of what CPU the host has lol
- New Icons! No more of those old ones from the Nyabot days. now we have proper Anitrox/Borkeon themed emotes! Want more Anitrox/Borkeon emotes like :BorkeonGlee: :Borkeon404: and :BorkeonBSOD:? Join Anitrox Central! run np!help for more information
**Bug Fixes**
- Fixed np!info not replying with bot info and information
**Known Issues**
np!setnick crashes bot when trying to run it on a higher role, this will be fixed in SRC1.1
Some commands might be using the legacy icons, I'm not 100% sure if I got all of them done
**This release was made possible with the support of @OfficialTCGMatt and @akuankka128. Thank you so much!**
This commit is contained in:
Anthony M 2021-03-19 11:27:30 -05:00 committed by GitHub
commit 4f2e5af93b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 320 additions and 139 deletions

View File

@ -1,3 +1,3 @@
# Anitrox Dev # Anitrox Dev
# aka anitrox_unstable # 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.

View File

@ -18,10 +18,21 @@ module.exports = {
var answer = (answers[index]); var answer = (answers[index]);
console.log(args); 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 = { const embed = {
"title": ":8ball: Anitrox 8 Ball", "title": ":8ball: Anitrox 8 Ball",
"description": "Your question: **" + question + "**", "description": "Your question: **" + question + "**",
"color": 6942950, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "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" "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
@ -35,5 +46,6 @@ module.exports = {
] ]
}; };
message.channel.send({ embed }); message.channel.send({ embed });
} }
} }

21
commands/avatar.js Normal file
View File

@ -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 });
}
}

View File

@ -6,7 +6,7 @@ module.exports = {
const messageAuthor = message.author const messageAuthor = message.author
const taggedUser = message.mentions.users.first(); const taggedUser = message.mentions.users.first();
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 13632027, "color": 13632027,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

33
commands/cheese.js Normal file
View File

@ -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 });
}
}

View File

@ -17,6 +17,9 @@ module.exports = {
var gif = (gifchoices[index]); var gif = (gifchoices[index]);
// --------------------------------------- // ---------------------------------------
if(!taggedUser) {
return message.channel.send("<:AnitroxError:809651936563429416> You need to specify an user!")
}
const embed = { const embed = {
"title": ":heart: Cuddle", "title": ":heart: Cuddle",
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!", "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!",

View File

@ -7,7 +7,7 @@ module.exports = {
const messageAuthor = message.author const messageAuthor = message.author
const embed = { const embed = {
"title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ", "title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ",
"color": 9540095, "color": 9442302,
"description": "More commands are soon to come, stay tuned!", "description": "More commands are soon to come, stay tuned!",
"footer": { "footer": {
"text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021" "text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021"

View File

@ -14,7 +14,7 @@ module.exports = {
]; ];
//--------------------------------- //---------------------------------
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

View File

@ -3,7 +3,8 @@ module.exports = {
name: 'info', name: 'info',
description: 'Shows bot and host information', description: 'Shows bot and host information',
execute(client, message, args) { execute(client, message, args,) {
const { build, release } = require('../config.json');
function Uptime(uptimetype) { function Uptime(uptimetype) {
let totalSeconds = (uptimetype / 1000); let totalSeconds = (uptimetype / 1000);
@ -23,21 +24,19 @@ module.exports = {
}; };
const version = ("Public Test Release 4.1 (build 444)")
const release = ("anitrox_ptb")
const os = require("os") const os = require("os")
var osu = require('node-os-utils')
var cpu = osu.cpu
const embed = { const embed = {
"title": "<:NyabotInfo:697145463350231040> Information about Anitrox", "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 Anitrox!",
"color": 11038194, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021 " "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021 "
}, },
"thumbnail": { "thumbnail": {
"url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png" "url": ("https://cdn.discordapp.com/avatars/576805923964715018/20f9b2815850dbbebd6d858308c90330.webp")
}, },
"fields": [ "fields": [
{ {
@ -50,7 +49,7 @@ const version = ("Public Test Release 4.1 (build 444)")
}, },
{ {
"name": "Release Version", "name": "Release Version",
"value": version "value": build
}, },
{ {
"name": "Uptime", "name": "Uptime",
@ -70,7 +69,7 @@ const version = ("Public Test Release 4.1 (build 444)")
}, },
{ {
"name": "<:cpu:793672442056802354> CPU Type", "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**", "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"
} }
] ]

View File

@ -4,6 +4,37 @@ module.exports = {
name: 'invite', name: 'invite',
description: 'Sends invite to add the bot to a server.', description: 'Sends invite to add the bot to a server.',
execute(client, message) { 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 });
}, },
}; };

View File

@ -19,7 +19,7 @@ module.exports = {
var gif = (gifchoices[index]); var gif = (gifchoices[index]);
// --------------------------------------- // ---------------------------------------
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 13632027, "color": 13632027,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

View File

@ -31,7 +31,7 @@ module.exports = {
var gif = (gifchoices[index]); var gif = (gifchoices[index]);
// --------------------------------------- // ---------------------------------------
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

View File

@ -20,7 +20,7 @@ var gif = (gifchoices[index]);
// --------------------------------------- // ---------------------------------------
//--------------------------------------------------- //---------------------------------------------------
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

View File

@ -19,7 +19,7 @@ module.exports = {
var gif = (gifchoices[index]); var gif = (gifchoices[index]);
// --------------------------------------- // ---------------------------------------
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

View File

@ -18,7 +18,7 @@ module.exports = {
var gif = (gifchoices[index]); var gif = (gifchoices[index]);
// --------------------------------------- // ---------------------------------------
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

View File

@ -4,7 +4,7 @@ module.exports = {
execute(client, message, args) { execute(client, message, args) {
const embed = { const embed = {
"title": ":ping_pong: Ping", "title": ":ping_pong: Ping",
"color": 15433939, "color": 9442302,
"fields": [ "fields": [
{ {
"name": "Ping is " + client.ws.ping + " ms", "name": "Ping is " + client.ws.ping + " ms",

View File

@ -18,7 +18,7 @@ module.exports = {
var gif = (gifchoices[index]); var gif = (gifchoices[index]);
// --------------------------------------- // ---------------------------------------
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

View File

@ -2,7 +2,7 @@ module.exports = {
name: 'reload', name: 'reload',
description: 'Reloads a command', description: 'Reloads a command',
args: true, args: true,
execute(client, message, args) { execute(client, message, args, denied) {
if (message.author.id == 309427567004483586) { if (message.author.id == 309427567004483586) {
const commandName = args[0].toLowerCase(); const commandName = args[0].toLowerCase();
const command = message.client.commands.get(commandName) const command = message.client.commands.get(commandName)
@ -21,7 +21,7 @@ module.exports = {
console.log('User reloaded ${command.name}.') console.log('User reloaded ${command.name}.')
} catch (error) { } catch (error) {
console.error(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 { } else {
const embed = { const embed = {

View File

@ -3,7 +3,7 @@ module.exports = {
name: 'restart', name: 'restart',
description: '(Owner Only) Shuts down the bot.', description: '(Owner Only) Shuts down the bot.',
execute(client, message, args) { execute(client, message, args) {
const { token } = require('./config.json'); const { token } = require('../config.json');
if (message.author.id == 309427567004483586) { if (message.author.id == 309427567004483586) {
message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...").then message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...").then
client.destroy() client.destroy()

49
commands/setnick.js Normal file
View File

@ -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 });
};
};
}}

View File

@ -9,7 +9,7 @@ module.exports = {
//--------------------------------------------------- //---------------------------------------------------
const errorembed = { const errorembed = {
"title": "<:NyabotError:697145462347661412> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 13632027, "color": 13632027,
"footer": { "footer": {
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",

View File

@ -1,13 +1,32 @@
module.exports = { module.exports = {
name: 'stop', name: "stop",
description: '(Owner Only) Shuts down the bot.', description: "Stops the bot",
execute(client, message, args) { execute(client, message, args) {
if (message.author.id == 309427567004483586) { if (message.author.id == 309427567004483586) {
message.channel.send("<a:NyabotWorking:697147309531594843> Shutting Down...").then const embed = {
client.destroy() "title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
.catch(console.error) "description": "See you next time!",
} else { "color": 9442302,
message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command."); "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 {
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 });
}
}
} }
}}

View File

@ -13,8 +13,10 @@ module.exports = {
var i=0;i<user.presence.activities.length;i var i=0;i<user.presence.activities.length;i
const activity = user.presence.activities[i]; const activity = user.presence.activities[i];
if(!activity) {
const activity = "This user doesn't have a set status"
// Checks if a user was mentioned. If not, returns error message.
}

View File

@ -1,6 +1,8 @@
{ {
"prefix": "n!", "prefix": "n!",
"token": "<token>", "token": "token",
"ownerID": "309427567004483586" "ownerID": "309427567004483586",
"release": "anitrox_ptb",
"build": "Anitrox Stable Release Canidiate 1"
} }

7
icons.json Normal file
View File

@ -0,0 +1,7 @@
{
"denied": "<:AnitroxDenied:809651936642203668>",
"error": "<:AnitroxError:809651936563429416> ",
"info": "<:AnitroxInfo:809651936831733791>",
"success": "<:AnitroxSuccess:809651936819019796>",
"warning": "<:AnitroxWarning:809651934717804555>"
}

View File

@ -1,12 +1,10 @@
console.log('Preparing to start!') console.log('Preparing to start!')
const fs = require('fs'); const fs = require('fs');
const Discord = require('discord.js'); const Discord = require('discord.js');
const { prefix, token } = require('./config.json'); const { build, release, prefix, token } = require('./config.json');
const { denied, error, info, success, warning } = require('./icons.json');
const os = require("os"); const os = require("os");
const version = "build 465";
const release = "anitrox_ptb"
const activities_list = [ const activities_list = [
"with np!help", "with np!help",
"Where am I?", "Where am I?",
@ -20,14 +18,18 @@ const activities_list = [
"on Sophie's main PC- wait shoot she's coming", "on Sophie's main PC- wait shoot she's coming",
"btw I use Debian linux", "btw I use Debian linux",
"Watching you", "Watching you",
"Running " + release + " Version " + version, "Running " + release + " Version " + build,
"in Incognito Mode- wait what", "in Incognito Mode- wait what",
"uwu", "uwu",
"Team Fortress 2 with Sophie", "Team Fortress 2 with Sophie",
"videos on Hulu", "videos on Hulu",
"American Truck Simulator", "American Truck Simulator",
"with my users!", "with my users!",
"with Sophies skirt" "with Sophies skirt",
"Euro Truck Simulator 2",
"with a screwdriver",
"Found new hardware.",
"@everyone"
]; ];
console.log('Starting! This should only take a moment.') console.log('Starting! This should only take a moment.')
@ -47,12 +49,13 @@ client.on("error", (e) => console.error(e));
client.on("warn", (e) => console.warn(e)); client.on("warn", (e) => console.warn(e));
client.once('ready', () => { client.once('ready', () => {
console.clear()
console.log(' ___ _ __ '); console.log(' ___ _ __ ');
console.log(' / | ____ (_) /__________ _ __'); console.log(' / | ____ (_) /__________ _ __');
console.log(' / /| | / __ \/ / __/ ___/ __ \| |/_/'); console.log(' / /| | / __ \/ / __/ ___/ __ \| |/_/');
console.log(' / ___ |/ / / / / /_/ / / /_/ /> < '); console.log(' / ___ |/ / / / / /_/ / / /_/ /> < ');
console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ') console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ')
console.log(release + " " + build)
console.log('All Systems Go. | Anitrox (C) 2021 IDeletedSystem64.'); console.log('All Systems Go. | Anitrox (C) 2021 IDeletedSystem64.');
}); });
setInterval(() => { setInterval(() => {
@ -69,11 +72,11 @@ client.on('message', message => {
if (!client.commands.has(command)) return; if (!client.commands.has(command)) return;
try { try {
client.commands.get(command).execute(client, message, args); client.commands.get(command).execute(client, message, args, Discord);
} catch (error) { } catch (error) {
console.error console.error
const embed = { const embed = {
"title": "<:NyabotError:697145462347661412> **Well that happened...**", "title": "<:AnitroxError:809651936563429416> **Well that happened...**",
"color": 13632027, "color": 13632027,
"footer": { "footer": {
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
@ -86,7 +89,7 @@ client.on('message', message => {
}, },
{ {
"name": "Error Info", "name": "Error Info",
"value": error.message "value": error.stack
} }
] ]
}; };