Slam Your Foes With A Single Command (.slam) (@person_you_want_to_slam)
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content.startsWith('.slam')) {
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 **slam**..`,
});
} 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 SLAMED**`,
description: '',
color: 0x00ffff,
image: {
url: `https://media.tenor.com/images/f49c20c02d6450741b7b171f9a3422b8/tenor.gif`,
height: 0,
width: 0,
},
},
});
}
}
//Coded By RedSweater#2500
//Please Dont Steal My Code Without Crediting Me
//Or You Can DM Me And Ask If You Cannot Credit Me