Git Product home page Git Product logo

aghanimswager's Introduction

Aghanim's Wager

Bet on the outcomes of your friend's Dota 2 matches, win nutritious salt. This project is two parts:

  1. Using the python-steam and python-dota packages, write a steam/dota bot that listens for information from live dota games of the bot's steam friends. Dump it into a database in real time.
  2. A discord bot written in python that pulls live game data from the database and presents the matches to a channel. bot offers gambling opportunities.

If you're here you're probably interested in the first part, which is in the file DotaBet_gc.py. This can run independently of the Discord bot. You'll need a postgres database with a schema named Kali to hook it all up.

With the setup the code requires and just how bad parts of the code base are, I don't really ever expect to have the discord bot as something people will run their own instance of. I hardcoded too much of the SQL and I'm too lazy to change it. If you REALLY want to try, you can set the database credentials and the credentials of your steam account in the file tokens.py. I'm willing to field questions so long as they're specific.

How to use Nick's abomination

cd environments/development docker-compose build docker-compose up

aghanimswager's People

Contributors

daveknippers avatar nlavalle avatar rellim7 avatar artaseify avatar

Stargazers

 avatar  avatar Aluerie❤ avatar byron avatar

Watchers

 avatar David Woojin Kim avatar  avatar  avatar  avatar

Forkers

artaseify

aghanimswager's Issues

figure out winner of game

figure out how to find out who won via either the game coordinator or the web api. not really sure what approach is better. i think web api is more straight forward, but it might take longer to actually post the match than the game coordinator's game summary call.

amalgamate "match detail message" and "player list message"

take the discord message ids for the match details and match players and amalgamate them outside of the Lobby class, maybe into a new Match or something.

note: right now, the message id for match details is preserved through the database but the player message id isn't. that's gonna need to be added too.

this could be done along side formatting messages better, and showing more relevant information

estimate when game done from friends list clues

using both rich presence player data / the active lobby list to guess if a game is done.

this may not even be necessary if we can get really quick access to the match summary after the game.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.