Improves discord roleapi system

Sends the discord id to the patch call, not the ckey

Add the verify command to readd the role to the api, with
a hacky, but effective slowdown to prevent the API being flooded easily
This commit is contained in:
oranges
2020-02-27 06:47:16 +00:00
parent 3db29f62ad
commit eea13a21ea
3 changed files with 36 additions and 2 deletions
+1
View File
@@ -34,6 +34,7 @@ SUBSYSTEM_DEF(discord)
var/list/notify_members_cache = list() // Copy of previous list, so the SS doesnt have to fire if no new members have been added
var/list/people_to_notify = list() // People to notify on roundstart
var/list/account_link_cache = list() // List that holds accounts to link, used in conjunction with TGS
var/list/reverify_cache = list() // list of people who tried to reverify, so they can only do it once per round as a shitty slowdown
var/notify_file = file("data/notify.json")
var/enabled = 0 // Is TGS enabled (If not we wont fire because otherwise this is useless)