Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)


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](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)