{"id":13758500,"url":"https://github.com/anthonywritescode/twitch-chat-bot","last_synced_at":"2025-05-10T08:30:30.615Z","repository":{"id":34863119,"uuid":"173498915","full_name":"anthonywritescode/twitch-chat-bot","owner":"anthonywritescode","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-31T20:31:06.000Z","size":496,"stargazers_count":72,"open_issues_count":4,"forks_count":32,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-31T21:33:06.535Z","etag":null,"topics":["bot","irc","twitch"],"latest_commit_sha":null,"homepage":null,"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/anthonywritescode.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},"funding":{"github":"asottile"}},"created_at":"2019-03-02T21:06:16.000Z","updated_at":"2025-03-31T20:31:09.000Z","dependencies_parsed_at":"2023-02-12T07:30:41.750Z","dependency_job_id":"1d61a447-c5c5-4686-9333-ad6e8d6b48e0","html_url":"https://github.com/anthonywritescode/twitch-chat-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonywritescode%2Ftwitch-chat-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonywritescode%2Ftwitch-chat-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonywritescode%2Ftwitch-chat-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonywritescode%2Ftwitch-chat-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonywritescode","download_url":"https://codeload.github.com/anthonywritescode/twitch-chat-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253389428,"owners_count":21900759,"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":["bot","irc","twitch"],"created_at":"2024-08-03T13:00:31.381Z","updated_at":"2025-05-10T08:30:30.253Z","avatar_url":"https://github.com/anthonywritescode.png","language":"Python","funding_links":["https://github.com/sponsors/asottile"],"categories":["Libraries"],"sub_categories":["Python"],"readme":"[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/anthonywritescode/twitch-chat-bot/main.svg)](https://results.pre-commit.ci/latest/github/anthonywritescode/twitch-chat-bot/main)\n\ntwitch-chat-bot\n===============\n\nA hackety chat bot I wrote for my twitch stream.  I wanted to learn asyncio\nand this felt like a decent project to dive in on.\n\n## setup\n\n1. Set up a configuration file\n\n   ```json\n   {\n     \"username\": \"...\",\n     \"channel\": \"...\",\n     \"oauth_token\": \"...\",\n     \"client_id\": \"...\",\n     \"airnow_api_key\": \"...\"\n   }\n   ```\n\n   - `username`: the username of the bot account\n   - `channel`: the irc channel to connect to, for twitch this is the same as\n     the streamer's channel name\n   - `oauth_token`: follow the directions [here][docs-irc] to get a token\n   - `client_id`: set up an application for your chat bot [here][app-setup]\n   - `airnow_api_key`: api key for https://airnowapi.org\n\n1. Use python3.8 or newer and install the dependencies in `requirements.txt`\n\n   ```bash\n   virtualenv venv -ppython3.8\n   venv/bin/pip install -r requirements.txt\n   ```\n\n1. Run! `venv/bin/python -m bot`\n\n[docs-irc]: https://dev.twitch.tv/docs/irc/\n[app-setup]: https://dev.twitch.tv/docs/authentication/#registration\n[youtube-setup]: https://console.developers.google.com/apis/credentials\n\n## implemented commands\n\n### `!help`\n\nList all the currently supported commands\n\n```\nanthonywritescode: !help\nanthonywritescodebot: possible commands: !help, !ohai, !uptime\n```\n\n### `!ohai`\n\nGreet yo self\n\n```\nanthonywritescode: !ohai\nanthonywritescodebot: ohai, anthonywritescode!\n```\n\n### `!uptime`\n\nShow how long the stream has been running for\n\n```\nanthonywritescode: !uptime\nanthonywritescodebot: streaming for: 3 hours, 57 minutes, 17 seconds\n```\n\n### `PING ...`\n\nReplies `PONG` to whatever you say\n\n```\nanthonywritescode: PING\nanthonywritescodebot: PONG\nanthonywritescode: PING hello\nanthonywritescodebot: PONG hello\n```\n\n### `!discord`\n\nShow the discord url\n\n```\nanthonywritescode: !discord\nanthonywritescodebot: We do have Discord, you are welcome to join: https://discord.gg/xDKGPaW\n```\n\n### `!followage [username]`\n\nShow how long you or a user you specified have been following the channel\n\n```\nnot_cool_user: !followage\nanthonywritescodebot: not_cool_user is not a follower!\n\ncool_user: !followage\nanthonywritescodebot: cool_user has been following for 3 hours!\n\nsome_user: !followage another_user\nanthonywritescodebot: another_user has been following for 5 years!\n```\n\n### `!joke`\n\nGet a joke\n\n```\nanthonywritescode: !joke\nanthonywritescodebot: The best thing about a Boolean is even if you are wrong, you are only off by a bit.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonywritescode%2Ftwitch-chat-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonywritescode%2Ftwitch-chat-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonywritescode%2Ftwitch-chat-bot/lists"}