Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Ranking cog #7

Closed
10 tasks done
writeblankspace opened this issue May 7, 2021 · 2 comments
Closed
10 tasks done

Ranking cog #7

writeblankspace opened this issue May 7, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@writeblankspace
Copy link
Owner

writeblankspace commented May 7, 2021

Make a ranking system for SophiBot

Everything is pretty easy except adding the actual 'add rank'

Add Rank

  • ranking per message
commands.Cog.listener('on_message')
    async def foo(self, message: discord.Message):
        pass
  • 1m cooldown for rank
@commands.cooldown(1,60,user):
  • add random 1-5 per message to key lvl_xp
  • change level and other values
if lvl_xp == lvl_next:
    lvl_xp = lvl_next - lvl_xp
    lvl_next += # whatever calculation
    lvl += 1

lvl = current level
lvl_xp = current xp
lvl_next = how much xp you need for next level

Check rank

  • image generation API?
  • check other people's ranks
  • find out their rank in the leaderboard

- don't worry too much about this for now

Leaderboard

  • command aliases
  • for _ in _ command
  • find out the user's rank
@writeblankspace writeblankspace added enhancement New feature or request unknown fix The issue can't be solved in progress Currently being worked on labels May 7, 2021
@writeblankspace
Copy link
Owner Author

The image generation API has an error which also breaks my code in turn.

@writeblankspace writeblankspace pinned this issue May 8, 2021
@writeblankspace writeblankspace removed in progress Currently being worked on unknown fix The issue can't be solved labels May 11, 2021
@writeblankspace
Copy link
Owner Author

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant