allthingslinux / tux

Tux is an all in one bot for the All Things Linux discord server.
https://discord.gg/linux
GNU General Public License v3.0
81 stars 24 forks source link

Rewrite `RoleCount` to be a global command & not hardcoded. #211

Open github-actions[bot] opened 5 months ago

github-actions[bot] commented 5 months ago

https://github.com/allthingslinux/tux/blob/665b14427b44dda98c27049f26cba6884d3072d0/tux/cogs/utility/rolecount.py#L139


    [1189236400571301958, "_chromium"],
]

# # TODO: Figure out how to make rolecount work without hard coded ids

class RoleCount(commands.Cog):
electron271 commented 3 months ago

prefix the role names with something and just search role names