aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Akarys42 <[email protected]>2019-10-23 10:15:47 +0200
committerGravatar Akarys42 <[email protected]>2019-10-23 10:15:47 +0200
commit27cf5788d7f960e6bfb68891874cdfdaa5584ba1 (patch)
tree62967f3484ad70ab034bb6f570adf9f5662b8f8b
parentUpdate send_reminder message creation (diff)
Substract one to now calculation
Avoid aving `Your reminder will arrive in 59 minutes and 59 seconds!` instead of `Your reminder will arrive in 1 hour!`
-rw-r--r--bot/cogs/reminders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index 8adebb04b..81990704b 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -2,7 +2,7 @@ import asyncio
import logging
import random
import textwrap
-from datetime import datetime
+from datetime import datetime, timedelta
from operator import itemgetter
from typing import Optional
@@ -176,7 +176,7 @@ class Reminders(Scheduler, Cog):
}
)
- now = datetime.utcnow()
+ now = datetime.utcnow() - timedelta(seconds=1)
# Confirm to the user that it worked.
await self._send_confirmation(