{"id":16132222,"url":"https://github.com/luk3yx/stdinbot","last_synced_at":"2025-04-06T14:43:07.485Z","repository":{"id":122015564,"uuid":"148582433","full_name":"luk3yx/stdinbot","owner":"luk3yx","description":"A simple IRC bot (and framework) to read text from stdin and put it on IRC.","archived":false,"fork":false,"pushed_at":"2021-12-16T04:33:31.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T20:45:43.997Z","etag":null,"topics":["irc","irc-bot","miniirc","stdin"],"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/luk3yx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2018-09-13T04:35:57.000Z","updated_at":"2023-04-05T03:21:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"79d74a43-b848-41ce-830c-b1a6b49d75cf","html_url":"https://github.com/luk3yx/stdinbot","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/luk3yx%2Fstdinbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luk3yx%2Fstdinbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luk3yx%2Fstdinbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luk3yx%2Fstdinbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luk3yx","download_url":"https://codeload.github.com/luk3yx/stdinbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500446,"owners_count":20948876,"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":["irc","irc-bot","miniirc","stdin"],"created_at":"2024-10-09T22:29:25.465Z","updated_at":"2025-04-06T14:43:07.463Z","avatar_url":"https://github.com/luk3yx.png","language":"Python","readme":"# stdinbot\n\nA collection of miniirc bots.\n\n## stdinbot.py\n\nA stupidly simple IRC bot to interact with stdin.\n\n## example.py\n\nAn example miniirc bot. If you want to make your own bot, you can use this as\nthe base.\n\n## relay.py\n\nA miniirc-based relay bot. Edit the networks list before using.\n\n## minetest-trackr.py\n\nMade for IRC channels with lots of Minetest servers, where only Minetest servers\nare voiced, and will allow IRC users to run `.players` to get a list of players\non all the servers without flooding the channel (as badly as requesting a player\nlist from every server). Currently not cross-channel and will ignore devoices.\n\n# Python scripts/applications that aren't strictly bots\n\n## miniirc_bootstrap.py\n\nAutomatically installs pip (if required) and then runs\n`pip install --upgrade miniirc`. This should work if `pip` isn't in your PATH\nor if the `pip` in your PATH is for a different Python version.\n\n**You do not need this if you already have and know how to install packages\nwith pip.**\n\n## lua.py\n\nA wrapper around [lupa](https://github.com/scoder/lupa) to make creating\nminiirc bots with lua easier. This may move eventually.\n\nDependencies: `sudo pip3 install lupa\u003e=1.8 miniirc_extras miniirc\u003e=1.4.0`\n\n### Usage\n\n```\n./lua.py \u003cpath to lua file\u003e\n```\n\nThis lua file will be able to use the `miniirc` global variable. `IRC` objects\nare not called with `:` (`irc.msg(...)` instead of `irc:msg(...)`). *Remember\nthat lua table indexes start with 1 and not 0.*\n\n#### `await`\n\nHandlers are executed inside coroutines and an `await` function is created, so\nthat Python functions can be called without blocking the lua thread. The main\nlua file can return a function that will be called inside a coroutine.\n\n```lua\nawait(blocking_python_function, parameters)\nawait{blocking_python_function, parameters, keyword='argument'}\n```\n\n*Note: `await`ing a lua function is pointless and will still block the lua\nthread.*\n\n#### `sleep`\n\nThe same syntax as `time.sleep`, doesn't block the lua thread if called inside\na coroutine.\n\n# miniirc\n\nA simple IRC client framework.\n\nThe miniirc framework is now on a separate repo\n([GitLab](https://gitlab.com/luk3yx/miniirc),\n[GitHub](https://github.com/luk3yx/miniirc))\nand can be installed via pip\nwith `sudo -H pip3 install miniirc`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluk3yx%2Fstdinbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluk3yx%2Fstdinbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluk3yx%2Fstdinbot/lists"}