GithubHelp home page GithubHelp logo

creamy-cogs's People

Contributors

njhargis avatar will-hedges avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

will-hedges

creamy-cogs's Issues

Allow user to toggle polling on their account off.

  1. When registering a summoner, add a boolean field to the saved information of whether or not we are checking their live games, default to true.
  2. Create a command within leagueset commands that allows you to toggle this flag for yourself.
  3. Within check_games, evaluate this flag while looping through registered_summoners.

Let users tell you if a game is ended.

As an edge case, if we don't find a game ending, let the user automatically end it to clear it from list. Probably should double check against the API.

Standardize log statements

Is your feature request related to a problem? Please describe.

  • I find it difficult to follow log statements across modules when all of the cog modules are named the same

Describe the solution you'd like

  • A set format for module-specific logs, such as log = logging.getLogger(red.repo-name.cog-name.module-name)

    • ex. log = logging.getLogger(red.creamy-cogs.leaguecog.blitzcrank)

Standardizing imports and style guide/PEP8

Nitpicky, but I'm happy to go through and do this. I think we keep going back and forth.

PEP8 on imports... TL;DR:

Imports should be grouped in the following order:

1. Standard library imports.
2. Related third party imports.
3. Local application/library specific imports.

Reduce complexity of check_games

check_games function in Blitzcrank.py currently fails complexity check but it is overridden since it is working at the moment.
Needs refactor, might be solved by #11

Calculate refresh timer dynamically

Depending on how many registered summoners there are, we should calculate how often we can run the check_games logic without getting close to Riot's throttle limit.
20 requests every 1 second
100 requests every 2 minutes

Anytime new summoner is registered, recalculate.

Cog Installation Walk-through

When this cog is first installed it should force user through a setup.
This setup should help them

  1. Setup their API key
  2. Let them decide if they want announcements when registered users start games.
  3. If they choose yes to 2, help them set an announcement channel.
  4. Let user decide if they want gambling on games.
  5. If yes and economy is turned off, tell them how to turn it on.

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.