Commit Graph
40 Commits
Author SHA1 Message Date
Leander Furumo 171e33f1ec make success message more specific
specify that roles are only given if a user doesn't have them already
2024-04-20 13:44:36 +02:00
Leander Furumo f20612cc52 add models.py 2024-04-20 13:43:24 +02:00
Leander Furumo b537a9fd30 add galtinn active and member roles 2024-04-19 19:50:40 +02:00
Leander Furumo cb234764af write discord_id to galtinn on auth success 2024-04-19 19:49:16 +02:00
Leander Furumo cc12b32006 add auth token to galtinn user requests 2024-04-17 02:12:41 +02:00
Leander Furumo 10c22754b7 use new util functions 2024-04-16 04:24:41 +02:00
Leander Furumo 0c036765be initial role remover/adder util function 2024-04-16 04:23:46 +02:00
Leander Furumo 8fd3bf0651 initial get_roles util function 2024-04-16 04:23:22 +02:00
Leander Furumo d3011a6d55 initial fetch_galtinn_user util function 2024-04-16 04:22:36 +02:00
Leander Furumo 91d4c4015b move galtinn_group declaration 2024-04-15 20:16:03 +02:00
Leander Furumo 9f4cc931cb add GALTINN_AUTH_TOKEN env var 2024-04-15 20:14:28 +02:00
Leander Furumo 1af28ddcbb fix NOTIFY query
asyncpg does not allow for arguments in NOTIFY queries, hence we have to use f-strings
2024-04-15 20:12:32 +02:00
Leander Furumo 0f90e9bbf8 make sure ephemeral messages are actually ephemeral
oopsie woopsie we leaked the auth link. the security team is working very hard to fix this
2024-04-12 04:11:21 +02:00
Leander Furumo 02e3b0601f vertically center content 2024-04-12 03:55:30 +02:00
Leander Furumo f934ea3569 Closes #8 2024-04-12 03:35:23 +02:00
Leander Furumo b8f70479a9 Closes #3 2024-04-12 02:57:28 +02:00
Leander Furumo 16a319876b remove galtinn_user and galtinn_role db tables
will be replaced with galtinn API calls in the future™️
2024-04-12 01:16:43 +02:00
Leander Furumo 7e42a1ddb9 remove role management commands 2024-04-12 01:05:16 +02:00
Leander Furumo d0ea61a5be run pre-commit 2024-04-11 05:12:26 +02:00
Leander Furumo ba6bcbca8a Closes #7 2024-04-11 04:46:34 +02:00
Leander Furumo 6192bbd8d4 mark autocommit as scary 2024-04-11 02:35:43 +02:00
Leander Furumo 0e69fc43ed fetch roles in membership check 2024-04-11 02:35:21 +02:00
Leander Furumo e970498d10 add management commands for galtinn roles 2024-04-11 02:34:14 +02:00
Leander Furumo fff465fdc6 use discord role id as primary key for galtinn roles 2024-04-11 02:31:56 +02:00
Leander Furumo 31fed72e0e start membership check loop 2024-04-11 01:36:56 +02:00
Leander Furumo ab9a0adb4d add emergency verification table cleanup loop 2024-04-11 01:36:34 +02:00
Leander Furumo d2e014a9c5 add newline in success message 2024-04-11 01:11:14 +02:00
Leander Furumo 31b5f13cf8 improve variable naming 2024-04-11 01:10:44 +02:00
Leander Furumo 4fb6d98f8c fix typos 2024-04-11 01:10:14 +02:00
Leander Furumo 85713eb11a add state param 2024-04-11 01:08:59 +02:00
Leander Furumo 206c1fac91 use username instead of name for success page 2024-04-11 01:07:25 +02:00
Leander Furumo 0f4eb76845 add comments 2024-04-11 01:05:44 +02:00
Leander Furumo 92fa2ef7e3 suffix / to oauth api calls 2024-04-10 03:09:10 +02:00
Leander Furumo a6ca3fd361 change default port as to not conflict with galtinn 2024-04-10 03:07:21 +02:00
Leander Furumo 1689dd2aaf automatically delete user from verification table 2024-04-10 03:06:56 +02:00
Leander Furumo 6ee27bf528 stop catching redundant exception classes 2024-04-05 02:56:24 +02:00
Leander Furumo 27d42f4a37 avoid nesting if statements 2024-04-04 02:16:49 +02:00
Leander Furumo 1354cd7c81 add verification server to monorepo 2024-04-04 02:13:25 +02:00
Leander Furumo b38b44fce0 add discord bot to monorepo 2024-04-04 02:12:50 +02:00
Leander Furumo 034f47d101 initial 2024-04-04 02:12:21 +02:00