This commit is contained in:
2020-12-18 23:30:40 +01:00
parent dae802f5f3
commit 48baf94104

View File

@ -77,7 +77,8 @@ async def remind(ctx, message_date: str, message_reason: str):
}, },
) )
print(f"remind - Id: {job.id}, Name: {job.name}, kwargs: {job.kwargs}") print(f"remind - Id: {job.id}, Name: {job.name}, kwargs: {job.kwargs}")
message = f"Hello {ctx.message.author.name}, I will notify you at:\n**{remove_timezone_from_date}**\nWith message:\n**{message_reason}**." message = f"Hello {ctx.message.author.name}, I will notify you at:\n**{remove_timezone_from_date}**\nWith " \
f"message:\n**{message_reason}**. "
print(f"remind - Message we sent back to user in Discord: {message}") print(f"remind - Message we sent back to user in Discord: {message}")
await ctx.send(message) await ctx.send(message)
@ -91,7 +92,7 @@ async def send_to_discord(channel_id, message, author_id):
if __name__ == "__main__": if __name__ == "__main__":
# Enviroment variables # Environment variables
load_dotenv(verbose=True) load_dotenv(verbose=True)
sqlite_location = os.getenv("SQLITE_LOCATION", default="/jobs.sqlite") sqlite_location = os.getenv("SQLITE_LOCATION", default="/jobs.sqlite")
config_timezone = os.getenv("TIMEZONE", default="Europe/Stockholm") config_timezone = os.getenv("TIMEZONE", default="Europe/Stockholm")