chatbot
A chatbot system that is both technically advanced and intelligent, and is your buddy.
Program
- Javascript
- Typescript
const simplydjs = require("simply-djs");
import simplydjs from "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
Arguments:
simplydjs.chatbot(
client: Discord.Client,
message: Discord.Message,
options: chatbotOptions
)
- client:
Discord.Client
- message
Discord.Message
- options:
chatbotOptions
Options chatbotOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
channelId | Channel ID | ✓ | none | Channel ID of a Discord TextChannel |
toggle | boolean | ❌ | true | Enable or Disable the chatbot for your preference. |
name | string | ❌ | Simply-DJS | Name of the chatbot you are talking to. |
developer | string | ❌ | Rahuletto#0243 | Name of the developer who maintains the chatbot. |