CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

Switch to text roles #263

Closed 2Cubed closed 6 years ago

2Cubed commented 7 years ago

Rather than using numerical values for roles, we should just use text values to minimize confusion.

So that comparisons are still easy, we can write a simple Role class with comparison __dunder__ methods defined, so that we can simply say packet.role > "moderator" without having any issues. (All possible roles will be defined, in order, in the Role class, and it will only accept those as inputs.)