This message will send when the bot is mentioned.
// authenticates you with the API standard library
// type `await lib.` to display API autocomplete
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
// The message.
await lib.discord.channels['@0.2.0'].messages.create({
channel_id: context.params.event.channel_id,
content: `Hello I am your bot :) I will be here to help you out in what ever way, and for anyone else watching this
If you wish to create your own bot head over to https://autocode.com/ to get building!`,
tts: false,
embed: {
type: 'rich',
title: 'This is a message that will send every time you mention me.',
description: `Just edit this to what you want :)`,
color: 0x386691, //pick a colour!
author: {
name: `${context.params.event.author.username}#${context.params.event.author.discriminator}`,
icon_url: `https://cdn.discordapp.com/avatars/${context.params.event.author.id}/${context.params.event.author.avatar}.png`,
},
},
});