{"id":15813857,"url":"https://github.com/mattgreen/fogeybot","last_synced_at":"2025-03-14T20:31:59.155Z","repository":{"id":143246116,"uuid":"53211797","full_name":"mattgreen/fogeybot","owner":"mattgreen","description":"A Discord bot for Heroes of the Storm","archived":false,"fork":false,"pushed_at":"2018-01-02T15:27:18.000Z","size":40,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-06T04:07:00.625Z","etag":null,"topics":["discord-bot","heroes-of-the-storm","python-3"],"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/mattgreen.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":"2016-03-05T16:47:17.000Z","updated_at":"2023-02-01T01:32:49.000Z","dependencies_parsed_at":"2023-04-28T04:01:16.147Z","dependency_job_id":null,"html_url":"https://github.com/mattgreen/fogeybot","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/mattgreen%2Ffogeybot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgreen%2Ffogeybot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgreen%2Ffogeybot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgreen%2Ffogeybot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattgreen","download_url":"https://codeload.github.com/mattgreen/fogeybot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243642307,"owners_count":20324002,"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":["discord-bot","heroes-of-the-storm","python-3"],"created_at":"2024-10-05T04:07:03.991Z","updated_at":"2025-03-14T20:31:59.144Z","avatar_url":"https://github.com/mattgreen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction [![Build Status](https://travis-ci.org/mattgreen/fogeybot.svg?branch=master)](https://travis-ci.org/mattgreen/fogeybot)\n\nA simple Discord bot written with `discord.py` for forming teams for pickup games.\n\nIt's tailored towards Heroes of the Storm.\n\n## Prerequisites\n\n* Python 3.5\n* A Discord bot user and client ID\n* Somewhere to run it (VPS, Heroku, BlueMix, etc)\n* MongoDB for persisted information\n\n## Running\n\nFirst, clone the repo:\n\n    $ git clone https://github.com/mattgreen/fogeybot.git\n    $ cd fogeybot\n\nNext, install dependencies:\n\n    $ pip install -r requirements.txt\n\nFinally, start FogeyBot, specifying login information in environment variables:\n\n    $ DISCORD_TOKEN=\"bot_token\" MONGO_URI=\"uri\" python -m fogeybot\n\nYou can configure the bot to only listen for commands on a certain channel by setting the `DISCORD_CHANNEL` env var, as well.\n\n## Usage\n\nSomeone starts a pickup game via the `!startpickup` command, players can join the pickup in progress using the `!joinpickup 1700` command, where `1700` is their MMR. After ten players have joined, the MMRs specified are used to produce two teams of approximately equal skill. \n\nYou can abort the game early using the `!stoppickup` command.\n\nThe balancing algorithm works by sorting players by their skill, pairing players with the closest player of approximate skill, and splitting the pair between teams. To prevent team 1 from being weighted too heavily towards better players, we alternate which team the first player of a pair is assigned to.\n\n## Status\n\nThis is used regularly to host pickup games for Fogey League.\n\n## Commands\n\n### General\n#### !help\n\nPrints help information\n\n#### !uptime\n\nPrints uptime information. Useful for monitoring how good your hosting is.\n\n#### !coinflip\n\nFlips a coin\n\n\n### Pickup\n\n#### !startpickup\n\nStarts a new pickup game\n\n#### !addpickup name [mmr]\n\nAdds the specified player to the current pickup game with the given MMR. If it is not specified, use a default MMR of 1500. This command is useful for quickly on-boarding new users.\n\nIf the MMR is not parsable, it is ignored. If it is outside a reasonable range, it defaults to 1500.\n\n#### !joinpickup [mmr]\n\nAdds the player to the current pickup game with the given MMR. \n\nIf the user has registered their battle tag (via `!register`), and no MMR is specified, it will be retrieved from HotsLogs.\nIf the user has not registered their battle tag, or their HL profile is private, then use a default MMR of 1500.\n\nIf the MMR is not parsable, it is ignored. If it is outside a reasonable range, it defaults to 1500.\n\n#### !pickupstatus\n\nPrints out information about the current pickup, including who has joined and their MMR\n\n#### !leavepickup\n\nRemoves your pickup slot, freeing it up for someone else.\n\n#### !stoppickup\n\nStops the pickup game.\n\nGames expire after 30 minutes of the first `!startpickup` command.\n\n#### !randommap\n\nPrints a random map, excluding Haunted Mines and Lost Cavern.\n\n### User registration\n\n#### !register battletag#123\n\nAssociates the user's battle.net ID with the Discord account\n\n#### !registrationstatus\n\nReturns the user's battle.net ID, if any\n\n#### !unregister\n\nRemoves the user's battle.net ID information, if any\n\n## Deploying\n\nFiles for running on BlueMix are included.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattgreen%2Ffogeybot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattgreen%2Ffogeybot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattgreen%2Ffogeybot/lists"}