{"id":28498280,"url":"https://github.com/yanganto/ant","last_synced_at":"2025-09-03T12:34:09.419Z","repository":{"id":51968383,"uuid":"68068890","full_name":"yanganto/Ant","owner":"yanganto","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-13T02:13:27.000Z","size":49,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T13:50:58.534Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanganto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2016-09-13T02:59:57.000Z","updated_at":"2025-06-13T02:13:24.000Z","dependencies_parsed_at":"2024-04-23T04:45:24.708Z","dependency_job_id":"2701f6ed-cfe3-4f31-8033-43e2dd99dd8f","html_url":"https://github.com/yanganto/Ant","commit_stats":{"total_commits":30,"total_committers":6,"mean_commits":5.0,"dds":0.6333333333333333,"last_synced_commit":"56ee73d2c558f569aa6917b16e4287d8f419ba0e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yanganto/Ant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanganto%2FAnt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanganto%2FAnt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanganto%2FAnt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanganto%2FAnt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanganto","download_url":"https://codeload.github.com/yanganto/Ant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanganto%2FAnt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271103202,"owners_count":24699646,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-06-08T13:37:09.676Z","updated_at":"2025-08-19T05:11:50.359Z","avatar_url":"https://github.com/yanganto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"AntBot\n---\na slack bot doing simple script jobs\n\u003e a slack bot can execute commands by slack chat room ( `@bot_name: command` ), \n\u003e wherein these commands are specified in a folder.\n\n\n\nUsage\n---\nstart a bot\n- `antbot -c` to copy the config file to current folder\n- add your bot key into config file\n- `antbot` to run the bot  \n\nuse in slack\n- `@bot_name: help` to show the command can be executed by the bot\n- `@bot_name: command` to execute that command\n\nhelp\n- `antbot -h` for help\n\nConfigure\n---\nplease set up at least following parameters in config file as ant.conf (in working folder or in ~/.config);\nor set up as environment parameters: \n- `BOT_ID` or `BOT_NAME`\n- `SLACK_BOT_TOKEN` (api key provided by slack)\n- `SCRIPTS_FOLDER` (script job you want to provide, default is current folder)\n- `DEFAULT_SCRIPT` (handle the unknow command)\n\nFollowing parameters can be set in config file:\n- `OUTPUT` - return scripts execution output back to slack\n- `ENCODING` - specify the encoding of stdout\n- `DEBUG_CHANNEL` - specify the channel always show the execution output\n- `MENTION` - Mention back the original caller (Thanks imrobinized@github)\n\nEnvironment\n---\n- python 3.5+\n- slackclient \n\nChange Log\n---\nVersion 0.1.4, 0.1.5, 0.1.6\n- change use nameko for microservice\n- use `JOBS_FOLDER` to process regular jobs\n- please specify the `JOBS_CHANNEL` for the regulat jobs output\n\nVersion 0.1.3\n- if @botname at the head of chat message, then trigger command\n- use `DEFAULT_SCRIPT` to handle unspecific command\n\nVersion 0.1.0, 0.1.1, 0.1.2\n- mention the caller (optional), set `MENTION=True` in config file\n- remove the mention in debug chanel (0.1.1)\n- mention with orignal command\n\nVersion 0.0.9\n- add debug channel\n\nVersion 0.0.8\n- Case sensitive \n\nVersion 0.0.7\n- Passing arguments to commands\n\nVersion 0.0.6\n- fix the requirement\n\nVersion 0.0.4\n- fix the bug on STDOUT encoding\n- Parameter patching rull ./ant.conf \u003e ~/.ant.conf \u003e environment parameters\n\nVersion 0.0.3\n- command line document\n- copy config example\n- show command execution output to slack (optional)\n\nVersion 0.0.1\n- basic bot\n\n\nMIT Licence\n---\nCopyright (c) 2016 Antonio Yang (yanganto) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanganto%2Fant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanganto%2Fant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanganto%2Fant/lists"}