Opensource-IIITH / Discord-CAS

Tool for user verification via CAS on Discord servers.
20 stars 24 forks source link

Add a query command #27

Closed necessary129 closed 2 years ago

necessary129 commented 2 years ago

NOT TESTED

Parameters: [Roll number|Email|discord user] [which property to query]

Should currently be able to get the name/rollnumber/email.

No testing was done. I'm too lazy to set up a testing env right now. Maybe some time later.

bonsai needs to be installed in the env of the bot to be able to query LDAP.

2 new ENV_VARS:

necessary129 commented 2 years ago
  1. Only query the details of users already .verify ied. So the whole LDAP stuff is not needed.
  2. Only allow .query in servers with is_academic flag set.