{"id":23577179,"url":"https://github.com/eggpi/ec09bot","last_synced_at":"2025-05-05T23:13:33.349Z","repository":{"id":139064518,"uuid":"2023274","full_name":"eggpi/ec09bot","owner":"eggpi","description":"A tiny fun IRC bot.","archived":false,"fork":false,"pushed_at":"2012-05-22T15:20:30.000Z","size":183,"stargazers_count":6,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T23:13:25.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/eggpi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-09T19:27:25.000Z","updated_at":"2023-11-01T15:02:59.000Z","dependencies_parsed_at":"2023-03-13T10:51:02.401Z","dependency_job_id":null,"html_url":"https://github.com/eggpi/ec09bot","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/eggpi%2Fec09bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fec09bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fec09bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fec09bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggpi","download_url":"https://codeload.github.com/eggpi/ec09bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252590632,"owners_count":21772940,"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-12-26T22:27:06.965Z","updated_at":"2025-05-05T23:13:33.328Z","avatar_url":"https://github.com/eggpi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A very simple, extensible IRC bot.\n\nSimple usage\n------------\n\n- Adding a command\n\n    Write a callable in commands/\\\u003ccommand\\_name\\\u003e.py and add \\\u003ccommand\\_name\\\u003e\nto command\\_modules in commands/\\_\\_init\\_\\_.py. This callable will get called\nwhen a user requests your command.\n\n    The command name, callable and aliases should be declared in a global\nvariable called *command\\_description* in commands/\\\u003ccommand\\_name\\\u003e.py. It\nshould be an iterable of tuples (*command name*, *callable*, *aliases*), where\n*aliases* is an iterable of aliases.\n\n    Thus in the common case in which your file defines a single command,\na declaration like:\n\n    ```python\n    command_description = [(\"foo\", foobar, (\"bar\", \"baz\"))]\n    ```\n\n    suffices to declare a command \"foo\", with aliases \"bar\" and \"baz\". That is,\nthe callable foobar gets called when a user issues either !foo, !bar or !baz.\n\n    The callable receives as argument the EC09Bot instance. If any other words\nwere passed in the command invocation, they are passed as additional arguments\nto the callable (EC09Bot will handle the exception when a wrong number of\narguments are provided, so only make the callable accept \\*args if you really\nneed that).\n\n    If the callable's return value is not None, it is sent back as a\nhightlighted message to the calling user.\n\n    The nick of the user that invoked the command will be available as the\n'sendernick' attribute of the EC09Bot instance passed to the command. The raw\nmessage can be accessed in the 'raw\\_message' attribute, in the off-chance that\nyou might need that.\n\n    A special case for this is adding a fortune command (that is, a command\nthat returns a fortune cookie). These are all defined in commands/fortune.py,\njust add your command there and it will show up among the other commands.\n\n- Removing a command\n\n    Simply remove the command module's name from command\\_modules in\ncommands/\\_\\_init\\_\\_.py.\n\n    Fortune commands are once again an exception. Remove the command from\ncommands/fortune.py in order to disable it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggpi%2Fec09bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggpi%2Fec09bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggpi%2Fec09bot/lists"}