{"id":27817122,"url":"https://github.com/cephalization/chihuahua-bot","last_synced_at":"2025-09-02T02:40:36.974Z","repository":{"id":100381754,"uuid":"238096701","full_name":"cephalization/chihuahua-bot","owner":"cephalization","description":"Slack bot","archived":false,"fork":false,"pushed_at":"2020-06-14T22:47:27.000Z","size":94,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-01T14:47:24.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/cephalization.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}},"created_at":"2020-02-04T01:19:13.000Z","updated_at":"2023-03-17T12:22:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9dbc39f-df14-4d1b-8d08-d68b32873713","html_url":"https://github.com/cephalization/chihuahua-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cephalization/chihuahua-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Fchihuahua-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Fchihuahua-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Fchihuahua-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Fchihuahua-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cephalization","download_url":"https://codeload.github.com/cephalization/chihuahua-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Fchihuahua-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273222189,"owners_count":25066712,"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-09-02T02:00:09.530Z","response_time":77,"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-05-01T14:37:40.246Z","updated_at":"2025-09-02T02:40:36.963Z","avatar_url":"https://github.com/cephalization.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chihuahua-bot\n\nSlack bot\n\n## Libraries\n---\n\n[Slack](https://github.com/nlopes/slack) - Slack Bot API client\n\n[ansi](https://github.com/mgutz/ansi) - Pretty terminal colors\n\n## Development\n---\n\n\n\n- install `go 1.13`\n- install `docker`\n  - If using windows 10 home, install [docker-toolbox](https://docs.docker.com/toolbox/toolbox_install_windows/) instead\n  - If you use toolbox you'll have to use their \"quickstart-terminal\" unfortunately\n  - Should probably just do all of this in windows subsystem for linux (wsl)\n- clone this repo\n- create `.env` file using `.env.sample` (in the repo) as reference\n  - token obtained from https://api.slack.com/legacy/custom-integrations/legacy-tokens once you have permissions to develop on the bot\n\n```\ntoken=slackbot_api_token\n```\n\n- in the repo, run `docker-compose up -d`\n  - if you leave out the `-d` you can see all of the logging and messages\n  - `ctrl-c` will kill the bot like this\n- to shut down bot, run `docker-compose down`\n\nIf docker isn't working or you don't want to use docker you will have to load the environment variables some other way\n\n`token=slackbot_api_token \u003cother env vars from .env\u003e ./chihuahua-bot`\n\n### Useful development commands\n\nThis section is mostly dedicated to docker since it makes development so much easier.\n\n- `docker-compose up` will run the last built version of the bot and print output of all containers\n  - `docker-compose up --build` will rebuild all the containers, useful when files change\n  - `docker-compose up -d` will run the containers in the background\n  - I usually run `docker-compose up --build -d`\n- `docker-compose down` will tear down all containers\n- `docker image prune` will delete stopped containers to get some disk space back\n- `docker logs \u003ccontainer\u003e` will show you the output of a container running in the background\n  - `docker logs chibot` will show you the bot's output\n  - `docker logs mongodb` will show you the db output\n- `docker exec -it \u003ccontainer\u003e /bin/bash` will put you in a terminal inside a container\n  - `docker exec -it mongodb /bin/bash` will be useful to query the mongodb manually. \n  - You could also download a mongo gui (mongodb compass) and point it to the default mongo ports it provides while the container is running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcephalization%2Fchihuahua-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcephalization%2Fchihuahua-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcephalization%2Fchihuahua-bot/lists"}