· 5 years ago · Mar 09, 2021, 05:26 PM
1Chat Bot Command with my API:
2Without Handler:
3```js
4bot.command({
5 name: "chat-bot",
6 code: `
7$jsonRequest[https://beta-api.tk/api/chat-bot?message=$replaceText[$message; ;%20];response;❌ API Down...]
8$onlyIf[$message[1]!=;❌ No Message Provided.]
9`
10}) ;```
11
12With Handler:
13```js
14module.exports = {
15 name: "chat-bot",
16 code: `
17$jsonRequest[https://beta-api.tk/api/chat-bot?message=$replaceText[$message; ;%20&authKey=YOUR API KEY];response;❌ API Down...]
18$onlyIf[$message[1]!=;❌ No Message Provided.]
19`
20} ```
21
22To Get an API Key you need to join the Discord Server found on The [API](https://beta-api.tk/) Website.