{"id":19660841,"url":"https://github.com/bendangnuksung/bota","last_synced_at":"2025-04-28T20:32:30.918Z","repository":{"id":43246949,"uuid":"153369638","full_name":"bendangnuksung/bota","owner":"bendangnuksung","description":"🤖 A discord bot for Dota2 community","archived":false,"fork":false,"pushed_at":"2023-10-17T21:16:16.000Z","size":22089,"stargazers_count":23,"open_issues_count":4,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T10:51:13.948Z","etag":null,"topics":["bot","discord","discord-bot","discord-bots","dota2","python"],"latest_commit_sha":null,"homepage":"https://bota.tech/","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/bendangnuksung.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}},"created_at":"2018-10-16T23:56:47.000Z","updated_at":"2024-03-13T23:10:06.000Z","dependencies_parsed_at":"2023-01-21T15:02:48.301Z","dependency_job_id":null,"html_url":"https://github.com/bendangnuksung/bota","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/bendangnuksung%2Fbota","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendangnuksung%2Fbota/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendangnuksung%2Fbota/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendangnuksung%2Fbota/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendangnuksung","download_url":"https://codeload.github.com/bendangnuksung/bota/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251383976,"owners_count":21580978,"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":["bot","discord","discord-bot","discord-bots","dota2","python"],"created_at":"2024-11-11T16:05:35.465Z","updated_at":"2025-04-28T20:32:28.676Z","avatar_url":"https://github.com/bendangnuksung.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BOTA\u003cimg align=\"right\" src=\"/github_images/bota.png\"/\u003e\n[![Server](https://img.shields.io/badge/dynamic/json?url=http://34.72.210.131:5000/getstat\u0026label=Discord%20Servers\u0026query=$.n_servers\u0026color=green)](https://discordapp.com/api/oauth2/authorize?client_id=501100945405378562\u0026permissions=388176\u0026scope=bot)\n[![Users](https://img.shields.io/badge/dynamic/json?url=http://34.72.210.131:5000/getstat\u0026label=Unique%20Users\u0026query=$.n_users\u0026color=success)](https://discordapp.com/api/oauth2/authorize?client_id=501100945405378562\u0026permissions=388176\u0026scope=bot)\n\nBOT-A is a free Discord Dota 2 bot which provides comprehensive Information of every Dota 2 characters and exciting features for the community. Pull request are welcome and report any issues you find. The Bot is still in beta so I don't expect it to be perfect. \u003cbr/\u003e  \n**Website:** [https://bota.tech/](https://bota.tech/)\u003cbr/\u003e\n[![Join Bota Server](/github_images/join_server.jpg)](https://discord.gg/a7QYPWd)  [![Add Bota to your server](/github_images/add_bot.jpg)](https://discordapp.com/api/oauth2/authorize?client_id=501100945405378562\u0026permissions=388176\u0026scope=bot)\n\n## Commands \u0026 Screenshots\nCommands List: `!help`  \n  ![help](/github_images/commands.png)\nScreenshots:\n1. Command:  `!counter  morphling`  ![counter morphling](/github_images/counter.png)\n2. Command:  `!item storm` ![item storm](/github_images/item.png)\n\n\n## Pre-Requirements:\nBefore setting up the environment we first need to get:\n1. Discord Token\n2. Discord Client ID\n3. Dota2 API key\n4. Twitch Client ID\n5. Discord User (Optional)\n\n* To get `Discord Token` and `Discord Client ID` you can check [this](http://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-\u0026-getting-a-token)\n* You can get your  `Dota2 API key` from [here](https://steamcommunity.com/dev/apikey)\n* To get `Twitch Client ID` you need to register an application in Twitch developer. You can follow [this](https://dev.twitch.tv/docs/v5#getting-a-client-id) \n* You can get your `Discord User` by clicking on your profile in discord. It will look like `YourName#1234` eg: `bendang#3278`\n\nOnce this is done you can assign all this key values in `bota/private_constant.py`.\n\n\n## Setup Bota\n1. Clone repo and Setup postgres DB  \n    ```bash\n    # clone repo\n    git clone https://github.com/bendangnuksung/bota.git\n    cd bota\n    \n    # Install and setup PSQL\n    # default password given, please check db_setup.sh to change password\n    sh db_setup.sh\n    ```\n\n1. Run the independent flask server which handles the log process.   \n      ```bash\n      sh run_flask.sh\n      ```\n\n3. Run the bot. There are two ways to run BOTA\n    1. Run using Docker. **(RECOMMENDED)**\n    2. Run directly from the Repository\n\n### 1. Run using Docker **(RECOMMENDED)**\n1. Download the docker image from [DockerHub](https://hub.docker.com/r/bendang/bota) or download directly using:\n   ```bash\n   docker pull bendang/bota:latest\n   ```\n2. Run the docker image with the credentials which you got from Pre-Requirements:\n   ```bash\n   # docker run --rm -i -t --net=host --entrypoint=/bota/run_bota_docker.sh bendang/bota:latest \"DISCORD_TOKEN\" \"DISCORD_CLIENT_ID\" \"DOTA2_API_KEY\" \"ADMIN_ID\" \"TWITCH_CLIENT_IDS\" \"LOG_PROCESS_IP_ADDRESS\"\n   docker run --rm -i -t --net=host --entrypoint=/bota/run_bota_docker.sh bendang/bota:latest 1234 ABCD 6789 YOU#67 FGHI http://0.0.0.0:5000\n   ```\n   \n### 2. Run directly from Repository\n1. Install requirements \n    ```bash\n    sudo sh setup.sh\n    ```\n\n2. Create two Screen.\n   1. Screen 1: **Run the scrap process**\n      ```bash\n      sh run_scrap.sh\n      ```\n      Detach\n   2. Screen 2: **Run the BOT process** \n      ```bash\n      sh run_bota.sh\n      ```\n      Detach\n\n**CAUTION** : While running directly from repository if you are using chrome it will automatically close as the scrap process uses it and it kills once the scraping is done.\n\n\n### Data Collection Source\n1. [DotaBuff](https://www.dotabuff.com/)\n2. [Reddit](https://www.reddit.com/r/DotA2/)\n3. [Twitch](https://www.twitch.tv/)\n4. [D2PT](http://www.dota2protracker.com/)\n5. [DotaVoyance](http://dotavoyance.com/)\n6. Dota2API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendangnuksung%2Fbota","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendangnuksung%2Fbota","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendangnuksung%2Fbota/lists"}