The author name of the to-be-sent messages. It must be 2-32 characters long.
Optional
options: BotOptionsThe options for the bot.
A function to listen to certain events.
import { Bot } from 'evangeline';
const bot = new Bot('evangeline bot')
bot.on('messageCreate', async (message) => {
// event code here
})
bot.connect()
The event to listen to.
The parameters (if needed) to be used in the event.
Send a message to Eludris. (Alias for sendMessage)
The content of the message.
Send a message to Eludris.
import { Bot } from 'evangeline';
const bot = new Bot('evangeline test')
bot.on('ready', async () => {
await bot.sendMessage('woah, I\'m alive!')
})
The content of the message.
Generated using TypeDoc
The main bot class.
Example