change class constructors to json objects
This commit is contained in:
parent
6c10d32fd5
commit
3651553256
25 changed files with 76 additions and 121 deletions
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
|
||||
const answers = [
|
||||
"Heck no!",
|
||||
"Are you crazy!? No!",
|
||||
|
@ -31,14 +29,14 @@ module.exports = {
|
|||
console.log(args);
|
||||
|
||||
if (!question) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
|
||||
"description": "You need to ask a question!",
|
||||
"color": 13632027,
|
||||
"footer": footer
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": ":8ball: Anitrox 8 Ball",
|
||||
"description": "Your question: **" + question + "**",
|
||||
"color": 9442302,
|
||||
|
@ -49,7 +47,7 @@ module.exports = {
|
|||
"value": answer
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: "avatar",
|
||||
|
@ -8,13 +6,13 @@ module.exports = {
|
|||
|
||||
const user = message.mentions.users.first() || message.author;
|
||||
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": ":frame_photo: " + user.username + "'s Beautiful Avatar!",
|
||||
"color": 9442302,
|
||||
"footer": footer,
|
||||
"image": {
|
||||
"url": user.displayAvatarURL()
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: "bonk",
|
||||
|
@ -8,7 +6,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 13632027,
|
||||
"footer": {
|
||||
|
@ -21,9 +19,9 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<a:SylvBonk:801185845847130113> Bonk",
|
||||
"description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!",
|
||||
"color": 9442302,
|
||||
|
@ -31,7 +29,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "cheese",
|
||||
description: "Cheese an user, or run just ``n!cheese`` for a surprise :eyes:",
|
||||
|
@ -8,7 +6,7 @@ module.exports = {
|
|||
if(!taggedUser) {
|
||||
await message.channel.send("*slams cheese on desk* Cheese. https://www.youtube.com/watch?v=Or4IE8fkpn4");
|
||||
} else {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": ":cheese: Cheesed",
|
||||
"description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + message.author + ">!",
|
||||
"color": 16312092,
|
||||
|
@ -16,7 +14,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": "https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png"
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
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",
|
||||
|
@ -20,7 +18,7 @@ module.exports = {
|
|||
if(!taggedUser) {
|
||||
await message.channel.send("<:AnitroxError:809651936563429416> You need to specify an user!");
|
||||
} else {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": ":heart: Cuddle",
|
||||
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + message.author + ">!",
|
||||
"color": 9442302,
|
||||
|
@ -28,7 +26,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": gif
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
const { inspect } = require("util");
|
||||
|
||||
module.exports = {
|
||||
|
@ -12,7 +11,7 @@ module.exports = {
|
|||
const evaled = inspect(eval(code));
|
||||
await message.channel.send(evaled, {code:"xl"});
|
||||
} catch (error) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:NyabotError:697145462347661412> **Well that happened...**",
|
||||
"color": 13632027,
|
||||
"footer": footer,
|
||||
|
@ -26,7 +25,7 @@ module.exports = {
|
|||
"value": error.message
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: 'help',
|
||||
|
@ -7,7 +5,7 @@ module.exports = {
|
|||
syntax: '<Command>',
|
||||
|
||||
async execute(_0, message, _1, footer) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({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,
|
||||
|
@ -22,6 +20,6 @@ module.exports = {
|
|||
"value": "Join the [support server!](https://discord.gg/grebRGsBZ3)"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
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",
|
||||
|
@ -16,7 +14,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
|
@ -29,10 +27,10 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<a:ABlobCatHuggle:801232248035999784> Hug",
|
||||
"description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + message.author + ">!",
|
||||
"color": 8311585,
|
||||
|
@ -40,7 +38,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": gif
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
const {build, release} = require('../config.json');
|
||||
|
||||
module.exports = {
|
||||
|
@ -26,7 +25,7 @@ module.exports = {
|
|||
const os = require("os");
|
||||
const osu = require('node-os-utils');
|
||||
const cpu = osu.cpu;
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxInfo:809651936831733791> Information about Anitrox",
|
||||
"description": "Everything you've ever wanted to know about your favorite bot, Anitrox!",
|
||||
"color": 9442302,
|
||||
|
@ -101,6 +100,6 @@ module.exports = {
|
|||
}
|
||||
|
||||
]
|
||||
}));
|
||||
}});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: 'invite',
|
||||
description: 'Add Anitrox to your beautiful server!',
|
||||
syntax: [],
|
||||
async execute(_0, message, _1, footer) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "Add Anitrox to your Server!",
|
||||
"description": "Weather you want stable, or that squeaky clean fresh PTB build, we gotchu.",
|
||||
"color": 9442302,
|
||||
|
@ -28,6 +26,6 @@ module.exports = {
|
|||
"value": "Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
},
|
||||
};
|
|
@ -1,5 +1,3 @@
|
|||
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",
|
||||
|
@ -16,7 +14,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 13632027,
|
||||
"footer": footer,
|
||||
|
@ -26,10 +24,10 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": ":heart: Kiss",
|
||||
"description": "<@" + taggedUser + ">" + ", You have been kissed by <@" + message.author + ">!",
|
||||
"color": 9442302,
|
||||
|
@ -37,7 +35,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": gif
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
const gifchoices = [
|
||||
"https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif",
|
||||
"https://cdn.discordapp.com/attachments/793537380330111028/803833959338475550/gif12.gif",
|
||||
|
@ -26,7 +24,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": footer,
|
||||
|
@ -36,10 +34,10 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": ":heart: <:lesbian:803831629428686849> Kiss",
|
||||
"description": "<@" + taggedUser + ">" + " You have been kissed by <@" + message.author + ">! <:lesbian:803831629428686849>",
|
||||
"color": 8311585,
|
||||
|
@ -47,7 +45,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": gif
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed, Message } = require("discord.js");
|
||||
|
||||
const gifchoices = [
|
||||
"https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif",
|
||||
"https://cdn.lowgif.com/full/2027501b8fa5225c-.gif",
|
||||
|
@ -15,7 +13,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": footer,
|
||||
|
@ -25,10 +23,10 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<a:LeafeonLick:806396195089154058> Lick",
|
||||
"description": "<@" + taggedUser + "> You have been licked by <@" + message.author + ">!",
|
||||
"color": 8311585,
|
||||
|
@ -36,7 +34,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif"
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
|
||||
const gifchoices = [
|
||||
"https://i.imgur.com/Ns1RBzX.gif",
|
||||
"https://cdn.lowgif.com/full/2027501b8fa5225c-.gif",
|
||||
|
@ -15,7 +13,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": footer,
|
||||
|
@ -25,10 +23,10 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:BlobNomBlob:801241117919805510> Nom",
|
||||
"description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!",
|
||||
"color": 8311585,
|
||||
|
@ -36,7 +34,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": gif
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'opensource',
|
||||
description: 'Attributions to open source components used by Anitrox',
|
||||
async execute(_0, message, _1, footer){
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "Component Attribution",
|
||||
"description": "Some parts of Anitrox are using open source code, and their attributions are avaliable here!",
|
||||
"color": 52508,
|
||||
|
@ -26,6 +24,6 @@ module.exports = {
|
|||
"value": "Using and supporting the Anitrox Project, thank you! ❤"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
|
@ -1,5 +1,3 @@
|
|||
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",
|
||||
|
@ -14,7 +12,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": footer,
|
||||
|
@ -24,10 +22,10 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:pats:801238281286713355> Pat",
|
||||
"description": "<@" + taggedUser + "> You have been patted by <@" + messageAuthor + ">!",
|
||||
"color": 8311585,
|
||||
|
@ -35,7 +33,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": gif
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
const { locations } = require('../config.json');
|
||||
|
||||
module.exports = {
|
||||
|
@ -8,11 +7,11 @@ module.exports = {
|
|||
const index = Math.floor(Math.random() * locations.length);
|
||||
const pingLocation = locations[index]
|
||||
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed:{
|
||||
"title": ":ping_pong: Ping",
|
||||
"description": "**Pong!** We pinged **" + pingLocation + "** and got " + client.ws.ping + " ms.",
|
||||
"color": 9442302,
|
||||
"footer": footer
|
||||
}));
|
||||
}});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
const gifchoices = [
|
||||
"https://i.pinimg.com/originals/b4/95/fb/b495fb19f4b9a1b04f48297b676c497b.gif",
|
||||
"https://i.imgur.com/H7Ok5tn.gif",
|
||||
|
@ -14,7 +12,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": footer,
|
||||
|
@ -24,10 +22,10 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "👉 Poke!",
|
||||
"description": "<@" + taggedUser + "> You have been poked by <@" + message.author + ">!",
|
||||
"color": 8311585,
|
||||
|
@ -35,7 +33,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": gif
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'reload',
|
||||
description: 'Reloads a command',
|
||||
|
@ -26,7 +24,7 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
message.channel.send(new MessageEmbed({
|
||||
message.channel.send({embed: {
|
||||
"title": "<:NyabotDenied:697145462565896194> **Access is denied**",
|
||||
"color": 13632027,
|
||||
"footer": footer,
|
||||
|
@ -36,7 +34,7 @@ module.exports = {
|
|||
"value": "You don't have the appropriate permissions to run this command!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
};
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'setnick',
|
||||
description: 'Sets your nickname',
|
||||
|
@ -10,7 +8,7 @@ module.exports = {
|
|||
|
||||
try {
|
||||
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.")
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxSuccess:809651936819019796> Nickname Changed",
|
||||
"color": 9442302,
|
||||
"footer": footer,
|
||||
|
@ -25,9 +23,9 @@ module.exports = {
|
|||
"inline": true
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} catch (error) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxDenied:809651936642203668> Well that happened...",
|
||||
"color": 13632027,
|
||||
"footer": footer,
|
||||
|
@ -37,7 +35,7 @@ module.exports = {
|
|||
"value": "You need to have permission ``CHANGE_NICKNAME`` to change your nick!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: "slap",
|
||||
|
@ -8,7 +6,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 13632027,
|
||||
"footer": footer,
|
||||
|
@ -18,9 +16,9 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": ":anger: Slap",
|
||||
"description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!",
|
||||
"color": 9442302,
|
||||
|
@ -28,7 +26,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943"
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
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",
|
||||
|
@ -15,7 +13,7 @@ module.exports = {
|
|||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
if(!taggedUser) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 13632027,
|
||||
"footer": footer,
|
||||
|
@ -25,9 +23,9 @@ module.exports = {
|
|||
"value": "You need to @mention an user!"
|
||||
}
|
||||
]
|
||||
}));
|
||||
}});
|
||||
} else {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<:BlobSnuggleCat:806759753450782731> Snuggle",
|
||||
"description": "<@" + taggedUser + ">" + " You have been snuggled by " + "<@" + messageAuthor + ">!",
|
||||
"color": 9442302,
|
||||
|
@ -35,7 +33,7 @@ module.exports = {
|
|||
"image": {
|
||||
"url": gif
|
||||
}
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,24 +1,22 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "stop",
|
||||
description: "Stops the bot",
|
||||
async execute(client, message, _, footer) {
|
||||
if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
|
||||
"description": "See you next time!",
|
||||
"color": 9442302,
|
||||
"footer": footer
|
||||
}));
|
||||
}});
|
||||
client.destroy();
|
||||
} else {
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": ":AnitroxDenied: Access Denied",
|
||||
"description": "You need to be the bot owner to execute this command!",
|
||||
"color": 13632027,
|
||||
"footer": footer
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,3 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "uinfo",
|
||||
description: "Gets info about an user, such as ID, Discord Join date and more",
|
||||
|
@ -7,7 +5,7 @@ module.exports = {
|
|||
async execute(client, message, args, footer) {
|
||||
console.log(args[0])
|
||||
const user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author
|
||||
await message.channel.send(new MessageEmbed({
|
||||
await message.channel.send({embed: {
|
||||
"title": "Everything you've ever wanted to know about " + user.username + "!",
|
||||
"color": 9442302,
|
||||
"footer": footer,
|
||||
|
@ -49,6 +47,6 @@ module.exports = {
|
|||
inline: true
|
||||
},
|
||||
]
|
||||
}));
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
|
4
start.js
4
start.js
|
@ -34,10 +34,10 @@ client.once('ready', () => {
|
|||
});
|
||||
|
||||
|
||||
setInterval(() => {
|
||||
setInterval(async () => {
|
||||
// Picks a status from the config file
|
||||
const index = Math.floor(Math.random() * statuses.length);
|
||||
client.user.setActivity(statuses[index]);
|
||||
await client.user.setActivity(statuses[index]);
|
||||
}, 20000);
|
||||
|
||||
// Begin Command Handler
|
||||
|
|
Reference in a new issue