triggers when anyone mention our bot,replies with bot prefix and support server.NOTE - dont forget to add our server link and prefix!enjoy coding :)
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let messageResponse = await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: [
` Thanks for mentioning me <@!${context.params.event.author.id}>!,
uhm , looks like u forgot my prefix its **YOUR_BOT_PREFIX**!`
].join('\n'),
embed: {
"type": "rich",
"title": "Click here",
"description": "still confused ? click up to join support",
"color": 0xFF80ED,
"url": "YOUR_SERVER_LINK",
"fields": [
]
}
});
return messageResponse;