{"id":15009580,"url":"https://github.com/minus7/asif","last_synced_at":"2025-07-02T04:35:42.170Z","repository":{"id":57411847,"uuid":"61387784","full_name":"minus7/asif","owner":"minus7","description":"Asyncio-powered IRC Bot Framework","archived":false,"fork":false,"pushed_at":"2022-06-14T18:57:05.000Z","size":43,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-16T10:21:34.370Z","etag":null,"topics":["asyncio","irc","library","python-3-5"],"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/minus7.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}},"created_at":"2016-06-17T16:35:14.000Z","updated_at":"2023-09-08T23:31:04.000Z","dependencies_parsed_at":"2022-09-07T23:30:42.834Z","dependency_job_id":null,"html_url":"https://github.com/minus7/asif","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/minus7/asif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minus7%2Fasif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minus7%2Fasif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minus7%2Fasif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minus7%2Fasif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minus7","download_url":"https://codeload.github.com/minus7/asif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minus7%2Fasif/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263076564,"owners_count":23410093,"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":["asyncio","irc","library","python-3-5"],"created_at":"2024-09-24T19:26:45.006Z","updated_at":"2025-07-02T04:35:42.150Z","avatar_url":"https://github.com/minus7.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asyncio-powered IRC Bot Framework\nasif allows you to write an IRC bot that listens to commands in a **Flask**-like manner. Commands are functions, registered to the framework via decorators. Writing long-running background processes is possible because the whole framework is based on asyncio, just use `asyncio.ensure_future` on your function as usual.\n\nRequires Python 3.6 for the **async/await** syntax.\n\n## Example Code\n```python\n#!/usr/bin/env python3\n\nfrom bot import Client, Channel\n\nimport asyncio\nimport re\n\nbot = Client(\n    host=\"localhost\",\n    port=6667,\n    user=\"bot\",\n    realname=\"The Bot\",\n    nick=\"TheBot\",\n)\n\n@bot.on_connected()\nasync def connected():\n    await bot.join(\"#mychan\")\n\n@bot.on_message(re.compile(\"^!ping\"))\nasync def pong(message):\n    \"\"\"\n    A simple ping/pong command. Replies to your !ping messages\n    \"\"\"\n    await message.reply(\"pong\" + message.text[5:])\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(bot.run())\n```\n\n## License\nThis software is published under the MIT license, see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminus7%2Fasif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminus7%2Fasif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminus7%2Fasif/lists"}