Foxi's initial patches + formatting updates

This commit is contained in:
Nathaniel Mason 2022-03-26 08:33:18 +00:00
parent 333357e1c9
commit 25971ab8cb
27 changed files with 849 additions and 965 deletions

View File

@ -1,62 +1,62 @@
const { MessageEmbed } = require('discord.js');
const answers = [
"Heck no!",
"Are you crazy!? No!",
"Don't even think about it.",
"No! You might bork something!",
"Heck yeah",
"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:",
"Good idea!",
"Sure"
]
module.exports = { module.exports = {
name: '8ball', name: '8ball',
description: 'Ask Anitrox a question, any question! and they will answer it!', description: 'Ask Anitrox a question, any question! and they will answer it!',
syntax: ["[Question]"], syntax: ["[Question]"],
execute(client, message, args) { async execute(_, message, args, footerTxt) {
const {footerTxt} = require('../config.json'); const answer = answers[Math.floor(Math.random() * Object.keys(answers).length)];
const answers = [ const question = args.slice(0).join(" ")
"Heck no!", console.log(args);
"Are you crazy!? No!",
"Don't even think about it.",
"No! You might bork something!",
"Heck yeah",
"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:",
"Good idea!",
"Sure"
]
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) { if (!question) {
const embed = { await message.channel.send(new MessageEmbed({
"title": "<:AnitroxError:809651936563429416> **Something went wrong!**", "title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
"description": "You need to ask a", "description": "You need to ask a question!",
"color": 13632027, "color": 13632027,
"footer": { "footer": {
"icon_url": message.author.displayAvatarURL(), "icon_url": message.author.displayAvatarURL(),
"text": footerTxt "text": footerTxt
}
}
} }
const embed = { }));
"title": ":8ball: Anitrox 8 Ball", } else {
"description": "Your question: **" + question + "**", await message.channel.send(new MessageEmbed({
"color": 9442302, "title": ":8ball: Anitrox 8 Ball",
"footer": { "description": "Your question: **" + question + "**",
"icon_url": message.author.displayAvatarURL(), "color": 9442302,
"text": footerTxt "footer": {
}, "icon_url": message.author.displayAvatarURL(),
"text": footerTxt
"fields": [ },
{
"name": "🤔 My Answer",
"value": answer
}
]
};
message.channel.send({ embed });
"fields": [
{
"name": "🤔 My Answer",
"value": answer
}
]
}));
} }
}
} }

View File

@ -1,23 +1,23 @@
const { MessageEmbed } = require('discord.js');
module.exports = { module.exports = {
name: "avatar",
description: "Gets a users avatar.",
execute(client, message, args) {
user = message.mentions.users.first()
if (!user) user = message.author
const {footerTxt} = require('../config.json'); name: "avatar",
description: "Gets a user's avatar.",
async execute(_0, message, _1, footerTxt) {
const embed = { const user = message.mentions.users.first() || message.author;
"title": ":frame_photo: " + user.username + "'s Beautiful Avatar!",
"color": 9442302, await message.channel.send(new MessageEmbed({
"footer": { "title": ":frame_photo: " + user.username + "'s Beautiful Avatar!",
"icon_url": message.author.displayAvatarURL(), "color": 9442302,
"text": footerTxt "footer": {
}, "icon_url": message.author.displayAvatarURL(),
"image": { "text": footerTxt
"url": user.displayAvatarURL() },
} "image": {
}; "url": user.displayAvatarURL()
message.channel.send({ embed }); }
} }));
}
} }

View File

@ -1,11 +1,14 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: "bonk", name: "bonk",
description: "Bonks an user!", description: "Bonks a user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const taggedUser = message.mentions.users.first(); const taggedUser = message.mentions.users.first();
const {footerTxt} = require('../config.json');
const errorembed = { if(!taggedUser) {
await message.channel.send(new MessageEmbed({
"title": "<:AnitroxError:809651936563429416> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 13632027, "color": 13632027,
"footer": { "footer": {
@ -18,27 +21,20 @@ module.exports = {
"value": "You need to @mention an user!" "value": "You need to @mention an user!"
} }
] ]
}; }));
} else {
if(!taggedUser) { await message.channel.send(new MessageEmbed({
return message.channel.send({ embed: errorembed}); "title": "<a:SylvBonk:801185845847130113> Bonk",
// Checks if a user was mentioned. If not, returns error message. "description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!",
} "color": 9442302,
"footer": {
const embed = { "icon_url": message.author.displayAvatarURL(),
"title": "<a:SylvBonk:801185845847130113> Bonk", "text": footerTxt
"description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!", },
"color": 9442302, "image": {
"footer": { "url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
"icon_url": message.author.displayAvatarURL(), }
"text": footerTxt }));
},
"image": {
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
}
}
message.channel.send({ embed: embed });
}
} }
}
}

View File

@ -1,31 +1,25 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
//a name: "cheese",
name: "cheese", description: "Cheese an user, or run just ``n!cheese`` for a surprise :eyes:",
description: "Cheese an user, or run just ``n!cheese`` for a surprise :eyes:", async execute(_0, message, _1, footerTxt) {
execute(client, message, args) { const taggedUser = message.mentions.users.first();
const taggedUser = message.mentions.users.first();
const {footerTxt} = require('../config.json');
if(!taggedUser) { if(!taggedUser) {
return message.channel.send("*slams cheese on desk* Cheese. https://www.youtube.com/watch?v=Or4IE8fkpn4"); await message.channel.send("*slams cheese on desk* Cheese. https://www.youtube.com/watch?v=Or4IE8fkpn4");
} else {
} await message.channel.send(new MessageEmbed({
"title": ":cheese: Cheesed",
"description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + message.author + ">!",
const embed = { "color": 16312092,
"title": ":cheese: Cheesed", "footer": {
"description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + message.author + ">!", "icon_url": message.author.displayAvatarURL(),
"color": 16312092, "text": footerTxt
"footer": { },
"icon_url": message.author.displayAvatarURL(), "image": {
"text": footerTxt "url": "https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png"
}, }
"image": { }));
"url": "https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png"
}
}
message.channel.send({ embed: embed });
}
} }
}
}

View File

@ -1,38 +1,37 @@
const { MessageEmbed } = require('discord.js');
const gifchoices = [
"https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif",
"https://media1.tenor.com/images/6d73b0a9cadef5310be4b6160d2f959a/tenor.gif?itemid=12099823",
"https://media.tenor.com/images/2636cf3c8152631b4630bf71757a4afa/tenor.gif",
"https://i.imgur.com/JiFpT5E.gif"
];
module.exports = { module.exports = {
name: "cuddle", name: "cuddle",
description: "Cuddle an user!", description: "Cuddle an user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const taggedUser = message.mentions.users.first();
const {footerTxt} = require('../config.json');
// --------------------------------------
const gifchoices = [
"https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif",
"https://media1.tenor.com/images/6d73b0a9cadef5310be4b6160d2f959a/tenor.gif?itemid=12099823",
"https://media.tenor.com/images/2636cf3c8152631b4630bf71757a4afa/tenor.gif",
"https://i.imgur.com/JiFpT5E.gif"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1);
var gif = (gifchoices[index]);
// ---------------------------------------
if(!taggedUser) { const taggedUser = message.mentions.users.first();
return message.channel.send("<:AnitroxError:809651936563429416> You need to specify an user!") const index = Math.floor(Math.random() * gifchoices.length);
} const gif = (gifchoices[index]);
const embed = {
"title": ":heart: Cuddle",
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + message.author + ">!",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": gif
}
}
if(!taggedUser) {
message.channel.send({ embed: embed }); await message.channel.send("<:AnitroxError:809651936563429416> You need to specify an user!");
} } else {
await message.channel.send(new MessageEmbed({
"title": ":heart: Cuddle",
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + message.author + ">!",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": gif
}
}));
} }
}
}

View File

@ -1,40 +1,36 @@
const { MessageEmbed } = require("discord.js");
const { inspect } = require("util");
module.exports = { module.exports = {
name: 'eval', name: 'eval',
description: 'Runs js code', description: 'Runs js code',
execute(client, message, args) { async execute(_, message, args, footerTxt) {
const commandName = args[0].toLowerCase(); if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) {
if (message.author.id == 309427567004483586) { try {
try { const code = args.join(" ");
const code = args.join(" "); const evaled = inspect(eval(code));
let evaled = eval(code); await message.channel.send(evaled, {code:"xl"});
} catch (error) {
if (typeof evaled !== "string") await message.channel.send(new MessageEmbed({
evaled = require("util").inspect(evaled); "title": "<:NyabotError:697145462347661412> **Well that happened...**",
"color": 13632027,
message.channel.send(clean(evaled), {code:"xl"}); "footer": {
} catch (error) { "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
const embed = { "text": footerTxt
"title": "<:NyabotError:697145462347661412> **Well that happened...**", },
"color": 13632027, "fields": [
"footer": { {
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "name": "**What Happened?**",
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved." "value": "The command you tried to run failed to execute due to an error."
}, },
"fields": [ {
{ "name": "Error Info",
"name": "**What Happened?**", "value": error.message
"value": "The command you tried to run failed to execute due to an error." }
}, ]
{ }));
"name": "Error Info", }
"value": error.message };
} }
]
};
message.channel.send({ embed });
}
};
}
} }

View File

@ -1,13 +1,13 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: 'help', name: 'help',
description: 'Get help on anything from commands, to what the bot does! just not your homework..', description: 'Get help on anything from commands, to what the bot does! just not your homework..',
syntax: '<Command>', syntax: '<Command>',
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const {footerTxt} = require('../config.json'); await message.channel.send(new MessageEmbed({
const Embed = {
"title": "HELP! SEYMOUR! THE BOT IS ON FIRE!", "title": "HELP! SEYMOUR! THE BOT IS ON FIRE!",
"description": "Get help on anything from commands, to what the bot does! just not your homework..", "description": "Get help on anything from commands, to what the bot does! just not your homework..",
"color": 9442302, "color": 9442302,
@ -25,6 +25,6 @@ module.exports = {
"value": "Join the [support server!](https://discord.gg/grebRGsBZ3)" "value": "Join the [support server!](https://discord.gg/grebRGsBZ3)"
} }
] ]
}; }));
message.channel.send({ embed: Embed }); }
}}; }

View File

@ -1,54 +1,49 @@
const { MessageEmbed } = require("discord.js");
const gifchoices = [
"https://cdn.discordapp.com/attachments/803658122299572255/807670647920001044/hug2.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807670797983285268/hug1.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807670951113392178/gif6.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/808834617494208532/gif3new.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807671126376972308/gif4.gif"
];
module.exports = { module.exports = {
name: "hug", name: "hug",
description: "Hugs an user!", description: "Hugs a user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first();
const taggedUser = message.mentions.users.first();
const gifchoices = [
"https://cdn.discordapp.com/attachments/803658122299572255/807670647920001044/hug2.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807670797983285268/hug1.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807670951113392178/gif6.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/808834617494208532/gif3new.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807671126376972308/gif4.gif"
];
//---------------------------------
const errorembed = {
"title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": message.author.displayAvatarURL()
},
"fields": [
{
"name": "Well that happened...",
"value": "You need to @mention an user!"
}
]
};
if(!taggedUser) { if(!taggedUser) {
return message.channel.send({ embed: errorembed}); await message.channel.send(new MessageEmbed({
// Checks if a user was mentioned. If not, returns error message. "title": "<:AnitroxError:809651936563429416> Error",
} "color": 9442302,
"footer": {
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 0.4); "icon_url": message.author.displayAvatarURL(),
var gif = (gifchoices[index]); "text": message.author.displayAvatarURL()
const embed = { },
"title": "<a:ABlobCatHuggle:801232248035999784> Hug", "fields": [
"description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + message.author + ">!", {
"color": 8311585, "name": "Well that happened...",
"footer": { "value": "You need to @mention an user!"
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": gif
}
} }
]
}));
message.channel.send({ embed: embed }); } else {
} const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
await message.channel.send(new MessageEmbed({
"title": "<a:ABlobCatHuggle:801232248035999784> Hug",
"description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + message.author + ">!",
"color": 8311585,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": gif
}
}));
} }
}
}

View File

@ -1,113 +1,109 @@
const { Client, ClientUser } = require('discord.js'); const { MessageEmbed } = require('discord.js');
const {build, release} = require('../config.json');
module.exports = { module.exports = {
name: 'info', name: 'info',
description: 'Shows bot and host information', description: 'Shows bot and host information',
execute(client, message, args) { async execute(client, message, _, footerTxt) {
const { build, release, footerTxt } = require('../config.json');
function Uptime(uptimetype) {
let totalSeconds = (uptimetype / 1000);
let days = parseInt(Math.floor(totalSeconds / 86400)) + " day"; function Uptime(uptime) {
let hours = Math.floor(parseInt(Math.floor(totalSeconds / 3600)) % 24) + " hour"; const totalSeconds = (uptime / 1000);
totalSeconds %= 3600;
let minutes = parseInt(Math.floor(totalSeconds / 60)) + " minute";
let seconds = parseInt(totalSeconds % 60) + " second";
if (parseInt(days.substring(0,2)) != 1) days += "s"; const days = parseInt(totalSeconds / 86400);
if (parseInt(hours.substring(0,3)) != 1) hours += "s"; const hours = parseInt((totalSeconds % 86400) / 3600);
if (parseInt(minutes.substring(0,3)) != 1) minutes += "s"; const minutes = parseInt((totalSeconds % 3600) / 60);
if (parseInt(seconds.substring(0,3)) != 1) seconds += "s"; const seconds = parseInt(totalSeconds % 60);
let uptime = `${days}**, **${hours}**, **${minutes}**, **${seconds}`; const daystring = days + (days === 1 ? "day" : "days");
return uptime; const hourstring = hours + (hours === 1 ? "day" : "days");
}; const minutetring = minutes + (minutes === 1 ? "day" : "days");
const secondstring = seconds + (seconds === 1 ? "day" : "days");
const os = require("os") return `${daystring}**, **${hourstring}**, **${minutetring}**, **${secondstring}`;
var osu = require('node-os-utils') }
var cpu = osu.cpu
let botAvatar = client.user.displayAvatarURL()
const embed = {
"title": "<:AnitroxInfo:809651936831733791> Information about Anitrox",
"description": "Everything you've ever wanted to know about your favorite bot, Anitrox!",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"thumbnail": {
"url": client.user.displayAvatarURL()
},
"fields": [
{
"name": "Bot Information",
"value": "** **"
},
{
"name": "Release Type",
"value": release,
"inline": true
},
{
"name": "Release Version",
"value": build,
"inline": true
},
{
"name": "Uptime",
"value": Uptime(client.uptime),
"inline": true
},
{
"name": "<:memory:793536677737136178> Bot Memory Usage",
"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",
"value": "** **"
},
{
"name": "<:hostinfo:793529505263517747> Host Uptime",
"value": Uptime(os.uptime() * 1000)
},
{
"name": "<:cpu:793672442056802354> CPU Type",
"value": process.arch + ", " + cpu.model()
},
{ const os = require("os");
"name": "<:hostos:793866961675223090> OS Type", const osu = require('node-os-utils');
"value": process.platform + " / " + os.version() const cpu = osu.cpu;
}, await message.channel.send(new MessageEmbed({
{ "title": "<:AnitroxInfo:809651936831733791> Information about Anitrox",
"name": "<:node:793537507018145813> Node.JS Version", "description": "Everything you've ever wanted to know about your favorite bot, Anitrox!",
"value": process.version "color": 9442302,
}, "footer": {
{ "icon_url": message.author.displayAvatarURL(),
"name": "<:hostinfo:793529505263517747> Bot Ping", "text": footerTxt
"value": Math.round(client.ws.ping) + " ms", },
"inline": true "thumbnail": {
}, "url": client.user.displayAvatarURL()
{ },
"name": "<:usersuccess:793885338250641469> **Special Thanks To**", "fields": [
"value": "@OfficialTCGMatt for providing help with development\n @chuu_shi Allowing me to host Anitrox on his server" {
} "name": "Bot Information",
"value": "** **"
] },
}; {
message.channel.send({ embed }); "name": "Release Type",
"value": release,
"inline": true
},
{
"name": "Release Version",
"value": build,
"inline": true
},
{
"name": "Uptime",
"value": Uptime(client.uptime),
"inline": true
},
{
"name": "<:memory:793536677737136178> Bot Memory Usage",
"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",
"value": "** **"
},
{
"name": "<:hostinfo:793529505263517747> Host Uptime",
"value": Uptime(os.uptime() * 1000)
},
{
"name": "<:cpu:793672442056802354> CPU Type",
"value": process.arch + ", " + cpu.model()
},
{
"name": "<:hostos:793866961675223090> OS Type",
"value": process.platform + " / " + os.version()
},
{
"name": "<:node:793537507018145813> Node.JS Version",
"value": process.version
},
{
"name": "<:hostinfo:793529505263517747> Bot Ping",
"value": Math.round(client.ws.ping) + " ms",
"inline": true
},
{
"name": "<:usersuccess:793885338250641469> **Special Thanks To**",
"value": "@OfficialTCGMatt for providing help with development\n @chuu_shi Allowing me to host Anitrox on his server"
} }
};
]
}));
}
};

View File

@ -1,38 +1,37 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: 'invite', name: 'invite',
description: 'Add Anitrox to your beautiful server!', description: 'Add Anitrox to your beautiful server!',
syntax: [], syntax: [],
execute(client, message) { async execute(_0, message, _1, footerTxt) {
const {footerTxt} = require('../config.json'); await message.channel.send(new MessageEmbed({
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.",
"description": "Weather you want stable, or that squeaky clean fresh PTB build, we gotchu.", "color": 9442302,
"color": 9442302, "footer": {
"footer": { "icon_url": message.author.displayAvatarURL(),
"icon_url": message.author.displayAvatarURL(), "text": footerTxt
"text": footerTxt },
}, "thumbnail": {
"thumbnail": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png"
"url": "https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png" },
}, "fields": [
"fields": [ {
{ "name": "Anitrox",
"name": "Anitrox", "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)"
"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)",
"name": "Anitrox PTB (Public Test Build)", "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)"
"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?",
"name": "Need help?", "value": "Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)"
"value": "Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)" }
}
] ]
}; }));
message.channel.send({ embed });
}, },
}; };

View File

@ -1,24 +1,22 @@
const { MessageEmbed } = require("discord.js");
const gifchoices = [
"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"
];
module.exports = { module.exports = {
name: "kiss", name: "kiss",
description: "Kisses an user!", description: "Kisses a user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first();
const taggedUser = message.mentions.users.first();
if(!taggedUser) {
// -------------------------------------- await message.channel.send(new MessageEmbed({
const gifchoices = [
"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]);
// ---------------------------------------
const errorembed = {
"title": "<:AnitroxError:809651936563429416> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 13632027, "color": 13632027,
"footer": { "footer": {
@ -31,30 +29,21 @@ module.exports = {
"value": "You need to @mention an user!" "value": "You need to @mention an user!"
} }
] ]
}; }));
} else {
if(!taggedUser) { const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
return message.channel.send({ embed: errorembed}); await message.channel.send(new MessageEmbed({
} "title": ":heart: Kiss",
"description": "<@" + taggedUser + ">" + ", You have been kissed by <@" + message.author + ">!",
if(!taggedUser) { "color": 9442302,
return message.channel.send({ embed: errorembed}); "footer": {
// Checks if a user was mentioned. If not, returns error message. "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
} "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
const embed = { },
"title": ":heart: Kiss", "image": {
"description": "<@" + taggedUser + ">" + ", You have been kissed by <@" + messageAuthor + ">!", "url": gif
"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 });
}
} }
}
}

View File

@ -1,36 +1,32 @@
const { Message } = require("discord.js"); const { MessageEmbed } = require("discord.js");
const { execute } = require("./info");
const gifchoices = [
"https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803833959338475550/gif12.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834034135236628/gif9.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834082034843658/gif18.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834094063583302/gif8.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834099869024296/gif10.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834132035665950/gif16.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834146413084713/gif13.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834249425715210/gif22.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834323898990592/gif11.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834328848793650/gif14.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834391226351676/gif17.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834391226351676/gif17.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834498714304522/gif15.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834514269798460/gif19.gif"
];
module.exports = { module.exports = {
name: "leskiss", name: "leskiss",
description: "Lesbian kiss <:lesbian:803831629428686849>", description: "Lesbian kiss <:lesbian:803831629428686849>",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const taggedUser = message.mentions.users.first(); const taggedUser = message.mentions.users.first();
const {footerTxt} = require('../config.json');
// --------------------------------------
const gifchoices = [
"https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803833959338475550/gif12.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834034135236628/gif9.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834082034843658/gif18.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834094063583302/gif8.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834099869024296/gif10.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834132035665950/gif16.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834146413084713/gif13.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834249425715210/gif22.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834323898990592/gif11.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834328848793650/gif14.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834391226351676/gif17.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834391226351676/gif17.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834498714304522/gif15.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834514269798460/gif19.gif"
]; if(!taggedUser) {
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1.75); await message.channel.send(new MessageEmbed({
var gif = (gifchoices[index]);
// ---------------------------------------
const errorembed = {
"title": "<:AnitroxError:809651936563429416> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
@ -43,17 +39,12 @@ module.exports = {
"value": "You need to @mention an user!" "value": "You need to @mention an user!"
} }
] ]
}; }));
} else {
if(!taggedUser) { const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
return message.channel.send({ embed: errorembed}); await message.channel.send(new MessageEmbed({
// Checks if a user was mentioned. If not, returns error message.
}
const embed = {
"title": ":heart: <:lesbian:803831629428686849> Kiss", "title": ":heart: <:lesbian:803831629428686849> Kiss",
"description": "<@" + taggedUser + ">" + " You have been kissed by <@" + messageAuthor + ">! <:lesbian:803831629428686849>", "description": "<@" + taggedUser + ">" + " You have been kissed by <@" + message.author + ">! <:lesbian:803831629428686849>",
"color": 8311585, "color": 8311585,
"footer": { "footer": {
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
@ -62,9 +53,7 @@ module.exports = {
"image": { "image": {
"url": gif "url": gif
} }
} }));
}
}
message.channel.send({ embed: embed });
}
} }

View File

@ -1,58 +1,48 @@
module.exports = { const { MessageEmbed, Message } = require("discord.js");
name: "lick", const gifchoices = [
description: "Licks an user!",
execute(client, message, args) {
const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first();
//---------------------------------------------------
// --------------------------------------
const gifchoices = [
"https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif", "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif",
"https://cdn.lowgif.com/full/2027501b8fa5225c-.gif", "https://cdn.lowgif.com/full/2027501b8fa5225c-.gif",
"https://i.gifer.com/36Nx.gif", "https://i.gifer.com/36Nx.gif",
"https://media.tenor.com/images/e8bbe712a5f36bbe9545930894b08bf9/tenor.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": "<: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"
},
"fields": [
{
"name": "Well that happened...",
"value": "You need to @mention an user!"
}
]
};
if(!taggedUser) { module.exports = {
return message.channel.send({ embed: errorembed});
// Checks if a user was mentioned. If not, returns error message.
}
const embed = { name: "lick",
"title": "<a:LeafeonLick:806396195089154058> Lick", description: "Licks an user!",
"description": "<@" + taggedUser + "> You have been licked by <@" + message.author + ">!", async execute(_0, message, _1, footerTxt) {
"color": 8311585, const taggedUser = message.mentions.users.first();
"footer": {
"icon_url": message.author.displayAvatarURL(), if(!taggedUser) {
"text": footerTxt await message.channel.send(new MessageEmbed({
}, "title": "<:AnitroxError:809651936563429416> Error",
"image": { "color": 9442302,
"url": "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif" "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": "Well that happened...",
"value": "You need to @mention an user!"
} }
]
}));
message.channel.send({ embed: embed }); } else {
} const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
await message.channel.send(new MessageEmbed({
"title": "<a:LeafeonLick:806396195089154058> Lick",
"description": "<@" + taggedUser + "> You have been licked by <@" + message.author + ">!",
"color": 8311585,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif"
}
}));
} }
}
}

View File

@ -1,57 +1,48 @@
const { MessageEmbed } = require('discord.js');
const gifchoices = [
"https://i.imgur.com/Ns1RBzX.gif",
"https://cdn.lowgif.com/full/2027501b8fa5225c-.gif",
"https://i.gifer.com/36Nx.gif",
"https://media.tenor.com/images/e8bbe712a5f36bbe9545930894b08bf9/tenor.gif"
];
module.exports = { module.exports = {
name: "nom", name: "nom",
description: "Noms an user!", description: "Noms an user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first();
const taggedUser = message.mentions.users.first();
// -------------------------------------- if(!taggedUser) {
const gifchoices = [ await message.channel.send(new MessageEmbed({
"https://i.imgur.com/Ns1RBzX.gif", "title": "<:AnitroxError:809651936563429416> Error",
"https://cdn.lowgif.com/full/2027501b8fa5225c-.gif", "color": 9442302,
"https://i.gifer.com/36Nx.gif", "footer": {
"https://media.tenor.com/images/e8bbe712a5f36bbe9545930894b08bf9/tenor.gif" "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": [
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1); {
var gif = (gifchoices[index]); "name": "Well that happened...",
// --------------------------------------- "value": "You need to @mention an user!"
const errorembed = {
"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"
},
"fields": [
{
"name": "Well that happened...",
"value": "You need to @mention an user!"
}
]
};
if(!taggedUser) {
return message.channel.send({ embed: errorembed});
// Checks if a user was mentioned. If not, returns error message.
}
const embed = {
"title": "<:BlobNomBlob:801241117919805510> Nom",
"description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!",
"color": 8311585,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": gif
}
} }
]
}));
message.channel.send({ embed: embed }); } else {
} const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
await message.channel.send(new MessageEmbed({
"title": "<:BlobNomBlob:801241117919805510> Nom",
"description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!",
"color": 8311585,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": gif
}
}));
} }
}
}

View File

@ -1,33 +1,34 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: 'opensource', name: 'opensource',
description: 'Attributions to open source components used by Anitrox', description: 'Attributions to open source components used by Anitrox',
execute(client, message, args){ async execute(_0, message, _1, footerTxt){
const {footerTxt} = require('../config.json'); await message.channel.send(new MessageEmbed({
const embed = { "title": "Component Attribution",
"title": "Component Attribution", "description": "Some parts of Anitrox are using open source code, and their attributions are avaliable here!",
"description": "Some parts of Anitrox are using open source code, and their attributions are avaliable here!", "color": 52508,
"color": 52508, "footer": {
"footer": { "icon_url": message.author.displayAvatarURL(),
"icon_url": message.author.displayAvatarURL(), "text": footerTxt
"text": footerTxt },
}, "thumbnail": {
"thumbnail": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/838854256471703602/793885335498522685.png"
"url": "https://cdn.discordapp.com/attachments/803658122299572255/838854256471703602/793885335498522685.png" },
}, "fields": [
"fields": [ {
{ "name": "Discord.JS",
"name": "Discord.JS", "value": "[Check out the Discord.JS project on GitHub](https://github.com/discordjs/discord.js/)"
"value": "[Check out the Discord.JS project on GitHub](https://github.com/discordjs/discord.js/)" },
}, {
{ "name": "The Anitrox Project",
"name": "The Anitrox Project", "value": "[Check out Anitrox on GitHub](https://github.com/IDeletedSystem64/anitrox)"
"value": "[Check out Anitrox on GitHub](https://github.com/IDeletedSystem64/anitrox)" },
}, {
{ "name": "You",
"name": "You", "value": "Using and supporting the Anitrox Project, thank you! ❤"
"value": "Using and supporting the Anitrox Project, thank you! ❤" }
} ]
] }));
}; }
message.channel.send({ embed }); }
}}

View File

@ -1,23 +1,20 @@
const { MessageEmbed } = require("discord.js");
const gifchoices = [
"https://cdn.discordapp.com/attachments/803658122299572255/803708174293008474/tenor.gif",
"https://community.gamepress.gg/uploads/default/original/3X/0/a/0a762099c5ad6de9ca5f13dd22a7e45884a99eb3.gif",
"https://media1.giphy.com/media/ARSp9T7wwxNcs/giphy.gif"
];
module.exports = { module.exports = {
name: "pat", name: "pat",
description: "Pats an user!", description: "Pats a user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first();
const taggedUser = message.mentions.users.first();
// -------------------------------------- if(!taggedUser) {
const gifchoices = [ await message.channel.send(new MessageEmbed({
"https://cdn.discordapp.com/attachments/803658122299572255/803708174293008474/tenor.gif",
"https://community.gamepress.gg/uploads/default/original/3X/0/a/0a762099c5ad6de9ca5f13dd22a7e45884a99eb3.gif",
"https://media1.giphy.com/media/ARSp9T7wwxNcs/giphy.gif"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 2);
var gif = (gifchoices[index]);
// ---------------------------------------
const errorembed = {
"title": "<:AnitroxError:809651936563429416> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
@ -30,27 +27,21 @@ module.exports = {
"value": "You need to @mention an user!" "value": "You need to @mention an user!"
} }
] ]
}; }));
} else {
if(!taggedUser) { const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
return message.channel.send({ embed: errorembed}); await message.channel.send(new MessageEmbed({
// Checks if a user was mentioned. If not, returns error message. "title": "<:pats:801238281286713355> Pat",
} "description": "<@" + taggedUser + "> You have been patted by <@" + messageAuthor + ">!",
"color": 8311585,
const embed = { "footer": {
"title": "<:pats:801238281286713355> Pat", "icon_url": message.author.displayAvatarURL(),
"description": "<@" + taggedUser + "> You have been patted by <@" + messageAuthor + ">!", "text": footerTxt
"color": 8311585, },
"footer": { "image": {
"icon_url": message.author.displayAvatarURL(), "url": gif
"text": footerTxt }
}, }));
"image": {
"url": gif
}
}
message.channel.send({ embed: embed });
}
} }
}
}

View File

@ -1,21 +1,21 @@
const { MessageEmbed } = require('discord.js');
const { locations } = require('../config.json');
module.exports = { module.exports = {
name: "ping", name: "ping",
description: "Gets bot ping", description: "Gets bot ping",
execute(client, message) { async execute(client, message, _, footerTxt) {
const {footerTxt, locations} = require('../config.json'); const index = Math.floor(Math.random() * locations.length);
const pingLocation = locations[index]
const index = Math.floor(Math.random() * (locations.length -1 ) + 1); await message.channel.send(new MessageEmbed({
PingLocation = locations[index] "title": ":ping_pong: Ping",
const embed = { "description": "**Pong!** We pinged **" + pingLocation + "** and got " + client.ws.ping + " ms.",
"title": ":ping_pong: Ping", "color": 9442302,
"description": "**Pong!** We pinged **" + PingLocation + "** and got " + client.ws.ping + " ms.", "footer": {
"color": 9442302, "icon_url": message.author.displayAvatarURL(),
"footer": { "text": footerTxt
"icon_url": message.author.displayAvatarURL(), }
"text": footerTxt }));
}
}
message.channel.send({ embed });
} }
}; };

View File

@ -1,23 +1,20 @@
const { MessageEmbed } = require("discord.js");
const gifchoices = [
"https://i.pinimg.com/originals/b4/95/fb/b495fb19f4b9a1b04f48297b676c497b.gif",
"https://i.imgur.com/H7Ok5tn.gif",
"https://media1.tenor.com/images/8fe23ec8e2c5e44964e5c11983ff6f41/tenor.gif?itemid=5600215"
];
module.exports = { module.exports = {
name: "poke", name: "poke",
description: "Pokes an user!", description: "Pokes an user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const messageAuthor = message.author const taggedUser = message.mentions.users.first();
const taggedUser = message.mentions.users.first();
// -------------------------------------- if(!taggedUser) {
const gifchoices = [ await message.channel.send(new MessageEmbed({
"https://i.pinimg.com/originals/b4/95/fb/b495fb19f4b9a1b04f48297b676c497b.gif",
"https://i.imgur.com/H7Ok5tn.gif",
"https://media1.tenor.com/images/8fe23ec8e2c5e44964e5c11983ff6f41/tenor.gif?itemid=5600215"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 2);
var gif = (gifchoices[index]);
// ---------------------------------------
const errorembed = {
"title": "<:AnitroxError:809651936563429416> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
@ -30,27 +27,21 @@ module.exports = {
"value": "You need to @mention an user!" "value": "You need to @mention an user!"
} }
] ]
}; }));
} else {
if(!taggedUser) { const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
return message.channel.send({ embed: errorembed}); await message.channel.send(new MessageEmbed({
// Checks if a user was mentioned. If not, returns error message. "title": "👉 Poke!",
} "description": "<@" + taggedUser + "> You have been poked by <@" + message.author + ">!",
"color": 8311585,
const embed = { "footer": {
"title": "👉 Poke!", "icon_url": message.author.displayAvatarURL(),
"description": "<@" + taggedUser + "> You have been poked by <@" + messageAuthor + ">!", "text": footerTxt
"color": 8311585, },
"footer": { "image": {
"icon_url": message.author.displayAvatarURL(), "url": gif
"text": footerTxt }
}, }));
"image": {
"url": gif
}
}
message.channel.send({ embed: embed });
}
} }
}
}

View File

@ -1,44 +1,45 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: 'reload', name: 'reload',
description: 'Reloads a command', description: 'Reloads a command',
args: true, args: true,
execute(client, message, args, denied) { async execute(client, message, args, footerTxt) {
if (message.author.id == 309427567004483586) { if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) {
const commandName = args[0].toLowerCase(); const commandName = args[0].toLowerCase();
const command = message.client.commands.get(commandName) const command = message.client.commands.get(commandName)
|| message.client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName)); || message.client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName));
if (!command) { if (!command) {
return message.channel.send(`There is no command with name or alias \`${commandName}\`, ${message.author}!`); await message.channel.send(`There is no command with name or alias \`${commandName}\`, ${message.author}!`);
} else {
delete require.cache[require.resolve(`./${command.name}.js`)];
try {
const newCommand = require(`./${command.name}.js`);
client.commands.set(newCommand.name, newCommand);
await message.channel.send(`<:NyabotSuccess:697211376740859914> **Reloaded \`${command.name}\` successfully!**`);
console.log(`User reloaded ${command.name}.`)
} catch (error) {
console.error(error);
await message.channel.send(`<:AnitroxError:809651936563429416> There was an error while reloading \`${command.name}\`:\n\`${error.message}\``);
}
}
} else {
message.channel.send(new MessageEmbed({
"title": "<:NyabotDenied:697145462565896194> **Access is denied**",
"color": 13632027,
"footer": {
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
"text": footerTxt
},
"fields": [
{
"name": "**What Happened?**",
"value": "You don't have the appropriate permissions to run this command!"
}
]
}));
} }
}
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(`<:AnitroxError:809651936563429416> 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": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
},
"fields": [
{
"name": "**What Happened?**",
"value": "You don't have the appropriate permissions to run this command!"
}
]
};
message.channel.send({ embed });
}
},
}; };

View File

@ -1,18 +1,20 @@
const { token } = require('../config.json');
const Discord = require('discord.js');
module.exports = { module.exports = {
name: 'restart', name: 'restart',
description: '(Owner Only) Shuts down the bot.', description: '(Owner Only) Shuts down the bot.',
execute(client, message, args) { async execute(client, message, args) {
const { token } = require('../config.json'); if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) {
if (message.author.id == 309427567004483586) { await message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...")
message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...").then try {
client.destroy() client.destroy();
.catch(console.error) await client.login(token);
.then await message.channel.send("<:NyabotSuccess:697211376740859914> Restart Successful")
setTimeout(() => { client.login(token); }, 3000);
message.channel.send("<:NyabotSuccess:697211376740859914> Restart Successful")
console.log("All systems go") console.log("All systems go")
} else { } catch(e) {console.log(e);}
message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command."); } else {
} await message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command.");
}} }
}
}

View File

@ -1,49 +1,50 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: 'setnick', name: 'setnick',
description: 'Sets your nickname', description: 'Sets your nickname',
execute(client, message, args) { async execute(_, message, args, footerTxt) {
if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")) { if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")) {
var newnick = args.slice(0).join(" ") const newnick = args.slice(0).join(" ")
try { try {
const successembed = { await 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.")
"title": "<:AnitroxSuccess:809651936819019796> Nickname Changed", await message.channel.send(new MessageEmbed({
"color": 9442302, "title": "<:AnitroxSuccess:809651936819019796> Nickname Changed",
"footer": { "color": 9442302,
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "footer": {
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
}, "text": footerTxt
"fields": [ },
{ "fields": [
"name": "Changed nickname successfully!", {
"value": "You need to have permission ``CHANGE_NICKNAME`` to change your nick!" "name": "Changed nickname successfully!",
}, "value": "You need to have permission ``CHANGE_NICKNAME`` to change your nick!"
{ },
"name": "New Nickname", {
"value": newnick, "name": "New Nickname",
"inline": true "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) {
} catch (error) { await message.channel.send(new MessageEmbed({
const failembed = { "title": "<:AnitroxDenied:809651936642203668> Well that happened...",
"title": "<:AnitroxDenied:809651936642203668> Well that happened...", "color": 13632027,
"color": 13632027, "footer": {
"footer": { "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png",
"icon_url": "https://cdn.discordapp.com/embed/avatars/0.png", "text": footerTxt
"text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" },
}, "fields": [
"fields": [ {
{ "name": "Failed to set nickname",
"name": "Failed to set nickname", "value": "You need to have permission ``CHANGE_NICKNAME`` to change your nick!"
"value": "You need to have permission ``CHANGE_NICKNAME`` to change your nick!" }
} ]
] }));
}; };
message.channel.send({ embed: failembed });
};
}; };
}} }
}

View File

@ -1,47 +1,40 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: "slap", name: "slap",
description: "Slaps an user!", description: "Slaps an user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first();
const taggedUser = message.mentions.users.first();
//---------------------------------------------------
//--------------------------------------------------- if(!taggedUser) {
const errorembed = { await message.channel.send(new MessageEmbed({
"title": "<:AnitroxError:809651936563429416> Error", "title": "<:AnitroxError:809651936563429416> Error",
"color": 13632027, "color": 13632027,
"footer": { "footer": {
"icon_url": message.author.displayAvatarURL(), "icon_url": message.author.displayAvatarURL(),
"text": footerTxt "text": footerTxt
}, },
"fields": [ "fields": [
{ {
"name": "Well that happened...", "name": "Well that happened...",
"value": "You need to @mention an user!" "value": "You need to @mention an user!"
}
]
};
if(!taggedUser) {
return message.channel.send({ embed: errorembed});
// Checks if a user was mentioned. If not, returns error message.
}
const embed = {
"title": ":anger: Slap",
"description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943"
}
} }
]
}));
message.channel.send({ embed: embed }); } else {
} await message.channel.send(new MessageEmbed({
"title": ":anger: Slap",
"description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943"
}
}));
} }
}
}

View File

@ -1,36 +1,47 @@
const { MessageEmbed } = require('discord.js');
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"
];
module.exports = { module.exports = {
name: "snuggle", name: "snuggle",
description: "Snuggle an user!", description: "Snuggle an user!",
execute(client, message, args) { async execute(_0, message, _1, footerTxt) {
const {footerTxt} = require('../config.json');
const taggedUser = message.mentions.users.first(); const taggedUser = message.mentions.users.first();
// -------------------------------------- if(!taggedUser) {
const gifchoices = [ await message.channel.send(new MessageEmbed({
"https://media.discordapp.net/attachments/803658122299572255/806775382995894282/anime-couple-snuggle-gif-5.gif?width=450&height=238", "title": "<:AnitroxError:809651936563429416> Error",
"https://media.discordapp.net/attachments/803658122299572255/806775411928989726/snuggl1.gif", "color": 13632027,
"https://cdn.discordapp.com/attachments/803658122299572255/806775422833786911/ImpureDeepAmbushbug-small.gif" "footer": {
"icon_url": message.author.displayAvatarURL(),
]; "text": footerTxt
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1); },
var gif = (gifchoices[index]); "fields": [
// --------------------------------------- {
"name": "Well that happened...",
const embed = { "value": "You need to @mention an user!"
"title": "<:BlobSnuggleCat:806759753450782731> Snuggle",
"description": "<@" + taggedUser + ">" + " You have been snuggled by " + "<@" + messageAuthor + ">!",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": gif
} }
]
}));
} else {
await message.channel.send(new MessageEmbed({
"title": "<:BlobSnuggleCat:806759753450782731> Snuggle",
"description": "<@" + taggedUser + ">" + " You have been snuggled by " + "<@" + messageAuthor + ">!",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
},
"image": {
"url": gif
} }
}));
}
message.channel.send({ embed: embed });
}
} }
}

View File

@ -1,32 +1,30 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: "stop", name: "stop",
description: "Stops the bot", description: "Stops the bot",
execute(client, message, args) { async execute(client, message, _, footerTxt) {
if (message.author.id == 309427567004483586) { if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) {
const embed = { await message.channel.send(new MessageEmbed({
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**", "title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
"description": "See you next time!", "description": "See you next time!",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
"text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" "text": footerTxt
}
};
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 });
}
} }
}));
client.destroy();
} else {
await message.channel.send(new MessageEmbed({
"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": footerTxt
}
}));
} }
}
}

View File

@ -1,19 +1,19 @@
const { MessageEmbed } = require("discord.js");
module.exports = { module.exports = {
name: "uinfo", name: "uinfo",
description: "Gets info about an user, such as ID, Discord Join date and more", description: "Gets info about an user, such as ID, Discord Join date and more",
syntax: "<User>", syntax: "<User>",
execute(client, message, args, footerTxt) { async execute(client, message, args, footerTxt) {
console.log(args[0]) console.log(args[0])
let user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author const user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author
// if (!user) user = message.author await message.channel.send(new MessageEmbed({
const embed = {
"title": "Everything you've ever wanted to know about " + user.username + "!", "title": "Everything you've ever wanted to know about " + user.username + "!",
"color": 9442302, "color": 9442302,
"footer": { "footer": {
"icon_url": message.author.displayAvatarURL(), "icon_url": message.author.displayAvatarURL(),
"text": footerTxt "text": footerTxt
}, },
"thumbnail": { "thumbnail": {
"url": user.displayAvatarURL() "url": user.displayAvatarURL()
}, },
@ -52,7 +52,6 @@ module.exports = {
inline: true inline: true
}, },
] ]
}; }));
message.channel.send({ embed: embed });
}
} }
}

View File

@ -1,37 +0,0 @@
{
"prefix": "n!",
"token": "IM SO EXCITED ABOUT BURGER",
"ownerID": "MY FAVORITE COLOR IS TWELVE",
"release": "anitrox_dev",
"build": "Stable",
"footerTxt": "Anitrox, made with <3 by IDeletedSystem64 | 2018-2022",
"statuses": [
"with np!help",
"with Sophie!",
"Trans Rights!",
"in your computer",
"with my internet router",
"ssh: system64@borkeonv2",
"YouTube",
"with source code",
"Visual Studio Code",
"Minecraft",
"with the network connections.",
"VLC Media Player",
"Chromium"
],
"locations": [
"Microsoft",
"LinusTechTips",
"Linus Torvalds",
"borkeonv2",
"Google",
"192.168.1.1",
"127.0.0.1",
"Sophie's computer",
"Mars",
"Elon Musk",
"TMC Software"
]
}

23
start.js Normal file → Executable file
View File

@ -1,8 +1,8 @@
#!/usr/bin/env -S node
const fs = require('fs'); const fs = require('fs');
const Discord = require('discord.js'); const Discord = require('discord.js');
const { MessageActionRow, MessageButton } = require('discord.js')
const { statuses, build, release, prefix, token, footerTxt } = require('./config.json'); const { statuses, build, release, prefix, token, footerTxt } = require('./config.json');
const os = require("os");
console.log('Starting!') console.log('Starting!')
const client = new Discord.Client(); const client = new Discord.Client();
@ -29,27 +29,28 @@ client.once('ready', () => {
console.log("All Systems Go. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!"); console.log("All Systems Go. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!");
}); });
setInterval(() => { setInterval(() => {
const index = Math.floor(Math.random() * (statuses.length - 1) + 1); // Picks a status from the config file
const index = Math.floor(Math.random() * statuses.length);
client.user.setActivity(statuses[index]); client.user.setActivity(statuses[index]);
}, 20000); }, 20000);
// Picks a status from the config file
// Begin Command Handler // Begin Command Handler
client.on('message', message => { client.on('message', async (message) => {
if (!message.content.startsWith(prefix) || message.author.bot) return; if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/); const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase(); const command = args.shift().toLowerCase();
if (!client.commands.has(command)) return; if (!client.commands.has(command)) return;
try { try {
client.commands.get(command).execute(client, message, args, footerTxt, Discord); await client.commands.get(command).execute(client, message, args, footerTxt);
} catch (error) { } catch (error) {
console.stack console.stack;
const usr = message.author; message.channel.send(new Discord.MessageEmbed({
const embed = {
"title": "<:AnitroxError:809651936563429416> **Something went wrong!**", "title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
"description": error.stack, "description": error.stack,
"color": 13632027, "color": 13632027,
@ -57,9 +58,7 @@ client.on('message', message => {
"icon_url": message.author.displayAvatarURL(), "icon_url": message.author.displayAvatarURL(),
"text": footerTxt + " | Something went wrong! :(" "text": footerTxt + " | Something went wrong! :("
} }
}; }));
message.channel.send({ embed });
// End Command Handler
} }
}); });