From a4fa363f2be7c971732c574113f00a419990947b Mon Sep 17 00:00:00 2001 From: nitro2 Date: Mon, 8 May 2023 04:23:30 +0000 Subject: [PATCH] Improve startup message (#115) --- bot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 8929a147..eb69aa86 100644 --- a/bot.py +++ b/bot.py @@ -45,7 +45,8 @@ async def test_bot(game, guild): @client.event async def on_ready(): """ Log ready message, check server roles/channels setup """ - print("=========================BOT STARTUP=========================") + startup_msg = "=========================BOT STARTUP=========================" + print(startup_msg) for guild in client.guilds: print("Connected to server: ", guild.name, " ServerID: ", guild.id) await admin.create_category(guild, client.user, config.GAME_CATEGORY) # Create GAME_CATEGORY if not existing @@ -54,7 +55,9 @@ async def on_ready(): await admin.create_channel(guild, client.user, config.LEADERBOARD_CHANNEL, is_public=True, is_admin_writeonly=True) # game_list.add_game(guild.id,Game(guild, interface.ConsoleInterface(guild))) game_list.add_game(guild.id, Game(guild, interface.DiscordInterface(guild, client))) - await admin.send_text_to_channel(guild, "Bot started up", config.LOBBY_CHANNEL) + + await admin.send_text_to_channel(guild, startup_msg, config.LOBBY_CHANNEL) + await admin.send_text_to_channel(guild, startup_msg, config.GAMEPLAY_CHANNEL) """ Uncomment to run test """ server_id = config.DISCORD_TESTING_SERVER_ID # Running test on Nhim's server