chatbot-discord
v1.0.1
Published
Discord Chatbot Npm package created by CodeWhiteWeb on github
Downloads
4
Maintainers
Readme
chatbot-Discord
- 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
npm i chatbot-discord
Example
- Note: This example is for a bot that uses discord.js v12.
// 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.