Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codewhiteweb/chatbot-discord
Check Out Our Public Bot :- https://dsc.gg/chatari
https://github.com/codewhiteweb/chatbot-discord
bot chatbot discord discord-api discord-bot discord-js
Last synced: 25 days ago
JSON representation
Check Out Our Public Bot :- https://dsc.gg/chatari
- Host: GitHub
- URL: https://github.com/codewhiteweb/chatbot-discord
- Owner: CodeWhiteWeb
- Created: 2022-03-15T06:24:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T07:34:33.000Z (almost 2 years ago)
- Last Synced: 2024-08-09T13:27:43.985Z (3 months ago)
- Topics: bot, chatbot, discord, discord-api, discord-bot, discord-js
- Language: JavaScript
- Homepage: https://codewhiteweb.thedev.id/Chatbot-discord
- Size: 29.3 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatbot-Discord
> This is a fork of the original project [here](https://github.com/hisroyalty/clever-chat)
![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](https://discord.js.org/) created by [Code White Web](https://CodeWhiteWeb.cf)
## Installation
```bash
npm i chatbot-discord
```## Example
- Note: This example is for a bot that uses [discord.js v12](https://v12.discordjs.guide/).
```javascript
// 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](https://chatbot-api.vercel.app/) And its public now!
- If any bugs found, please report it in the **Discord Server**.## Support Server
~ [_Chatari's Secret Hallway_](https://discord.gg/fZP4c9pREh)