A command with an anime gif getting punched. Typed s?punch @user to punch someone.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if(context.params.event.content.startsWith("s?punch")) {
if (context.params.event.mentions.length !== 1) {
await lib.discord.channels['@0.1.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `you gotta show who ya wanna punch..`
});
} else {
await lib.discord.channels['@0.1.1'].messages.create({
channel_id: `${context.params.event.channel_id}`,
"content": ``,
"tts": false,
"embed": {
"type": "rich",
"title": `${context.params.event.mentions[0].username} GOT PUNCHED`,
"description": "",
"color": 0x00FFFF,
"image": {
"url": `https://media1.tenor.com/images/903cf079f0e1fb24a9b11a687d02b242/tenor.gif?itemid=13970904`,
"height": 0,
"width": 0
}
}
});
}
}