Skip to main content

chatbot

A chatbot system that is both technically advanced and intelligent, and is your buddy.

Program

const simplydjs = require("simply-djs");
simplydjs.chatbot(client, message, { 
channelId: '01234567890123' // channelId (required)

// options (optional)
})
INFO

This should be implemented in the messageCreate event and requires a Message Intent !

client.on('messageCreate', (message) => {
simplydjs.chatbot() // chatbot function
})

Output

image

Arguments:

simplydjs.chatbot(
client: Discord.Client,
message: Discord.Message,
options: chatbotOptions
)

Options chatbotOptions

ParameterTypeRequiredDefaultDescription
channelIdChannel IDnoneChannel ID of a Discord TextChannel
togglebooleantrueEnable or Disable the chatbot for your preference.
namestringSimply-DJSName of the chatbot you are talking to.
developerstringRahuletto#0243Name of the developer who maintains the chatbot.