Call the write next datetime function when sending to the channel
This commit is contained in:
parent
9d3d57ef30
commit
e3d96faaa7
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ class ScheduleButton(discord.ui.Button):
|
||||||
|
|
||||||
if tasks:
|
if tasks:
|
||||||
for (day, hour, min, cadence, cadence_start) in 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)
|
msg += strings.scheduled(next_run, min)
|
||||||
|
|
||||||
await interaction.channel.send(msg)
|
await interaction.channel.send(msg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue