aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-09 10:13:57 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-09 10:13:57 +0000
commit86f2f1e4f0722316b8d139d032fae8e4bf5946e1 (patch)
tree67f3b723e382c1bc164173a386094e2f6e0e6643
parentFix `bot.info()` wrapper (diff)
Send message to the devlog channel when the bot connects
-rw-r--r--bot/cogs/logging.py6
-rw-r--r--bot/constants.py1
2 files changed, 6 insertions, 1 deletions
diff --git a/bot/cogs/logging.py b/bot/cogs/logging.py
index 34c06909c..56107ee27 100644
--- a/bot/cogs/logging.py
+++ b/bot/cogs/logging.py
@@ -2,6 +2,8 @@
from discord import Message
from discord.ext.commands import AutoShardedBot
+from bot.constants import DEVLOG_CHANNEL
+
class Logging:
"""
@@ -12,7 +14,9 @@ class Logging:
self.bot = bot
async def on_ready(self):
- print("Henlo online!")
+ print("Connected!")
+
+ await self.bot.get_channel(DEVLOG_CHANNEL).send("Connected!")
async def on_message(self, message: Message):
if not message.guild: # It's a DM
diff --git a/bot/constants.py b/bot/constants.py
index 97f47f49a..59f500403 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -1,6 +1,7 @@
# coding=utf-8
+DEVLOG_CHANNEL = 409308876241108992
VERIFICATION_CHANNEL = 352442727016693763
ADMIN_ROLE = 267628507062992896