This is a Discord AI Chatbot that uses the Microsoft DialoGPT conversational model fine-tuned on the game transcript of The World Ends With You (TWEWY). Read my tutorial on freeCodeCamp or watch my video tutorial on YouTube. I've also made a JavaScript version of the tutorial using Discord.js.
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.
model_train_upload_workflow.ipyb
: Notebook to be run in Google Colab to train and upload the model to Hugging Face's Model Hubdiscord_bot.py
: Script to be imported into a Repl.it Python Discord.py projectdiscord_bot.js
: Script to be imported into a Repl.it JavaScript Discord.js project