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:
commit
4f2e5af93b
|
@ -1,3 +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.
|
||||
This is for the dev branch of the bot, The bot can be used in the Support/Development server.
|
||||
|
|
|
@ -18,10 +18,21 @@ module.exports = {
|
|||
var answer = (answers[index]);
|
||||
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 = {
|
||||
"title": ":8ball: Anitrox 8 Ball",
|
||||
"description": "Your question: **" + question + "**",
|
||||
"color": 6942950,
|
||||
"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"
|
||||
|
@ -35,5 +46,6 @@ module.exports = {
|
|||
]
|
||||
};
|
||||
message.channel.send({ embed });
|
||||
|
||||
}
|
||||
}
|
|
@ -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 });
|
||||
}
|
||||
}
|
|
@ -6,7 +6,7 @@ module.exports = {
|
|||
const messageAuthor = message.author
|
||||
const taggedUser = message.mentions.users.first();
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -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 });
|
||||
}
|
||||
}
|
|
@ -17,6 +17,9 @@ module.exports = {
|
|||
var gif = (gifchoices[index]);
|
||||
// ---------------------------------------
|
||||
|
||||
if(!taggedUser) {
|
||||
return message.channel.send("<:AnitroxError:809651936563429416> You need to specify an user!")
|
||||
}
|
||||
const embed = {
|
||||
"title": ":heart: Cuddle",
|
||||
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!",
|
||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
|||
const messageAuthor = message.author
|
||||
const embed = {
|
||||
"title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ",
|
||||
"color": 9540095,
|
||||
"color": 9442302,
|
||||
"description": "More commands are soon to come, stay tuned!",
|
||||
"footer": {
|
||||
"text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021"
|
||||
|
|
|
@ -14,7 +14,7 @@ module.exports = {
|
|||
];
|
||||
//---------------------------------
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -3,7 +3,8 @@ module.exports = {
|
|||
|
||||
name: 'info',
|
||||
description: 'Shows bot and host information',
|
||||
execute(client, message, args) {
|
||||
execute(client, message, args,) {
|
||||
const { build, release } = require('../config.json');
|
||||
function Uptime(uptimetype) {
|
||||
let totalSeconds = (uptimetype / 1000);
|
||||
|
||||
|
@ -22,22 +23,20 @@ module.exports = {
|
|||
return uptime;
|
||||
};
|
||||
|
||||
|
||||
|
||||
const version = ("Public Test Release 4.1 (build 444)")
|
||||
const release = ("anitrox_ptb")
|
||||
|
||||
const os = require("os")
|
||||
|
||||
var osu = require('node-os-utils')
|
||||
var cpu = osu.cpu
|
||||
const embed = {
|
||||
"title": "<:NyabotInfo:697145463350231040> Information about Anitrox",
|
||||
"title": "<:AnitroxInfo:809651936831733791> Information about Anitrox",
|
||||
"description": "Everything you've ever wanted to know about Anitrox!",
|
||||
"color": 11038194,
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021 "
|
||||
},
|
||||
"thumbnail": {
|
||||
"url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png"
|
||||
"url": ("https://cdn.discordapp.com/avatars/576805923964715018/20f9b2815850dbbebd6d858308c90330.webp")
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
|
@ -50,7 +49,7 @@ const version = ("Public Test Release 4.1 (build 444)")
|
|||
},
|
||||
{
|
||||
"name": "Release Version",
|
||||
"value": version
|
||||
"value": build
|
||||
},
|
||||
{
|
||||
"name": "Uptime",
|
||||
|
@ -70,7 +69,7 @@ const version = ("Public Test Release 4.1 (build 444)")
|
|||
},
|
||||
{
|
||||
"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**",
|
||||
"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"
|
||||
}
|
||||
|
||||
]
|
||||
|
|
|
@ -4,6 +4,37 @@ module.exports = {
|
|||
name: 'invite',
|
||||
description: 'Sends invite to add the bot to a server.',
|
||||
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 });
|
||||
},
|
||||
};
|
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
var gif = (gifchoices[index]);
|
||||
// ---------------------------------------
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -31,7 +31,7 @@ module.exports = {
|
|||
var gif = (gifchoices[index]);
|
||||
// ---------------------------------------
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -20,7 +20,7 @@ var gif = (gifchoices[index]);
|
|||
// ---------------------------------------
|
||||
//---------------------------------------------------
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
var gif = (gifchoices[index]);
|
||||
// ---------------------------------------
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
var gif = (gifchoices[index]);
|
||||
// ---------------------------------------
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -4,7 +4,7 @@ module.exports = {
|
|||
execute(client, message, args) {
|
||||
const embed = {
|
||||
"title": ":ping_pong: Ping",
|
||||
"color": 15433939,
|
||||
"color": 9442302,
|
||||
"fields": [
|
||||
{
|
||||
"name": "Ping is " + client.ws.ping + " ms",
|
||||
|
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
var gif = (gifchoices[index]);
|
||||
// ---------------------------------------
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -2,7 +2,7 @@ module.exports = {
|
|||
name: 'reload',
|
||||
description: 'Reloads a command',
|
||||
args: true,
|
||||
execute(client, message, args) {
|
||||
execute(client, message, args, denied) {
|
||||
if (message.author.id == 309427567004483586) {
|
||||
const commandName = args[0].toLowerCase();
|
||||
const command = message.client.commands.get(commandName)
|
||||
|
@ -21,7 +21,7 @@ module.exports = {
|
|||
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}\``);
|
||||
message.channel.send(`<:AnitroxError:809651936563429416> There was an error while reloading \`${command.name}\`:\n\`${error.message}\``);
|
||||
}
|
||||
} else {
|
||||
const embed = {
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
name: 'restart',
|
||||
description: '(Owner Only) Shuts down the bot.',
|
||||
execute(client, message, args) {
|
||||
const { token } = require('./config.json');
|
||||
const { token } = require('../config.json');
|
||||
if (message.author.id == 309427567004483586) {
|
||||
message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...").then
|
||||
client.destroy()
|
||||
|
|
|
@ -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 });
|
||||
};
|
||||
};
|
||||
}}
|
|
@ -9,7 +9,7 @@ module.exports = {
|
|||
|
||||
//---------------------------------------------------
|
||||
const errorembed = {
|
||||
"title": "<:NyabotError:697145462347661412> Error",
|
||||
"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",
|
||||
|
|
|
@ -1,13 +1,32 @@
|
|||
|
||||
module.exports = {
|
||||
name: 'stop',
|
||||
description: '(Owner Only) Shuts down the bot.',
|
||||
name: "stop",
|
||||
description: "Stops the bot",
|
||||
execute(client, message, args) {
|
||||
if (message.author.id == 309427567004483586) {
|
||||
message.channel.send("<a:NyabotWorking:697147309531594843> Shutting Down...").then
|
||||
client.destroy()
|
||||
.catch(console.error)
|
||||
const embed = {
|
||||
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
|
||||
"description": "See you next time!",
|
||||
"color": 9442302,
|
||||
"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 {
|
||||
message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command.");
|
||||
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 });
|
||||
}
|
||||
}
|
||||
}}
|
||||
}
|
|
@ -13,10 +13,12 @@ module.exports = {
|
|||
var i=0;i<user.presence.activities.length;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.
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const embed = {
|
||||
"title": "Everything you've ever wanted to know about " + user.username + "!",
|
||||
|
@ -25,7 +27,7 @@ module.exports = {
|
|||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
|
||||
},
|
||||
|
||||
|
||||
"thumbnail": {
|
||||
"url": user.displayAvatarURL()
|
||||
},
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
"prefix": "n!",
|
||||
|
||||
"token": "<token>",
|
||||
"ownerID": "309427567004483586"
|
||||
"token": "token",
|
||||
"ownerID": "309427567004483586",
|
||||
"release": "anitrox_ptb",
|
||||
"build": "Anitrox Stable Release Canidiate 1"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"denied": "<:AnitroxDenied:809651936642203668>",
|
||||
"error": "<:AnitroxError:809651936563429416> ",
|
||||
"info": "<:AnitroxInfo:809651936831733791>",
|
||||
"success": "<:AnitroxSuccess:809651936819019796>",
|
||||
"warning": "<:AnitroxWarning:809651934717804555>"
|
||||
}
|
197
start.js
197
start.js
|
@ -1,97 +1,100 @@
|
|||
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);
|
||||
console.log('Preparing to start!')
|
||||
const fs = require('fs');
|
||||
const Discord = require('discord.js');
|
||||
const { build, release, prefix, token } = require('./config.json');
|
||||
const { denied, error, info, success, warning } = require('./icons.json');
|
||||
const os = require("os");
|
||||
|
||||
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 " + build,
|
||||
"in Incognito Mode- wait what",
|
||||
"uwu",
|
||||
"Team Fortress 2 with Sophie",
|
||||
"videos on Hulu",
|
||||
"American Truck Simulator",
|
||||
"with my users!",
|
||||
"with Sophies skirt",
|
||||
"Euro Truck Simulator 2",
|
||||
"with a screwdriver",
|
||||
"Found new hardware.",
|
||||
"@everyone"
|
||||
];
|
||||
|
||||
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.clear()
|
||||
console.log(' ___ _ __ ');
|
||||
console.log(' / | ____ (_) /__________ _ __');
|
||||
console.log(' / /| | / __ \/ / __/ ___/ __ \| |/_/');
|
||||
console.log(' / ___ |/ / / / / /_/ / / /_/ /> < ');
|
||||
console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ')
|
||||
console.log(release + " " + build)
|
||||
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, Discord);
|
||||
} catch (error) {
|
||||
console.error
|
||||
const embed = {
|
||||
"title": "<:AnitroxError:809651936563429416> **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.stack
|
||||
}
|
||||
]
|
||||
};
|
||||
message.channel.send({ embed });
|
||||
}
|
||||
});
|
||||
|
||||
client.login(token);
|
||||
|
|
Reference in New Issue