aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2020-04-03 15:14:46 -0700
committerGravatar GitHub <[email protected]>2020-04-03 15:14:46 -0700
commit6a98a72214c6ffd74c260a91f0aa73e0c4833175 (patch)
treeadd6de18e830c5bede87dac2dc1cd788cfab9b38 /bot/bot.py
parentMerge pull request #329 from python-discord/seasonal-purge (diff)
parentRemove redundant task assignment (diff)
Merge pull request #391 from python-discord/greeting-message
Send greeting message on bot start-up
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 87575fde..d18805dd 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -44,6 +44,7 @@ class SeasonalBot(commands.Bot):
self.http_session = ClientSession(
connector=TCPConnector(resolver=AsyncResolver(), family=socket.AF_INET)
)
+ self.loop.create_task(self.send_log("SeasonalBot", "Connected!"))
@property
def member(self) -> Optional[discord.Member]:
@@ -148,6 +149,7 @@ class SeasonalBot(commands.Bot):
async def send_log(self, title: str, details: str = None, *, icon: str = None) -> None:
"""Send an embed message to the devlog channel."""
+ await self.wait_until_ready()
devlog = self.get_channel(Channels.devlog)
if not devlog: