{"id":18870230,"url":"https://github.com/thor77/thor2","last_synced_at":"2025-07-01T14:32:03.205Z","repository":{"id":81628576,"uuid":"19431598","full_name":"Thor77/Thor2","owner":"Thor77","description":"My IRC-Bot named Thor2","archived":false,"fork":false,"pushed_at":"2014-07-18T10:57:49.000Z","size":1056,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T17:51:47.155Z","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/Thor77.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":"2014-05-04T17:22:31.000Z","updated_at":"2023-09-07T23:25:19.000Z","dependencies_parsed_at":"2023-02-24T23:20:57.864Z","dependency_job_id":null,"html_url":"https://github.com/Thor77/Thor2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thor77/Thor2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thor77%2FThor2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thor77%2FThor2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thor77%2FThor2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thor77%2FThor2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thor77","download_url":"https://codeload.github.com/Thor77/Thor2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thor77%2FThor2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262981093,"owners_count":23394463,"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-11-08T05:19:24.822Z","updated_at":"2025-07-01T14:32:03.173Z","avatar_url":"https://github.com/Thor77.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Thor2\n=====\n\nMy IRC-Bot named Thor2\n\nSTART HERE\n==========\n## The bot.cfg-File\n\n#### Server-Section\n    \n| Key  |       Description      |    Type |\n|------|:----------------------:|--------:|\n|  ip  |  ip of the IRC-server  | string  |\n| port | port of the IRC-server | integer |\n\n#### IRC-Section\n\n| Key      |     Description     |   Type |\n|----------|:-------------------:|-------:|\n| realname | realname of the bot | string |\n|   nick   |   nick of the bot   | string |\n\n#### Bot-Section\n\n| Key        |                      Description                      |    Type |\n|------------|:-----------------------------------------------------:|--------:|\n|    call    |                  char before commands                 |  string |\n|   channel  |                    channel to join                    |  string |\n| debuglevel |  0 =\u003e nothing 1 =\u003e important messages 2 =\u003e everything | integer |\n\n### Set Auth-Password\nAppend this line to the \\_\\_init\\_\\_.py:  \n\n    bot.setAuthPassword('pw') # set the auth password to 'pw'\n    \n## Sample Plugin\nPlace your plugin in the plugins-folder, it will be load automatically at startup.\nYou can reload plugins using the reload-command!  \n\n    from plugin import Plugin\n    class MyPlugin(Plugin):\n        def onLoad(self):\n            # called on load\n            # register events and add commands here\n            self.addCommand('mytestcommand', self.mytestcommand_func, 'a simple test command', 0)\n            # cmd, function, helpstring, needed level\n            \n            # for a eventlist look down here\n            self.registerEvent('onUserMessage', self.onMessage)\n            \n        def onMessage(self, eventobj):\n            msg = eventobj.getMessage()\n            sender = eventobj.getSender()\n            \n        def mytestcommand_func(self, sender, args):\n            # sender: sender of the message\n            # dict with args (everything after the command)\n            # mytestcommand thor77\n            nick = args[0] # thor77\n            self.sendMessage('Hi %s!' % nick) # Hi thor77!\n\nEvents\n======\n## onUserMessage\n### Methods\n    getMessage  \n    getSender\n## onSelfJoin\n### Methods\n    getChannel\n## onUserJoin\n### Methods\n    getUser\n## onUserQuit\n### Methods\n    getUser\n## onUserNickChange\n### Methods\n    getOldNick\n    getNewNick\n\nTODO\n====\n- unload Plugins through a command\n- load Plugins through a command\n- Permission System | DONE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthor77%2Fthor2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthor77%2Fthor2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthor77%2Fthor2/lists"}