Make comments two lines if comment is longer than 80 characters
This commit is contained in:
@ -142,7 +142,8 @@ async def command_modify(ctx: SlashContext, time_or_message: str):
|
|||||||
"Does not work with cron or interval. Type Exit to exit."
|
"Does not work with cron or interval. Type Exit to exit."
|
||||||
)
|
)
|
||||||
|
|
||||||
# Only check for response from the original user and in the correct channel
|
# Only check for response from the original user and in the
|
||||||
|
# correct channel
|
||||||
def check(m):
|
def check(m):
|
||||||
return m.author == ctx.author and m.channel == ctx.channel
|
return m.author == ctx.author and m.channel == ctx.channel
|
||||||
|
|
||||||
@ -247,7 +248,8 @@ async def remind_remove(ctx: SlashContext):
|
|||||||
"Type the corresponding number to the reminder you wish to remove. Type Exit to exit."
|
"Type the corresponding number to the reminder you wish to remove. Type Exit to exit."
|
||||||
)
|
)
|
||||||
|
|
||||||
# Only check for response from the original user and in the correct channel
|
# Only check for response from the original user and in the
|
||||||
|
# correct channel
|
||||||
def check(m):
|
def check(m):
|
||||||
return m.author == ctx.author and m.channel == ctx.channel
|
return m.author == ctx.author and m.channel == ctx.channel
|
||||||
|
|
||||||
@ -321,7 +323,8 @@ def make_list(ctx, skip_datetriggers=False, skip_cron_or_interval=False):
|
|||||||
jobs_dict[job_number] = job.id
|
jobs_dict[job_number] = job.id
|
||||||
message = job.kwargs.get("message")
|
message = job.kwargs.get("message")
|
||||||
|
|
||||||
# Only normal reminders have trigger.run_date, cron and interval has next_run_time
|
# Only normal reminders have trigger.run_date, cron and
|
||||||
|
# interval has next_run_time
|
||||||
if type(job.trigger) is DateTrigger:
|
if type(job.trigger) is DateTrigger:
|
||||||
trigger_time = job.trigger.run_date
|
trigger_time = job.trigger.run_date
|
||||||
if skip_datetriggers:
|
if skip_datetriggers:
|
||||||
@ -398,7 +401,8 @@ async def remind_pause(ctx: SlashContext):
|
|||||||
"Type the corresponding number to the reminder you wish to pause. Type Exit to exit."
|
"Type the corresponding number to the reminder you wish to pause. Type Exit to exit."
|
||||||
)
|
)
|
||||||
|
|
||||||
# Only check for response from the original user and in the correct channel
|
# Only check for response from the original user and in the
|
||||||
|
# correct channel
|
||||||
def check(m):
|
def check(m):
|
||||||
return m.author == ctx.author and m.channel == ctx.channel
|
return m.author == ctx.author and m.channel == ctx.channel
|
||||||
|
|
||||||
@ -416,7 +420,8 @@ async def remind_pause(ctx: SlashContext):
|
|||||||
channel_name = bot.get_channel(int(channel_id))
|
channel_name = bot.get_channel(int(channel_id))
|
||||||
message = job.kwargs.get("message")
|
message = job.kwargs.get("message")
|
||||||
|
|
||||||
# Only normal reminders have trigger.run_date, cron and interval has next_run_time
|
# Only normal reminders have trigger.run_date, cron and
|
||||||
|
# interval has next_run_time
|
||||||
if type(job.trigger) is DateTrigger:
|
if type(job.trigger) is DateTrigger:
|
||||||
trigger_time = job.trigger.run_date
|
trigger_time = job.trigger.run_date
|
||||||
else:
|
else:
|
||||||
@ -462,7 +467,8 @@ async def remind_resume(ctx: SlashContext):
|
|||||||
"Type the corresponding number to the reminder you wish to pause. Type Exit to exit."
|
"Type the corresponding number to the reminder you wish to pause. Type Exit to exit."
|
||||||
)
|
)
|
||||||
|
|
||||||
# Only check for response from the original user and in the correct channel
|
# Only check for response from the original user and in the
|
||||||
|
# correct channel
|
||||||
def check(m):
|
def check(m):
|
||||||
return m.author == ctx.author and m.channel == ctx.channel
|
return m.author == ctx.author and m.channel == ctx.channel
|
||||||
|
|
||||||
@ -489,7 +495,8 @@ async def remind_resume(ctx: SlashContext):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
await ctx.send(e)
|
await ctx.send(e)
|
||||||
|
|
||||||
# Only normal reminders have trigger.run_date, cron and interval has next_run_time
|
# Only normal reminders have trigger.run_date, cron and
|
||||||
|
# interval has next_run_time
|
||||||
if type(job.trigger) is DateTrigger:
|
if type(job.trigger) is DateTrigger:
|
||||||
trigger_time = job.trigger.run_date
|
trigger_time = job.trigger.run_date
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user