Skip to content

CodeWhiteWeb/Chatbot-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatbot-Discord

This is a fork of the original project here

F4pEry6

Downloads Npm version
  • 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

// 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