zeusops / operationbot

A bot for handling events on the Zeusops discord server
GNU General Public License v3.0
7 stars 4 forks source link

Allow reordering roles with !dump+!load #76

Open Gehock opened 3 years ago

Gehock commented 3 years ago

The !load command is currently quite fragile and mostly works for removing and renaming roles. There should also be an option to reorder roles since that's something that can't currently be done with any other commands.

Should either look for role IDs (user has to manually change all IDs to reorder) or the order of elements in dict (user has to reorder the lines, bot re-calculates event IDs).

Currently reordering the lines doesn't have any effect. Changing event IDs will cause the names to be swapped but doesn't change the order of existing sign-ups: image