{"id":27273306,"url":"https://github.com/sophiadt/707bot","last_synced_at":"2026-05-11T05:36:48.784Z","repository":{"id":182501342,"uuid":"580231078","full_name":"sophiadt/707bot","owner":"sophiadt","description":"A discord bot with AI that can simulate a conversation as 707 from Mystic Messenger","archived":false,"fork":false,"pushed_at":"2023-01-08T05:06:09.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-20T08:38:20.367Z","etag":null,"topics":["707","ai","chatbot","discord","discord-api","discord-bot","google-colab","python"],"latest_commit_sha":null,"homepage":"https://huggingface.co/sophiadt/DialoGPT-medium-707?text=Hi%21+I%27m+MC%7E","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sophiadt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-20T03:20:57.000Z","updated_at":"2023-07-20T08:38:23.525Z","dependencies_parsed_at":"2023-07-20T08:57:18.096Z","dependency_job_id":null,"html_url":"https://github.com/sophiadt/707bot","commit_stats":null,"previous_names":["sophiadt/707bot"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiadt%2F707bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiadt%2F707bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiadt%2F707bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiadt%2F707bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sophiadt","download_url":"https://codeload.github.com/sophiadt/707bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248418697,"owners_count":21100193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["707","ai","chatbot","discord","discord-api","discord-bot","google-colab","python"],"created_at":"2025-04-11T14:25:40.236Z","updated_at":"2026-05-11T05:36:43.759Z","avatar_url":"https://github.com/sophiadt.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 707 Discord AI Chat Bot\n\nAn AI discord bot that can simulate a conversation with RFA's best hacker, 707 from [Mystic Messenger](https://en.wikipedia.org/wiki/Mystic_Messenger)!\n\nCredits to Lynn Zheng and her [Discord AI Chatbot tutorial](https://www.freecodecamp.org/news/discord-ai-chatbot/) as well as Rostyslav Neskorozhenyi and his [post about making a Rick Sanchez bot](https://towardsdatascience.com/make-your-own-rick-sanchez-bot-with-transformers-and-dialogpt-fine-tuning-f85e6d1f4e30) for helping me build this.\n\nThe chatbot uses the [Microsoft DialoGPT conversational model](https://huggingface.co/microsoft/DialoGPT-medium) that has been trained with [707's messages in the Deep Story from this Kaggle dataset](https://www.kaggle.com/datasets/pineapplesoup/707-messages). The dataset has almost 4000 lines and I trained it for 12 epochs to give a perplexity of around 1.3. The perplexity represents how confused the model is so the higher the perplexity, the more confused the model is. 1.3 is a very low perplexity but the chat bot still has some out-of-character responses. With this amount of data, the model took around 1.5 hours to train.\n\nIf you want to try out my chatbot, you can go [here](https://huggingface.co/sophiadt/DialoGPT-medium-707?text=Hi%21+I%27m+MC%7E) where it's hosted on Hugging Face's Model Hub.\n\n## Project Files\n\n* `model_train_upload_workflow.ipynb`: Notebook to be run in Google Colab to train and upload the model to Hugging Face's Model Hub\n* `main.py`: Script to be imported into a Repl.it Python Discord.py project\n* `keep_alive.py`: Script to keep the discord bot alive for half an hour after main.py is run\n\n## Resource Links\n* [Lynn Zheng's tutorial on freeCodeCamp](https://www.freecodecamp.org/news/discord-ai-chatbot/)\n* [Lynn Zheng's video tutorial on YouTube](https://youtu.be/UBwvFuTC1ZE)\n* [707 messages dataset on Kaggle](https://www.kaggle.com/datasets/pineapplesoup/707-messages)\n* [My Hugging Face Model](https://huggingface.co/sophiadt/DialoGPT-medium-707)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsophiadt%2F707bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsophiadt%2F707bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsophiadt%2F707bot/lists"}