{"id":19816950,"url":"https://github.com/flyingfathead/irc-gpt2-chatbot","last_synced_at":"2026-05-15T09:01:41.511Z","repository":{"id":185121314,"uuid":"673012429","full_name":"FlyingFathead/IRC-GPT2-Chatbot","owner":"FlyingFathead","description":"Python-based Internet Relay Chat bot client for local GPT-2 (TensorFlow) models","archived":false,"fork":false,"pushed_at":"2023-07-31T22:28:52.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T12:07:05.695Z","etag":null,"topics":["chatbot","chatbot-application","chatbot-framework","chatbots","gpt-2","gpt2","gpt2-chatbot","irc","irc-bot","irc-bot-framework","python","python-app","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlyingFathead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-31T17:05:00.000Z","updated_at":"2024-07-24T21:58:09.000Z","dependencies_parsed_at":"2023-07-31T20:07:28.069Z","dependency_job_id":null,"html_url":"https://github.com/FlyingFathead/IRC-GPT2-Chatbot","commit_stats":null,"previous_names":["flyingfathead/irc-gpt2-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlyingFathead%2FIRC-GPT2-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlyingFathead%2FIRC-GPT2-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlyingFathead%2FIRC-GPT2-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlyingFathead%2FIRC-GPT2-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlyingFathead","download_url":"https://codeload.github.com/FlyingFathead/IRC-GPT2-Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241170256,"owners_count":19921572,"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":["chatbot","chatbot-application","chatbot-framework","chatbots","gpt-2","gpt2","gpt2-chatbot","irc","irc-bot","irc-bot-framework","python","python-app","tensorflow"],"created_at":"2024-11-12T10:11:10.714Z","updated_at":"2026-05-15T09:01:36.487Z","avatar_url":"https://github.com/FlyingFathead.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IRC-GPT2-Chatbot\nAn extremely simple Python-based Internet Relay Chat (IRC) bot client for local GPT-2 TensorFlow models.\n\n## Setup\n\n1. Clone this repository to your local machine:\n    ```\n    git clone https://github.com/FlyingFathead/IRC-GPT2-Chatbot/\n    cd IRC-GPT2-Chatbot/\n    ```\n\n4. Use `pip` to install the required packages:\n    ```\n    pip install -r requirements.txt\n    ```\n\n5. Get your local GPT-2 TensorFlow model files and place them underneath the main program folder (i.e. `./models/\u003cyourmodelname\u003e`)\n\n    To get the model files, you can use i.e. the original OpenAI repo at: https://github.com/openai/gpt-2/\n\n7. Edit the `config.txt`\n\n    Set your model name to point out to a directory that holds them, i.e. put them inside a directory tree that corresponds to `./models/\u003cyourmodelname\u003e` in the `config.txt`, i.e. if your model name is `124M`, make sure its files are in `.models/124M/`\n\n    You might want to configure the `input_prefix`, the `output_prefix` and `starting_context` to suit your needs.\n    \n    Set up your bot's IRC server and other variables from `config.txt`: `SERVER`, `PORT`, `NICKNAME`, `REALNAME`, `USERNAME`, `CHANNEL`\n\n8. Run the bot:\n    ```\n    python ircbot.py\n    ```\n\n---\n\nBy default, the bot will connect to the IRC server, join the designated channel and answer to all incoming messages on it.\n\nThe bot is equipped with a conversational context memory, and also has a default context memory trimmer that works in a rolling window-type of context memory management, and it is set up to filter non-UTF-8 encodings (since encodings can be anything on IRC). All in all a very simple and neat way to add a local GPT-2 model to your IRC channel.\n\nMore options might be added in later; stay tuned for updates.\n\n---\n\nEnjoy!\n\nBrought to you by [FlyingFathead](https://github.com/FlyingFathead/) with the kind whispering helps of ChaosWhisperer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingfathead%2Firc-gpt2-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyingfathead%2Firc-gpt2-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingfathead%2Firc-gpt2-chatbot/lists"}