diff options
| author | 2020-05-25 19:55:23 -0700 | |
|---|---|---|
| committer | 2020-05-25 19:55:23 -0700 | |
| commit | 5386eda1731bb8eae287c20ed70a76399db2ae0e (patch) | |
| tree | fe929a7b0807ce77f14d1e5d4812554fc5da5823 | |
| parent | Token remover: use finditer instead of findall (diff) | |
Token remover: specify Discord epoch in seconds
The timestamp in the token is in seconds and is being compared against
the epoch. To make life easier, they should use the same unit.
Previously, the epoch was in milliseconds.
| -rw-r--r-- | bot/cogs/token_remover.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/token_remover.py b/bot/cogs/token_remover.py index 8913ca64d..46329e207 100644 --- a/bot/cogs/token_remover.py +++ b/bot/cogs/token_remover.py @@ -27,7 +27,7 @@ DELETION_MESSAGE_TEMPLATE = ( "Feel free to re-post it with the token removed. " "If you believe this was a mistake, please let us know!" ) -DISCORD_EPOCH = 1_420_070_400_000 +DISCORD_EPOCH = 1_420_070_400 TOKEN_EPOCH = 1_293_840_000 # Three parts delimited by dots: user ID, creation timestamp, HMAC. |