diff --git a/README.md b/README.md
index e6472c1..a69a449 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,13 @@
-# Anitrox Dev Branch
-# anitrox_unstable
-This is for the ultra-fresh builds of Anitrox and is **very** unstable. It is only avaliable in Anitrox Central.
-# These builds are UNSUPPORTED and you will not be able to recieve support if there's a problem. It's best you wait for a new build if you're having a problem.
+# Anitrox Dev Branch (anitrox_unstable)
+This is the development branch for Anitrox, If you want those fresh hot Anitrox builds right from the oven, you've come to the right place!
+# Dependencies to get started
+To begin, you will need to satisfy the following dependencies:
+Node.JS: 14
+npm: 6.14
+# Let's get this ~~party~~ bot started!
+For first time start up, You will need to run ``npm install`` to install the needed npm packages.
+Afterwards fill out the ``config-example.json`` and rename it to ``config.json``, then just run ``node start.js``!
+⚠️ If you don't specify the Owner ID, Some commands such as the bot controls will be unusable!
+# Support
+Anitrox isn't really supported but you can get help from the Discord server if you need any: discord.gg/5nQtMNpf43
diff --git a/commands.md b/commands.md
new file mode 100644
index 0000000..4a99be3
--- /dev/null
+++ b/commands.md
@@ -0,0 +1,27 @@
+# Anitrox Command List
+<> = Optionable
+
+[] = Required
+
+|Command|Arguments |Description |
+|-------|----------|------------|
+|Help |none |Help? Help!!|
+|8ball |[Question]|Ask a question, Any question! |
+|avatar |\ |Get a users beautiful avatar |
+|bonk |[Member] | Bonk, no horny. |
+|cheese |\| Cheese.|
+|cuddle |[Member] | Cuddle someone! |
+|hug |[Member] | Hug someone! |
+|info |none | Information about the bot and host.
+|invite |none | Invite Anitrox to your server!
+|kiss |[Member] | Kiss someone! |
+|leskiss|[Member] | Lesbain kiss (Suggested by Emi)
+|lick |[Member] | Did you just lick me!?
+|nom |[Member] | Nom someone or something
+|opensource| none | Source code for Anitrox
+|pat |[Member] | Pat someone!
+|ping |none | Ping Elon Musk! or Mars! nah jk, Discord.
+|poke |[Member] | Poke someone!
+|slap |[Member] | Slap someone :(
+|snuggle|[Member] | Snuggle someone!
+|uinfo |[Member] | Information about an user
\ No newline at end of file
diff --git a/commands/8ball.js b/commands/8ball.js
index 3f6c068..499359b 100644
--- a/commands/8ball.js
+++ b/commands/8ball.js
@@ -1,31 +1,42 @@
module.exports = {
name: '8ball',
description: 'Ask Anitrox a question, any question! and they will answer it!',
+ syntax: ["[Question]"],
execute(client, message, args) {
+ const {footerTxt} = require('../config.json');
const answers = [
"Heck no!",
"Are you crazy!? No!",
"Don't even think about it.",
"No! You might bork something!",
"Heck yeah",
- "YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE",
+ "I don't think so.",
+ "Let me think about it first. No.",
+ "Let me think about it first. Yeah",
+ "Let me think about it first. Maybe",
+ "I don't know man",
+ "Maybe",
+ "I'm not sure",
+ "Ask again",
+ "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 🙃
+ "Go for it! :smile:",
+ "Good idea!",
+ "Sure"
]
- const index = Math.floor(Math.random() * (answers.length - 1) + 1);
+ const index = Object.keys(answers)[Math.floor(Math.random() * Object.keys(answers).length)];
var question = args.slice(0).join(" ")
var answer = (answers[index]);
console.log(args);
if (!question) {
const embed = {
- "title": "<:AnitroxError:809651936563429416> Well that happened...",
- "description": "You need to specify a question!",
+ "title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
+ "description": "You need to ask a",
"color": 13632027,
"footer": {
- "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "placeholder"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
}
}
}
@@ -34,8 +45,8 @@ module.exports = {
"description": "Your question: **" + question + "**",
"color": 9442302,
"footer": {
- "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "placeholder"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"fields": [
diff --git a/commands/addstatus.js b/commands/addstatus.js
deleted file mode 100644
index 2469412..0000000
--- a/commands/addstatus.js
+++ /dev/null
@@ -1,26 +0,0 @@
-const { Message } = require('discord.js');
-const fs = require('fs');
-module.exports = {
- name: 'addstatus',
- description: 'Adds a new custom status to Anitrox',
- async execute(message, args) {
- const embed = {
- "title": "<:AnitroxSuccess:809651936819019796> Status Added",
- "color": 3585665,
- "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 by IDeletedSystem64"
- },
- "fields": [
- {
- "name": "Successfully added status!",
- "value": "Added status " + args.slice(0,2)
- }
- ]
- };
- const statuses = JSON.parse((await fs.promises.readFile('./statuses.json')).toString())
- statuses.push(args.slice(0,2))
- await fs.promises.writeFile('./statuses.json', JSON.stringify(ranges));
- Message.channel.send( {embed} )
- }
- }
\ No newline at end of file
diff --git a/commands/avatar.js b/commands/avatar.js
index 061104c..3741e6e 100644
--- a/commands/avatar.js
+++ b/commands/avatar.js
@@ -2,15 +2,17 @@ module.exports = {
name: "avatar",
description: "Gets a users avatar.",
execute(client, message, args) {
- const user = message.mentions.users.first()
+ user = message.mentions.users.first()
+ if (!user) user = message.author
+
+ const {footerTxt} = require('../config.json');
const embed = {
- "title": ":frame_photo: " + user.username + "'s Avatar",
- "description": "Here is " + user.username + "'s avatar!",
+ "title": ":frame_photo: " + user.username + "'s Beautiful Avatar!",
"color": 9442302,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": user.displayAvatarURL()
diff --git a/commands/ban.js b/commands/ban.js
deleted file mode 100644
index c8549fb..0000000
--- a/commands/ban.js
+++ /dev/null
@@ -1,31 +0,0 @@
-const { GuildMember } = require("discord.js");
-
-module.exports = {
- name: "ban",
- description: "Bans an user, This requires that you have ``BAN_MEMBERS`` or ``ADMINISTRATOR``",
- execute(client, message, args) {
- const banembed = {
- "title": "<:usersuccess:793885338250641469> User Banned",
- "description": "User ${user.tag} was banned!",
- "color": 5736060,
- "fields": [
- {
- "name": "Reason",
- "value": "reason"
- }
- ]
- };
- const user = message.mentions.users.first();
- if (user) {
- const member = message.guild.member(user);
- if (member) {
- member
- .ban({
- reason: 'reason',
- })
- .then(() =>
-
- message.channel.send("bye lmao"));
-
- }
- }}}
\ No newline at end of file
diff --git a/commands/bonk.js b/commands/bonk.js
index 11e0fea..99da59f 100644
--- a/commands/bonk.js
+++ b/commands/bonk.js
@@ -3,8 +3,8 @@ module.exports = {
name: "bonk",
description: "Bonks an user!",
execute(client, message, args) {
- const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
+ const {footerTxt} = require('../config.json');
const errorembed = {
"title": "<:AnitroxError:809651936563429416> Error",
"color": 13632027,
@@ -27,11 +27,11 @@ module.exports = {
const embed = {
"title": " Bonk",
- "description": "<@" + taggedUser + ">" + " You have been bonked by <@" + messageAuthor + ">!",
+ "description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!",
"color": 9442302,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
diff --git a/commands/buttontest.js b/commands/buttontest.js
deleted file mode 100644
index 643cd22..0000000
--- a/commands/buttontest.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = {
- name: "buttontest",
- description: "buttontest",
- execute(client, message, args) {
-const buttonembed = {
- "title": "buttontest",
- "description": "anitrox buttontest",
- "color": 9442302,
- "footer": {
- "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png",
- "text": "footertext"
- }
-};
-message.channel.send({ embed: buttonembed });
- }
-}
\ No newline at end of file
diff --git a/commands/cheese.js b/commands/cheese.js
index 6f78914..76aae42 100644
--- a/commands/cheese.js
+++ b/commands/cheese.js
@@ -3,10 +3,8 @@ module.exports = {
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();
- //---------------------------------
-
+ const {footerTxt} = require('../config.json');
if(!taggedUser) {
return message.channel.send("*slams cheese on desk* Cheese. https://www.youtube.com/watch?v=Or4IE8fkpn4");
@@ -16,11 +14,11 @@ module.exports = {
const embed = {
"title": ":cheese: Cheesed",
- "description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + messageAuthor + ">!",
+ "description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + message.author + ">!",
"color": 16312092,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": "https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png"
diff --git a/commands/createserver.js b/commands/createserver.js
deleted file mode 100644
index d5f59a7..0000000
--- a/commands/createserver.js
+++ /dev/null
@@ -1,19 +0,0 @@
-module.exports = {
- name: 'serversetup',
- description: 'Sets up channels and roles for your newly created server',
- execute(client, message, args) {
- const start = {
- "title": " Beginning Server Setup...",
- "description": "This will set up the following:\nStaff Roles\nStaff Channels\nServer Channels\nThis will not set up:\nAdvertisements (if applicable)\nModeration bots\n\nClick :white_check_mark: to Continue\nClick :x: to Cancel",
- "color": 12390624,
- "footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
- }
- };
- // Embeds
-
- message.channel.send({ embed: start });
- }
- }
-// This ain't even finished yet lmao
\ No newline at end of file
diff --git a/commands/cuddle.js b/commands/cuddle.js
index 4f08ccf..b518f31 100644
--- a/commands/cuddle.js
+++ b/commands/cuddle.js
@@ -3,9 +3,8 @@ module.exports = {
name: "cuddle",
description: "Cuddle an user!",
execute(client, message, args) {
- const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
-
+ const {footerTxt} = require('../config.json');
// --------------------------------------
const gifchoices = [
"https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif",
@@ -22,11 +21,11 @@ module.exports = {
}
const embed = {
"title": ":heart: Cuddle",
- "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!",
+ "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + message.author + ">!",
"color": 9442302,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": gif
diff --git a/commands/help.js b/commands/help.js
index 0cf7b16..bed475e 100644
--- a/commands/help.js
+++ b/commands/help.js
@@ -1,44 +1,30 @@
module.exports = {
-
- name: 'help',
- description: '',
- execute(client, message, args) {
+
+ name: 'help',
+ description: 'Get help on anything from commands, to what the bot does! just not your homework..',
+ syntax: '',
- const messageAuthor = message.author
-const embed = {
- "title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ",
- "color": 9442302,
- "description": "More commands are soon to come, stay tuned!",
- "footer": {
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
- },
- "fields": [
- {
- "name": "Utility Commands",
- "value": "`help` ``info`` ``userinfo`` ``ping`` ``invite`` ``avatar``"
- },
- {
- "name": "Server Management Commands",
- "value": "`setnick`"
- },
- {
- "name": "Action Commands",
- "value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom` `leskiss` `snuggle`"
- },
- {
- "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"
- },
- {
- "name": "<:AnitroxInfo:809651936831733791> **The bot isn't yet fully finished. There's more to come! if I don't rewrite from scratch that is 😛**"
- }
+ execute(client, message, args) {
+ const {footerTxt} = require('../config.json');
- ]
- };
- message.channel.send({ embed });
-}
-};
\ No newline at end of file
+ const Embed = {
+ "title": "HELP! SEYMOUR! THE BOT IS ON FIRE!",
+ "description": "Get help on anything from commands, to what the bot does! just not your homework..",
+ "color": 9442302,
+ "footer": {
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt + " | No mother it's just the northern lights"
+ },
+ "fields": [
+ {
+ "name": "Command List",
+ "value": "[Click here!](https://github.com/IDeletedSystem64/anitrox/blob/dev/commands.md)"
+ },
+ {
+ "name": "...Or is the bot actually on fire?",
+ "value": "Join the [support server!](https://discord.gg/grebRGsBZ3)"
+ }
+ ]
+ };
+ message.channel.send({ embed: Embed });
+}};
\ No newline at end of file
diff --git a/commands/hug.js b/commands/hug.js
index 47f6cf7..4c17632 100644
--- a/commands/hug.js
+++ b/commands/hug.js
@@ -3,7 +3,7 @@ module.exports = {
name: "hug",
description: "Hugs an user!",
execute(client, message, args) {
- const messageAuthor = message.author
+ const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first();
const gifchoices = [
"https://cdn.discordapp.com/attachments/803658122299572255/807670647920001044/hug2.gif",
@@ -17,8 +17,8 @@ module.exports = {
"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",
- "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": message.author.displayAvatarURL()
},
"fields": [
{
@@ -37,11 +37,11 @@ module.exports = {
var gif = (gifchoices[index]);
const embed = {
"title": " Hug",
- "description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + messageAuthor + ">!",
+ "description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + message.author + ">!",
"color": 8311585,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": gif
diff --git a/commands/info.js b/commands/info.js
index 21fd2c5..648adcd 100644
--- a/commands/info.js
+++ b/commands/info.js
@@ -1,10 +1,11 @@
+const { Client, ClientUser } = require('discord.js');
module.exports = {
name: 'info',
description: 'Shows bot and host information',
execute(client, message, args) {
- const { build, release } = require('../config.json');
+ const { build, release, footerTxt } = require('../config.json');
function Uptime(uptimetype) {
let totalSeconds = (uptimetype / 1000);
@@ -29,14 +30,14 @@ module.exports = {
let botAvatar = client.user.displayAvatarURL()
const embed = {
"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 your favorite bot, Anitrox!",
"color": 9442302,
"footer": {
- "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "meow"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"thumbnail": {
- "url": ("https://cdn.discordapp.com/avatars/576805923964715018/20f9b2815850dbbebd6d858308c90330.webp")
+ "url": client.user.displayAvatarURL()
},
"fields": [
{
@@ -45,19 +46,33 @@ module.exports = {
},
{
"name": "Release Type",
- "value": release
+ "value": release,
+ "inline": true
},
{
"name": "Release Version",
- "value": build
+ "value": build,
+ "inline": true
},
{
"name": "Uptime",
- "value": Uptime(client.uptime)
+ "value": Uptime(client.uptime),
+ "inline": true
},
{
"name": "<:memory:793536677737136178> Bot Memory Usage",
- "value": (Math.round(process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100) + " MiB"
+ "value": (Math.round(process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100) + " MiB",
+ "inline": true
+ },
+ {
+ "name": "Bot Name",
+ "value": client.user.tag,
+ "inline": true
+ },
+ {
+ "name": "Bot ID",
+ "value": "``" + client.user.id + "``",
+ "inline": true
},
{
"name": "<:hostinfo:793529505263517747> Host Information",
diff --git a/commands/invite.js b/commands/invite.js
index 77a02f1..d2d184a 100644
--- a/commands/invite.js
+++ b/commands/invite.js
@@ -2,15 +2,17 @@
module.exports = {
name: 'invite',
- description: 'Sends invite to add the bot to a server.',
+ description: 'Add Anitrox to your beautiful server!',
+ syntax: [],
execute(client, message) {
+ const {footerTxt} = require('../config.json');
const embed = {
- "title": "Add Anitrox to your Server",
+ "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 by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"thumbnail": {
"url": "https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png"
@@ -18,19 +20,15 @@ module.exports = {
"fields": [
{
"name": "Anitrox",
- "value": "This is the stable main build. \n https://discord.com/oauth2/authorize?client_id=576805923964715018&scope=bot&permissions=8"
+ "value": "Get the ripe off the vine Anitrox! \n [Add Anitrox to your server](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."
+ "value": "So you want the fresh and hot builds straight from the oven? We gotchu \n [Add Anitrox PTB to your server](https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303)"
},
{
"name": "Need help?",
- "value": "You can join the support server here: bit.ly/anitrox-help"
+ "value": "Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)"
}
]
diff --git a/commands/kiss.js b/commands/kiss.js
index b220904..e4b8fca 100644
--- a/commands/kiss.js
+++ b/commands/kiss.js
@@ -3,7 +3,7 @@ module.exports = {
name: "kiss",
description: "Kisses an user!",
execute(client, message, args) {
- const messageAuthor = message.author
+ const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first();
@@ -22,8 +22,8 @@ module.exports = {
"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",
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"fields": [
{
diff --git a/commands/leskiss.js b/commands/leskiss.js
index fa4982f..a94c328 100644
--- a/commands/leskiss.js
+++ b/commands/leskiss.js
@@ -6,8 +6,8 @@ module.exports = {
name: "leskiss",
description: "Lesbian kiss <:lesbian:803831629428686849>",
execute(client, message, args) {
- const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
+ const {footerTxt} = require('../config.json');
// --------------------------------------
const gifchoices = [
"https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif",
@@ -34,8 +34,8 @@ module.exports = {
"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",
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"fields": [
{
diff --git a/commands/lick.js b/commands/lick.js
index 87ab2e8..7d10aef 100644
--- a/commands/lick.js
+++ b/commands/lick.js
@@ -3,7 +3,7 @@ module.exports = {
name: "lick",
description: "Licks an user!",
execute(client, message, args) {
- const messageAuthor = message.author
+ const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first();
//---------------------------------------------------
// --------------------------------------
@@ -41,11 +41,11 @@ if(!taggedUser) {
const embed = {
"title": " Lick",
- "description": "<@" + taggedUser + "> You have been licked by <@" + messageAuthor + ">!",
+ "description": "<@" + taggedUser + "> You have been licked by <@" + message.author + ">!",
"color": 8311585,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif"
diff --git a/commands/nom.js b/commands/nom.js
index b67fa75..d77eddd 100644
--- a/commands/nom.js
+++ b/commands/nom.js
@@ -3,7 +3,7 @@ module.exports = {
name: "nom",
description: "Noms an user!",
execute(client, message, args) {
- const messageAuthor = message.author
+ const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first();
// --------------------------------------
@@ -43,8 +43,8 @@ module.exports = {
"description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!",
"color": 8311585,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": gif
diff --git a/commands/opensource.js b/commands/opensource.js
index 946ecab..342558d 100644
--- a/commands/opensource.js
+++ b/commands/opensource.js
@@ -2,13 +2,14 @@ module.exports = {
name: 'opensource',
description: 'Attributions to open source components used by Anitrox',
execute(client, message, args){
- const embed = {
+ const {footerTxt} = require('../config.json');
+ const embed = {
"title": "Component Attribution",
"description": "Some parts of Anitrox are using open source code, and their attributions are avaliable here!",
"color": 52508,
"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 by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"thumbnail": {
"url": "https://cdn.discordapp.com/attachments/803658122299572255/838854256471703602/793885335498522685.png"
diff --git a/commands/pat.js b/commands/pat.js
index 0e05524..adc8ee8 100644
--- a/commands/pat.js
+++ b/commands/pat.js
@@ -3,7 +3,7 @@ module.exports = {
name: "pat",
description: "Pats an user!",
execute(client, message, args) {
- const messageAuthor = message.author
+ const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first();
// --------------------------------------
@@ -21,8 +21,8 @@ module.exports = {
"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",
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"fields": [
{
@@ -42,8 +42,8 @@ module.exports = {
"description": "<@" + taggedUser + "> You have been patted by <@" + messageAuthor + ">!",
"color": 8311585,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": gif
diff --git a/commands/ping.js b/commands/ping.js
index e8a4ac0..bfd0020 100644
--- a/commands/ping.js
+++ b/commands/ping.js
@@ -1,17 +1,21 @@
module.exports = {
name: "ping",
description: "Gets bot ping",
- execute(client, message, args) {
- const embed = {
+ execute(client, message) {
+ const {footerTxt, locations} = require('../config.json');
+
+ const index = Math.floor(Math.random() * (locations.length -1 ) + 1);
+ PingLocation = locations[index]
+ const embed = {
"title": ":ping_pong: Ping",
- "color": 9442302,
- "fields": [
- {
- "name": "Ping is " + client.ws.ping + " ms",
- "value": "If this is more than 350ms there may be a problem!"
- }
- ]
-};
-message.channel.send({ embed });
+ "description": "**Pong!** We pinged **" + PingLocation + "** and got " + client.ws.ping + " ms.",
+ "color": 9442302,
+ "footer": {
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
+ }
+}
+
+ message.channel.send({ embed });
}
};
diff --git a/commands/poke.js b/commands/poke.js
index 6b8ebd0..d9a1fd5 100644
--- a/commands/poke.js
+++ b/commands/poke.js
@@ -21,8 +21,8 @@ module.exports = {
"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",
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"fields": [
{
@@ -42,8 +42,8 @@ module.exports = {
"description": "<@" + taggedUser + "> You have been poked by <@" + messageAuthor + ">!",
"color": 8311585,
"footer": {
- "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": gif
diff --git a/commands/slap.js b/commands/slap.js
index 94ebaa9..106e0af 100644
--- a/commands/slap.js
+++ b/commands/slap.js
@@ -3,7 +3,7 @@ module.exports = {
name: "slap",
description: "Slaps an user!",
execute(client, message, args) {
- const messageAuthor = message.author
+ const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first();
//---------------------------------------------------
@@ -12,8 +12,8 @@ const errorembed = {
"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",
- "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"fields": [
{
@@ -33,8 +33,8 @@ if(!taggedUser) {
"description": "<@" + taggedUser + "> You have been slapped 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"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943"
diff --git a/commands/snuggle.js b/commands/snuggle.js
index 3869711..583219c 100644
--- a/commands/snuggle.js
+++ b/commands/snuggle.js
@@ -3,7 +3,7 @@ module.exports = {
name: "snuggle",
description: "Snuggle an user!",
execute(client, message, args) {
- const messageAuthor = message.author
+ const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first();
// --------------------------------------
@@ -22,8 +22,8 @@ module.exports = {
"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 by IDeletedSystem64"
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt
},
"image": {
"url": gif
diff --git a/commands/userinfo.js b/commands/uinfo.js
similarity index 53%
rename from commands/userinfo.js
rename to commands/uinfo.js
index c8c05ed..0cb944f 100644
--- a/commands/userinfo.js
+++ b/commands/uinfo.js
@@ -1,31 +1,17 @@
module.exports = {
-
- name: "userinfo",
- description: "Gets info about an user, such as ID, Discord Join date and more.",
+ name: "uinfo",
+ description: "Gets info about an user, such as ID, Discord Join date and more",
+ syntax: "",
execute(client, message, args) {
-
-
-
-
-
-
- const user = message.mentions.users.first();
- var i=0;i",
- "error": "<:AnitroxError:809651936563429416> ",
- "info": "<:AnitroxInfo:809651936831733791>",
- "success": "<:AnitroxSuccess:809651936819019796>",
- "warning": "<:AnitroxWarning:809651934717804555>"
-}
\ No newline at end of file
diff --git a/releasenotes.txt b/releasenotes.txt
deleted file mode 100644
index e69de29..0000000
diff --git a/start.js b/start.js
index c80c52e..3c3169f 100644
--- a/start.js
+++ b/start.js
@@ -1,24 +1,10 @@
-
-console.log("Let's get started")
const fs = require('fs');
const Discord = require('discord.js');
const { MessageActionRow, MessageButton } = require('discord.js')
-const { build, release, prefix, token, footer } = require('./config.json');
+const { statuses, build, release, prefix, token, footerTxt } = require('./config.json');
const os = require("os");
-const activities_list = [
- "with np!help",
- "with Sophie!",
- "Trans Rights!",
- "in your computer",
- "with my internet router",
- "ssh: system64@borkeonv2",
- "YouTube",
- "with source code",
- "Visual Studio Code",
- "Running Anitrox" + build
-];
-console.log('Starting! This should only take a moment.')
+console.log('Starting!')
const client = new Discord.Client();
client.commands = new Discord.Collection();
@@ -31,7 +17,7 @@ for (const file of commandFiles) {
client.on("error", (e) => console.log("[ERROR]" + error(e)));
client.on("warn", (e) => ("[WARN]" + warn(e)));
-// Log errors and warnings ton console.
+// Log errors to console.
client.once('ready', () => {
console.clear()
console.log(' ___ _ __ ');
@@ -40,47 +26,41 @@ client.once('ready', () => {
console.log(' / ___ |/ / / / / /_/ / / /_/ /> < ');
console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ')
console.log(release + ", " + build)
- console.log("All Systems Go. | Anitrox by IDeletedSystem64 | meow meow :3");
+ console.log("All Systems Go. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!");
});
-// does a cool logo thingy on start up
-setInterval(() => {
- const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
- client.user.setActivity(activities_list[index]);
-}, 20000);
-// runs some math to randomly pick a status from activites_list, this may need tuning when statuses are added/removed to make it more random (as it may just land on the current status instead)
-client.on('message', message => {
- if (!message.content.startsWith(prefix) || message.author.bot) return;
+setInterval(() => {
+ const index = Math.floor(Math.random() * (statuses.length - 1) + 1);
+ client.user.setActivity(statuses[index]);
+}, 20000);
+// Picks a status from the config file
+
+// Begin Command Handler
+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, footer);
+ client.commands.get(command).execute(client, message, args, footerTxt, Discord);
} catch (error) {
console.stack
+ const usr = message.author;
const embed = {
- "title": "<:AnitroxError:809651936563429416> **Well that happened...**",
+ "title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
+ "description": error.stack,
"color": 13632027,
"footer": {
- "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
- "text": footer
- },
- "fields": [
- {
- "name": "**What Happened?**",
- "value": "The command you tried to run failed to execute due to an error."
- },
- {
- "name": "Error Info",
- "value": error.stack
- }
- ]
- };
+ "icon_url": message.author.displayAvatarURL(),
+ "text": footerTxt + " | Something went wrong! :("
+ }
+ };
message.channel.send({ embed });
- // tries to run the executed command, if fails it will send a error msg with the error stack
+// End Command Handler
}
});
-client.login(token);
+client.login(token);
\ No newline at end of file