OSDG-IIITH / Discord-CAS

Tool for user verification via CAS on Discord servers.
0 stars 7 forks source link

Implement Bot Admin-only functionality #12

Closed someyuck closed 4 months ago

someyuck commented 5 months ago

This PR resolves 4 tasks out of the 6 listed in the issue.

  1. Read discord IDs of admins that must be set in .env file.
  2. Add a check function that checks if a given member ID is a bot admin.
  3. Make backend_info an admin command.
  4. Make query/role admin-able commands so that admins can run it outside the "academic server" constraint.

I've also added docstrings for the functions defined, and updated the module docstring with those functions.