Merge pull request 'Call the write next datetime function when sending to the channel' (#17) from fix-schedule-send-button into main
Reviewed-on: #17
This commit is contained in:
commit
e8c5ac9939
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ class ScheduleButton(discord.ui.Button):
|
|||
|
||||
if tasks:
|
||||
for (day, hour, min, cadence, cadence_start) in tasks:
|
||||
next_run = util.get_next_datetime(day, hour, datetime.now(), cadence, cadence_start)
|
||||
next_run = util.get_next_datetime_with_cadence(day, hour, datetime.now(), cadence, cadence_start)
|
||||
msg += strings.scheduled(next_run, min)
|
||||
|
||||
await interaction.channel.send(msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue