Skip to content

[FEATURE UPDATE]: Yappathon Cog to async requests #140

Description

@ZRexshima

Is your feature request related to a problem? Please describe.
Update Yappathon Cog to use the new async requests functions in api_helper. We are moving away from blocking requests.

Describe the solution you have in mind.
I updated the requests functions to use the bot's own aiohttp ClientSession. You can see these in the async-yappathon branch. PR will await the update so that nothing breaks.

The functions changed are:

  • get_one_setting
  • get_one_role
  • get_monthly_points
  • monthly_top_point_earner
  • monthly_top_10
  • reset_monthly_points
  • get_parameter

Describe alternatives you've considered
None

Additional context
None

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

chorerepo/project maintenance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions