# Chatbot

![This is how it will look like](https://807231556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUDcJiI1DdCbIE8xX5pkL%2Fuploads%2F9mgPN79Eocbdw41S6LOC%2FScreenshot%202021-10-21%20at%206.12.01%20PM.png?alt=media\&token=d02f53a1-60b6-40e6-bcbf-234c089b1b8a)

### Example

```javascript
const client = // your client
const addon = require("@pgamerx/djs-addon")

addon.chatbot(client, message, {
toggle: true, // A boolean, true for enabled.
api_key: "key", // get one free from api.pga
channels: ["CHANNELID1", "CH..2"], // Channel ID's where you want this to work
name: 'chatbot', // Name of the Bot. default: Your bot name
age: 8 /* or "8" */, // Age of the bot. default: 8
developer: 'PGamerX' // Developer (your) name.

})
```

### Parameters guide

<table><thead><tr><th>Name</th><th>Type</th><th data-type="checkbox">Required</th><th>Default</th></tr></thead><tbody><tr><td>api_key</td><td>String</td><td>true</td><td>NA</td></tr><tr><td>channels</td><td>StringArray</td><td>true</td><td>NA</td></tr><tr><td>name</td><td>String</td><td>false</td><td>Your bot's name</td></tr><tr><td>age</td><td>String (yea I know)</td><td>false</td><td>8</td></tr><tr><td>developer</td><td>String</td><td>false</td><td>PGa</td></tr></tbody></table>
