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

https://github.com/cuh4/discordchatbotv2

Discord bot that replies to messages with appropriately-fitting pre-generated messages.
https://github.com/cuh4/discordchatbotv2

bot chatbot discord

Last synced: about 2 months ago
JSON representation

Discord bot that replies to messages with appropriately-fitting pre-generated messages.

Awesome Lists containing this project

README

          

# Discord Chatbot v2

### **Overview**
A Discord "chatbot" that replies with pre-generated responses that appropriately match your message.

If you say "How are you?", the chatbot will respond with something like "I'm good! And you?".

---

### **Features**
- Profanity detection
- Fast responses
- Organized code
- Easy to setup
- Slash commands
---

### **lnstallation**
1) `git clone` this repo.
```
git clone https://github.com/Cuh4/DiscordChatbotV2
cd DiscordChatbotV2
```

2) Run the following commands:
```
py -m pip install -r requirements.txt
```

3) Create a Discord bot at https://discord.com/developers/applications. **Be sure to enable message content intents for your bot, otherwise it will not properly function.**

4) In the `src` folder, edit `example_config.py` then rename to `config.py` when completed. Be sure to plop your bot's token in the config file.

5) Start the bot using the following commands:
```
cd src
py main.py
```

6) Invite your bot to a server.

7) Talk to the bot by mentioning it and saying whatever.

---

### **Images**
![Conversation](imgs/conversation1.png)
![Conversation](imgs/conversation2.png)

![Status updates in terminal](imgs/terminalMessages.png)

![Profanity detection](imgs/profanityDetection1.png)
![Profanity detection](imgs/profanityDetection2.png)

![Teach the chatbot from Discord](imgs/teachingForm.png)

![Report responses](imgs/report1.png)
![Report responses](imgs/report2.png)