chatbot-Discord
![F4pEry6](https://nodei.co/npm/chatbot-discord.png?downloads=true&stars=true)
- chatbot-discord is a wrapper for chatbot API that you can use to make a chatbot in node.js specifically created for discord.js created by Code White Web
Installation
Example
// import packages
const Chat = require("chatbot-discord");
const Discord = require('discord.js');
const client = new Discord.Client();
//assign var
let uid = message.author.id
let msg = message.content
//setup chat
const chat = new Chat({
user: uid
name: "Chatari"//name of bot
});
//main chat
chat.chat(msg).then(reply => {
message.channel.send(reply)
})
//bot login
client.login(process.env.token);
Updates and Info
- Updated Chatbot Wrapper from Production link to New Link And its public now!
- If any bugs found, please report it in the Discord Server.
Support Server
~ Chatari’s Secret Hallway