{"id":17798868,"url":"https://github.com/jazzpi/sirc","last_synced_at":"2025-04-02T03:41:54.332Z","repository":{"id":31769747,"uuid":"35336032","full_name":"jazzpi/sirc","owner":"jazzpi","description":"Easy-to-use IRC library with focus on the Twitch.TV IRC interface","archived":false,"fork":false,"pushed_at":"2015-05-09T16:34:52.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T18:24:27.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jazzpi.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}},"created_at":"2015-05-09T16:33:32.000Z","updated_at":"2015-05-09T16:34:52.000Z","dependencies_parsed_at":"2022-07-12T09:24:05.010Z","dependency_job_id":null,"html_url":"https://github.com/jazzpi/sirc","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/jazzpi%2Fsirc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzpi%2Fsirc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzpi%2Fsirc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzpi%2Fsirc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzpi","download_url":"https://codeload.github.com/jazzpi/sirc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246752607,"owners_count":20827987,"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":[],"created_at":"2024-10-27T12:01:55.746Z","updated_at":"2025-04-02T03:41:54.317Z","avatar_url":"https://github.com/jazzpi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simply IRC\n\nThis is a easy-to-use IRC library mainly focused on the Twitch.TV IRC interface\nbased on asynchat. To use it, simply create a class and make it inherit from\n`IRCConnection` or `TwitchIRCClient`:\n\n```python\nclass MyTwitchBot(TwitchIRCClient):\n\n    def __init__(self, *args, **kwargs):\n        # Call the __init__ method in the superclass to initialize the\n        # connection\n        super().__init__(*args, **kwargs)\n        self.join_channel(\"#twitchusername\")\n\n    def handle_privmsg(self, channel, user, msg):\n        # Overwrite this method to handle chat messages\n        if msg.lower().startswith(\"!hello\"):\n            self.queue_message(channel, \"Hello {}! I'm a bot!\".format(user))\n\n    def handle_join(self, channel, user):\n        # Overwrite this method to handle users joining the chat\n        super().handle_join(channel, user)\n        self.queue_message(channel, \"Welcome {} to the chat :)\".format(user))\n\n    def handle_part(self, channel, user):\n        super().handle_part(channel, user)\n        self.queue_message(channel, \"Goobye {} :(\".format(user))\n```\n\nFor more information on the methods, look into the source code and the\ndocstrings.\n\n\n## Dependencies\n\nThis library depends on the `asynchat` and `schedule` libraries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzpi%2Fsirc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazzpi%2Fsirc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzpi%2Fsirc/lists"}