Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cameronclay/zhex-bot
Elo bot for a SC2 arcade game, allows server members to join a queue to play against each other and generates a balanced team matchup based on player skill levels. Written in Python using Discord.py and PostgreSQL.
https://github.com/cameronclay/zhex-bot
discord-py heroku postgresql python
Last synced: 4 days ago
JSON representation
Elo bot for a SC2 arcade game, allows server members to join a queue to play against each other and generates a balanced team matchup based on player skill levels. Written in Python using Discord.py and PostgreSQL.
- Host: GitHub
- URL: https://github.com/cameronclay/zhex-bot
- Owner: CameronClay
- Created: 2021-01-15T01:45:32.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T21:23:36.000Z (6 months ago)
- Last Synced: 2024-05-22T20:08:00.940Z (6 months ago)
- Topics: discord-py, heroku, postgresql, python
- Language: Python
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zhex-bot
Discord bot for the arcade game within SC2. It ranks players based on Elo and stores rankings in a database. Players can queue for a game, set team preference, view players' stats and more. The bot is built on Discord.py and uses PostgreSQL as the database.## Getting started
```
Captain:
pick Pick member to be on your team
rl Captain report loss
rt Captain report tie
rw Captain report win
sub Sub player due to AFK (player to sub in must be a potential sub via !sub )General:
add Add to queue on region (NA/EU/ALL = default); Timeout=60 mins
addsub Allow yourself to be a potential sub on region (captains must already be picking)
del Remove yourself from queue on region (NA/EU/ALL = default)
elsub* Remove yourself as potential sub on region
qracepref Query current race preference for region
racepref Set race preference for region (Z - Zerg, T - Terran, A - All)
reg Register with the server to play private games (registration is required to run all other commands)
stats Retreive stats of player
status Query status of queue and any running gamesType !help command for more info on commands.
```
## Deployment
Bot was setup to be deployed on heroku. Commit the repository to heroku and turn the bot on.### Unit Testing
- Some unit testing done with pytest.### Tooling
- Python
- pytest