Update pyproject.toml

This commit is contained in:
2021-07-27 23:19:38 +02:00
parent d9c02b3cbf
commit cc546f51ec
2 changed files with 39 additions and 3 deletions

View File

@ -875,7 +875,8 @@ async def send_to_discord(channel_id: int, message: str, author_id: int):
await channel.send(f"<@{author_id}>\n{message}")
if __name__ == "__main__":
def start():
"""Start scheduler and log in to Discord."""
logging.basicConfig(level=logging.getLevelName(log_level))
logging.info(
f"\nsqlite_location = {sqlite_location}\n"
@ -886,3 +887,7 @@ if __name__ == "__main__":
scheduler.start()
bot.run(bot_token)
if __name__ == "__main__":
start()