Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RuolinZheng08/twewy-discord-chatbot
Discord AI Chatbot using DialoGPT, trained on the game transcript of The World Ends With You
https://github.com/RuolinZheng08/twewy-discord-chatbot
chatbot chatbot-application discord discord-bot discord-py gpt gpt2-chatbot
Last synced: 3 months ago
JSON representation
Discord AI Chatbot using DialoGPT, trained on the game transcript of The World Ends With You
- Host: GitHub
- URL: https://github.com/RuolinZheng08/twewy-discord-chatbot
- Owner: RuolinZheng08
- License: mit
- Created: 2021-06-01T01:42:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-20T23:58:59.000Z (about 2 years ago)
- Last Synced: 2024-07-31T08:18:53.069Z (6 months ago)
- Topics: chatbot, chatbot-application, discord, discord-bot, discord-py, gpt, gpt2-chatbot
- Language: Jupyter Notebook
- Homepage: https://www.freecodecamp.org/news/discord-ai-chatbot/
- Size: 3.19 MB
- Stars: 313
- Watchers: 8
- Forks: 160
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - RuolinZheng08/twewy-discord-chatbot - Discord AI Chatbot using DialoGPT, trained on the game transcript of The World Ends With You (Jupyter Notebook)
README
# Build a Discord AI Chatbot that Speaks like Your Favorite Character!
This is a Discord AI Chatbot that uses the [Microsoft DialoGPT conversational model](https://huggingface.co/microsoft/DialoGPT-medium) fine-tuned on the game transcript of [The World Ends With You](https://en.wikipedia.org/wiki/The_World_Ends_with_You) (TWEWY). Read [my tutorial on freeCodeCamp](https://www.freecodecamp.org/news/discord-ai-chatbot/) or watch [my video tutorial on YouTube](https://youtu.be/UBwvFuTC1ZE). I've also made [a JavaScript version of the tutorial using Discord.js](https://youtu.be/XR6JFRLxe5A).
I trained the model using the lines of my favorite quirky character, Joshua (left in the image below). He has about 700 lines in total in the entire game.
Here is a demo of the Discord bot in action.
You can also directly chat with the model hosted on [Hugging Face's Model Hub](https://huggingface.co/r3dhummingbird/DialoGPT-medium-joshua).
## Structure of this Project
- `model_train_upload_workflow.ipyb`: Notebook to be run in Google Colab to train and upload the model to Hugging Face's Model Hub
- `discord_bot.py`: Script to be imported into a Repl.it Python Discord.py project
- `discord_bot.js`: Script to be imported into a Repl.it JavaScript Discord.js project## Resource Links
- [15-min chat demo](https://youtu.be/-n6uWu8PZzo)
- [My tutorial on freeCodeCamp](https://www.freecodecamp.org/news/discord-ai-chatbot/)
- [My video tutorial on YouTube](https://youtu.be/UBwvFuTC1ZE)
- [My JavaScript version of this tutorial on YouTube](https://youtu.be/XR6JFRLxe5A)
- [My TWEWY dataset on Kaggle](https://www.kaggle.com/ruolinzheng/twewy-game-script)
- [My Hugging Face Model](https://huggingface.co/r3dhummingbird/DialoGPT-medium-joshua)