Add snuggle, update help

This commit is contained in:
Anthony M 2021-02-02 23:56:33 -06:00 committed by GitHub
parent 8f85c8f6af
commit 71d8dd7bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 10 deletions

View File

@ -4,33 +4,34 @@ module.exports = {
description: '',
execute(client, message, args) {
const messageAuthor = message.author
const embed = {
"title": "<:NyabotInfo:697145463350231040> **Help? HELP!** ",
"title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ",
"color": 9540095,
"description": "<:NyabotWarning:697145463194910791> Not all commands have been implemented, and may be removed without warning.",
"description": "More commands are soon to come, stay tuned!",
"footer": {
"text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021"
},
"fields": [
{
"name": "**General Commands**",
"value": "`help` ``info`` ``userinfo`` ``ping`` ``invite`` ``avatar`` ``google`` ``youtube``"
"name": "Utility Commands",
"value": "`help` ``info`` ``userinfo`` ``ping`` ``invite`` ``avatar``"
},
{
"name": "Moderation Commands",
"value": "`ban` `kick` `warn` `mute` `unban` `unmute` `purge` `permissions`"
"value": "`ban`/`unban` `kick` `mute`/`unmute` "
},
{
"name": "Server Management Commands",
"value": "` channelcreate` `channeldelete` `channelrename` `rolecreate` `roleedit` `roledelete` `setnick`"
"value": "`makerole`/`delrole`/`editrole` `setnick` `makechan`/`editchan`/`delchan` "
},
{
"name": "Fun Commands",
"value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom` `leskiss`"
"name": "Action Commands",
"value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom` `leskiss` `snuggle`"
},
{
"name": "**Need additional help or want to report an issue?**",
"value": "https://discord.gg/grebRGsBZ3"
"name": "**...or is the bot actually on fire? Come here for help and support!**",
"value": "bit.ly/anitrox-help"
}
]
};

36
commands/snuggle.js Normal file
View File

@ -0,0 +1,36 @@
module.exports = {
name: "snuggle",
description: "Snuggle an user!",
execute(client, message, args) {
const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
// --------------------------------------
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]);
// ---------------------------------------
const embed = {
"title": ":heart: Cuddle",
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!",
"color": 8311585,
"footer": {
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
},
"image": {
"url": gif
}
}
message.channel.send({ embed: embed });
}
}