Update commands to v12
This commit is contained in:
parent
2e0382e18d
commit
c0de899207
|
@ -8,7 +8,7 @@ module.exports = {
|
||||||
|
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "<a:SylvBonk:801185845847130113> Bonk",
|
"title": "<a:SylvBonk:801185845847130113> Bonk",
|
||||||
"description": taggedUser + " You have been bonked by " + messageAuthor + "!",
|
"description": "<@" + taggedUser + ">" + " You have been bonked by <@" + messageAuthor + ">!",
|
||||||
"color": 3272562,
|
"color": 3272562,
|
||||||
"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",
|
||||||
|
@ -23,4 +23,3 @@ module.exports = {
|
||||||
message.channel.send({ embed: embed });
|
message.channel.send({ embed: embed });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"prefix": "n!",
|
||||||
|
"token": "NTQwOTQxNjc5MDQ2Mjk1NTUz.XotbnA.0hllsNlr9hWaepl3KwB1Bhh5TnA",
|
||||||
|
"ownerID": "309427567004483586"
|
||||||
|
}
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
const taggedUser = message.mentions.users.first();
|
const taggedUser = message.mentions.users.first();
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": ":heart: Cuddle",
|
"title": ":heart: Cuddle",
|
||||||
"description": taggedUser + " You have been cuddled by " + messageAuthor + "!",
|
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!",
|
||||||
"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",
|
||||||
|
|
|
@ -14,9 +14,26 @@ module.exports = {
|
||||||
evaled = require("util").inspect(evaled);
|
evaled = require("util").inspect(evaled);
|
||||||
|
|
||||||
message.channel.send(clean(evaled), {code:"xl"});
|
message.channel.send(clean(evaled), {code:"xl"});
|
||||||
} catch (err) {
|
} catch (error) {
|
||||||
console.log("An error occurred while running that code!")
|
const embed = {
|
||||||
|
"title": "<:NyabotError:697145462347661412> **Well that happened...**",
|
||||||
|
"color": 13632027,
|
||||||
|
"footer": {
|
||||||
|
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
|
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
|
||||||
|
},
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "**What Happened?**",
|
||||||
|
"value": "The command you tried to run failed to execute due to an error."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error Info",
|
||||||
|
"value": error.message
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
message.channel.send({ embed });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
const taggedUser = message.mentions.users.first();
|
const taggedUser = message.mentions.users.first();
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "<a:ABlobCatHuggle:801232248035999784> Hug",
|
"title": "<a:ABlobCatHuggle:801232248035999784> Hug",
|
||||||
"description": taggedUser + " You have been hugged by " + messageAuthor + "!",
|
"description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + messageAuthor + ">!",
|
||||||
"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",
|
||||||
|
|
|
@ -24,8 +24,8 @@ module.exports = {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const version = ("Public Test Buld 4, Based on dev Build 429")
|
const version = ("dev build 429")
|
||||||
const release = ("anitrox_ptb")
|
const release = ("anitrox_dev")
|
||||||
const os = require("os")
|
const os = require("os")
|
||||||
|
|
||||||
const embed = {
|
const embed = {
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
const taggedUser = message.mentions.users.first();
|
const taggedUser = message.mentions.users.first();
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": ":heart: Kiss",
|
"title": ":heart: Kiss",
|
||||||
"description": taggedUser + " You have been kissed by " + messageAuthor + "!",
|
"description": "<@" + taggedUser + ">" + " You have been kissed by <@" + messageAuthor + ">!",
|
||||||
"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",
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
const taggedUser = message.mentions.users.first();
|
const taggedUser = message.mentions.users.first();
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "<:BlobNomBlob:801241117919805510> Nom",
|
"title": "<:BlobNomBlob:801241117919805510> Nom",
|
||||||
"description": taggedUser + " You have been nommed by " + messageAuthor + "!",
|
"description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!",
|
||||||
"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",
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
const taggedUser = message.mentions.users.first();
|
const taggedUser = message.mentions.users.first();
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "<:pats:801238281286713355> Pat",
|
"title": "<:pats:801238281286713355> Pat",
|
||||||
"description": taggedUser + " You have been patted by " + messageAuthor + "!",
|
"description": "<@" + taggedUser + "> You have been patted by <@" + messageAuthor + ">!",
|
||||||
"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",
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
module.exports = {
|
||||||
|
name: "ping",
|
||||||
|
description: "Gets bot ping",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const embed = {
|
||||||
|
"title": ":ping_pong: Ping",
|
||||||
|
"color": 15433939,
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "Ping is " + client.ws.ping + " ms",
|
||||||
|
"value": "If this is more than 1500ms there may be a problem!"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
message.channel.send({ embed });
|
||||||
|
}
|
||||||
|
};
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
const taggedUser = message.mentions.users.first();
|
const taggedUser = message.mentions.users.first();
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "👉 Poke!",
|
"title": "👉 Poke!",
|
||||||
"description": taggedUser + " You have been poked by " + messageAuthor + "!",
|
"description": "<@" + taggedUser + "> You have been poked by <@" + messageAuthor + ">!",
|
||||||
"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",
|
||||||
|
|
|
@ -20,7 +20,7 @@ module.exports = {
|
||||||
console.log('User reloaded ${command.name}.')
|
console.log('User reloaded ${command.name}.')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
message.channel.send(`There was an error while reloading a command \`${command.name}\`:\n\`${error.message}\``);
|
message.channel.send(`There was an error while reloading \`${command.name}\`:\n\`${error.message}\``);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -3,14 +3,18 @@ module.exports = {
|
||||||
name: 'restart',
|
name: 'restart',
|
||||||
description: '(Owner Only) Shuts down the bot.',
|
description: '(Owner Only) Shuts down the bot.',
|
||||||
execute(client, message, args) {
|
execute(client, message, args) {
|
||||||
const token=("<token>")
|
const { token } = require('./config.json');
|
||||||
if (message.author.id == 309427567004483586) {
|
if (message.author.id == 309427567004483586) {
|
||||||
message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...").then
|
message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...").then
|
||||||
client.destroy()
|
client.destroy()
|
||||||
.catch(console.error)
|
.catch(console.error)
|
||||||
.then
|
.then
|
||||||
|
console.log("Restarting!")
|
||||||
|
console.log("Getting ready")
|
||||||
|
console.log("Ready to start!")
|
||||||
client.login(token);
|
client.login(token);
|
||||||
message.channel.send("<:NyabotSuccess:697211376740859914> Restart Successful")
|
message.channel.send("<:NyabotSuccess:697211376740859914> Restart Successful")
|
||||||
|
console.log("All systems go")
|
||||||
} else {
|
} else {
|
||||||
message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command.");
|
message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
const taggedUser = message.mentions.users.first();
|
const taggedUser = message.mentions.users.first();
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": ":anger: Slap",
|
"title": ":anger: Slap",
|
||||||
"description": taggedUser + " You have been slapped by " + messageAuthor + "!",
|
"description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!",
|
||||||
"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",
|
||||||
|
|
|
@ -1,57 +1,5 @@
|
||||||
const { User } = require("discord.js");
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
name: 'userinfo',
|
|
||||||
description: 'Shows information about you or another user.',
|
|
||||||
execute(client, message, args) {
|
|
||||||
const taggedUser = message.mentions.users.first();
|
|
||||||
|
|
||||||
|
|
||||||
//Actual code
|
|
||||||
const embed = {
|
|
||||||
"title": "<:userinfo:793885335498522685> **User Information**",
|
|
||||||
"description": "Everything you've ever wanted to know about **" + taggedUser.username + ("!**"),
|
|
||||||
"color": 11038194,
|
|
||||||
|
|
||||||
"footer": {
|
|
||||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
|
||||||
"text": "Anitrox © IDeletedSystem64 2018-2021. All Rights Reserved"
|
|
||||||
},
|
|
||||||
"thumbnail": {
|
|
||||||
"url": taggedUser.displayAvatarURL({ dynamic: true })
|
|
||||||
},
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"name": "<:userquestion:793984046912110633> **Full Username**",
|
|
||||||
"value": taggedUser.username + ("#") + taggedUser.discriminator
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "<:userquestion:793984046912110633> User Status",
|
|
||||||
"value": taggedUser.status,
|
|
||||||
"value": taggedUser.presence
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "<:userquestion:793984046912110633> User ID",
|
|
||||||
"value": taggedUser.id
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "<:userquestion:793984046912110633> User Joined Discord",
|
|
||||||
"value": taggedUser.CreatedAt,
|
|
||||||
"inline": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "<:userquestion:793984046912110633> User Joined Server",
|
|
||||||
"value": "tba",
|
|
||||||
"inline": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
message.channel.send({ embed });
|
|
||||||
}
|
|
||||||
};
|
|
||||||
=======
|
|
||||||
name: "userinfo",
|
name: "userinfo",
|
||||||
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.",
|
||||||
execute(client, message, args) {
|
execute(client, message, args) {
|
||||||
|
@ -66,9 +14,13 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
"url": "https://cdn.discordapp.com/embed/avatars/0.png"
|
"url": taggedUser.displayAvatarURL()
|
||||||
},
|
},
|
||||||
"fields": [
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "Attention",
|
||||||
|
"value": "This command isn't yet finished, More info will be added soon!"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Full Username",
|
"name": "Full Username",
|
||||||
"value": taggedUser.tag
|
"value": taggedUser.tag
|
||||||
|
@ -79,7 +31,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "User Joined Discord",
|
"name": "User Joined Discord",
|
||||||
"value": "This will be added in a future release",
|
"value": taggedUser.createdAt,
|
||||||
inline: true
|
inline: true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -88,4 +40,3 @@ module.exports = {
|
||||||
message.channel.send({ embed: embed });
|
message.channel.send({ embed: embed });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue