{"id":16916354,"url":"https://github.com/gjum/cursingspock","last_synced_at":"2026-05-21T07:14:16.766Z","repository":{"id":62565973,"uuid":"48858684","full_name":"Gjum/CursingSpock","owner":"Gjum","description":"A SpockBot plugin for controlling the client from the terminal. Built with Curses.","archived":false,"fork":false,"pushed_at":"2016-07-24T16:02:44.000Z","size":9,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T05:18:00.326Z","etag":null,"topics":["cli","curses","minecraft","python3","spockbot"],"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/Gjum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-31T18:27:36.000Z","updated_at":"2022-02-01T20:05:43.000Z","dependencies_parsed_at":"2022-11-03T16:15:24.772Z","dependency_job_id":null,"html_url":"https://github.com/Gjum/CursingSpock","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/Gjum%2FCursingSpock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gjum%2FCursingSpock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gjum%2FCursingSpock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gjum%2FCursingSpock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gjum","download_url":"https://codeload.github.com/Gjum/CursingSpock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244693286,"owners_count":20494457,"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":["cli","curses","minecraft","python3","spockbot"],"created_at":"2024-10-13T19:26:29.325Z","updated_at":"2026-05-21T07:14:16.731Z","avatar_url":"https://github.com/Gjum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"CursingSpock\n============\n\nA [SpockBot](https://github.com/SpockBotMC/SpockBot) plugin for controlling the client from the terminal. Built with [Curses](https://docs.python.org/3.5/library/curses.html).\n\n![screenshot of a CursingSpock session](https://i.imgur.com/nHVMu4v.png)\n\nThanks to [gamingrobot](https://github.com/gamingrobot) for the [inspiration](https://github.com/SpockBotMC/SpockBot-Extra/blob/ea07c87b147d7c489c56046b6b8d72fd209d194b/plugins/curses_command.py).\n\nInstallation\n------------\n\n- Install the latest [SpockBot](https://github.com/SpockBotMC/SpockBot#installation)\n- Install CursingSpock: `pip install CursingSpock` (or get the code and run `setup.py install`)\n- Add these lines to your starting script ([example](https://github.com/SpockBotMC/SpockBot/blob/master/examples/basic/example.py)) in the right places:\n\n```python\n# probably at the very top\nimport cursingspock\n\n# before initializing the Client\nplugins.append(('curses', cursingspock.CursesPlugin))`\n```\n\nNote that this plugin does not implement any commands itself. Other plugins need to listen on `cmd_*` events and actually execute the command ([example](https://github.com/SpockBotMC/SpockBot-Extra/blob/master/plugins/base_commands.py)). The emitted events per command are:\n```python\ncommand, *args = 'somecommand arg1 arg2'.split(' ')\nself.event.emit('cmd', {'cmd': command, 'args': args})\nself.event.emit('cmd_%s' % command, {'args': args})\n```\n\nUsage\n-----\n\nMove the cursor with the `Left/Right` arrow and `Home/End` keys. When holding `Ctrl`, the cursor skips words.\n\nLoad a previously used command by using the `Up/Down` arrow keys.\n\nScroll the logs with the `PageUp/PageDown` keys.\n\nWhile the client runs, any log messags are saved in `curses.log` and any commands you enter are saved in `curses.cmds`.\nYou can configure these file names by changing `cursingspock.log_path` and `cursingspock.cmd_path`.\n\n---\n\nCopyright (c) 2015 Gjum \u003ccode.gjum@gmail.com\u003e\n\nLicensed under the MIT License, see `LICENSE.txt`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjum%2Fcursingspock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgjum%2Fcursingspock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjum%2Fcursingspock/lists"}