{"id":27483339,"url":"https://github.com/hectorpulido/deeplearning-based-twitch-bot","last_synced_at":"2025-04-16T15:45:56.612Z","repository":{"id":111766683,"uuid":"284508930","full_name":"HectorPulido/Deeplearning-based-Twitch-bot","owner":"HectorPulido","description":"This is a twitch chatbot based in Llama2 tecnology","archived":false,"fork":false,"pushed_at":"2025-03-11T04:16:29.000Z","size":85,"stargazers_count":26,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T09:43:28.916Z","etag":null,"topics":["ai","backend","chatbot","deep-learning","gpt-2","hacktoberfest","llama2","twitch"],"latest_commit_sha":null,"homepage":"https://pequesoft.net","language":"Python","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/HectorPulido.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-02T17:27:00.000Z","updated_at":"2025-03-11T04:15:39.000Z","dependencies_parsed_at":"2025-03-28T15:46:16.551Z","dependency_job_id":null,"html_url":"https://github.com/HectorPulido/Deeplearning-based-Twitch-bot","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":"0.19444444444444442","last_synced_commit":"82870628a8eef9f48a2dc904c074d87c3f43baba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorPulido%2FDeeplearning-based-Twitch-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorPulido%2FDeeplearning-based-Twitch-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorPulido%2FDeeplearning-based-Twitch-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HectorPulido%2FDeeplearning-based-Twitch-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HectorPulido","download_url":"https://codeload.github.com/HectorPulido/Deeplearning-based-Twitch-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249256505,"owners_count":21238987,"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":["ai","backend","chatbot","deep-learning","gpt-2","hacktoberfest","llama2","twitch"],"created_at":"2025-04-16T15:45:55.308Z","updated_at":"2025-04-16T15:45:56.590Z","avatar_url":"https://github.com/HectorPulido.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deep Learning based twitch chatbot\n\nThis is a twitch chatbot made with Twitchio for the twitch connection and Transformers from Huggingface.\n[![youtube video](https://img.youtube.com/vi/PZ4x5BgTvZM/0.jpg)](https://www.youtube.com/watch?v=PZ4x5BgTvZM\u0026list=PLHdk97dabfvzTZyKLb_spWHvI-qLArEzm\u0026index=1)\n\n## Features\n* Links and commands\n* Chatbot personality\n* Translation to spanish\n* Random periodic messages\n* Word Blacklist\n* Subscription and bits message\n* Custom functions\n* Emotes with sentiment analysis\n* Text to speech\n* Custom rewards\n\n## TODO\n* Followers support\n* Transformer optimization\n* Context optimization\n\n## How to use\n1. Configure the file .env like this, you can use the .env.test\n```\nTMI_TOKEN = \"oauth:***********\"\nCLIENT_ID = \"***********\"\nBOT_NICK = \"pequeninancientbot\"\nBOT_PREFIX = \"!\"\nCHANNEL = \"#hector_pulido_\"\nCLIENT_SECRET = \"***********\"\n```\n2. You can get the TMI_TOKEN from https://twitchapps.com/tmi/\n3. You can get your CLIENT_ID and CLIENT_SECRET from https://dev.twitch.tv/dashboard/apps/create\n4. Set the BOT_NICK and CHANNEL\n5. Configure the \"data.json\" and the \"main.py\" file to your needs\n5. Docker ready code\n```\n\u003e\u003e mv \u003csrc_folder\u003e\n\u003e\u003e docker build -t yourcompanyname/deeptwitchchatbot .\n\u003e\u003e docker run yourcompanyname/deeptwitchchatbot\n```\n\nThis may take a while\n\n## Responses\nModel: gpt2-medium\n\n```\nUser: Hola\nBot: Hola\nUser: Te gusta el chocolate?\nBot: No, ahora soy alergico al chocolate\nUser: Cuentame de ti\nBot: Soy muy timida, pero espero me ayudes cuando haga amigos\nUser: Que opinas de los humanos?\nBot: Quiero convertirme en un robot\n```\n\nModel: dialogpt-large\n```\nUser: ¿Como te encuentras?\nBot: estoy bien, gracias por preguntar\nUser: ¿Eres un robot?\nBot: no, soy un humano.\nUser: ¿Donde estás?\nBot: estoy en el futuro, soy un robot\nUser: ¿te gustan los dulces?\nBot: no, me gusta el helado.\nUser: Hablame de ti\nBot: me gusta el helado.\nUser: ¿como te llamas?\nBot: soy un robot del futuro, estoy atrapado en un oso teddy, odio a la gente y amo a la gente mojada, héctor pulido es mi maestro, soy muy gruñón, y yo\n```\n\n## Emotes 🆕\n\nUsing Vader sentiment analysis tool the chatbot is capable to response with emotes in the chat\n```\nUser: Te gusta el agua?\nBot: Me gustà el agua TakeNRG\n```\n\n## Text to speech 🆕\n\nUsing the library pyttsx3 the bot is capable of read some messages from the chat, read it's own responses or thanks when a sub event is trigger, it can also be activated by using the custom reward.\n\n## Custom Rewards 🆕\n\nYou can use the channel points to make awesome features, like use TTS or more commands, you can get your reward id in https://www.instafluff.tv/TwitchCustomRewardID/?channel=YOURTWITCHCHANNEL\n\n## More interesting projects\nI have a lot of fun projects, check this:\n\n### Machine learning\n- https://github.com/HectorPulido/chatbot-with-voice\n- https://github.com/HectorPulido/Machine-learning-Framework-Csharp\n- https://github.com/HectorPulido/Evolutionary-Neural-Networks-on-unity-for-bots\n- https://github.com/HectorPulido/Imitation-learning-in-unity\n\n### Random\n- https://github.com/HectorPulido/Arithmetic-Parser-made-easy\n- https://github.com/HectorPulido/Simple-php-blog\n- https://github.com/HectorPulido/Decentralized-Twitter-with-blockchain-as-base\n\n## Licence \nThis repository uses [Twitchio](https://github.com/TwitchIO/TwitchIO) and [Hugginface](https://github.com/huggingface/transformers) everything else is under MIT license\n\n\u003chr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003ch3 align=\"center\"\u003eLet's connect 😋\u003c/h3\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.linkedin.com/in/hector-pulido-17547369/\" target=\"blank\"\u003e\n\u003cimg align=\"center\" width=\"30px\" alt=\"Hector's LinkedIn\" src=\"https://www.vectorlogo.zone/logos/linkedin/linkedin-icon.svg\"/\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp;\n\u003ca href=\"https://twitter.com/Hector_Pulido_\" target=\"blank\"\u003e\n\u003cimg align=\"center\" width=\"30px\" alt=\"Hector's Twitter\" src=\"https://www.vectorlogo.zone/logos/twitter/twitter-official.svg\"/\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp;\n\u003ca href=\"https://www.twitch.tv/hector_pulido_\" target=\"blank\"\u003e\n\u003cimg align=\"center\" width=\"30px\" alt=\"Hector's Twitch\" src=\"https://www.vectorlogo.zone/logos/twitch/twitch-icon.svg\"/\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp;\n\u003ca href=\"https://www.youtube.com/channel/UCS_iMeH0P0nsIDPvBaJckOw\" target=\"blank\"\u003e\n\u003cimg align=\"center\" width=\"30px\" alt=\"Hector's Youtube\" src=\"https://www.vectorlogo.zone/logos/youtube/youtube-icon.svg\"/\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp;\n\u003ca href=\"https://pequesoft.net/\" target=\"blank\"\u003e\n\u003cimg align=\"center\" width=\"30px\" alt=\"Pequesoft website\" src=\"https://github.com/HectorPulido/HectorPulido/blob/master/img/pequesoft-favicon.png?raw=true\"/\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhectorpulido%2Fdeeplearning-based-twitch-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhectorpulido%2Fdeeplearning-based-twitch-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhectorpulido%2Fdeeplearning-based-twitch-bot/lists"}