From e678c9e1e31b3f2640c849c26fc3ec488234e2ef Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Tue, 21 Feb 2017 05:21:00 +0000 Subject: [PATCH] Post to bot channel when starting --- pocketbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pocketbot.py b/pocketbot.py index 132ffa2..fd9a74a 100644 --- a/pocketbot.py +++ b/pocketbot.py @@ -8,6 +8,7 @@ config = configparser.ConfigParser() config.read("/srv/discord-pocketbot/config.cfg") token = config.get("configuration", "token") +bot_channel_id = discord.Object(id=config.get("configuration", "bot_channel_id")) client = discord.Client() @@ -18,6 +19,7 @@ def on_ready(): print(client.user.name) print(client.user.id) print('------') + yield from client.send_message(bot_channel_id, "This isn't Tatooine...") @client.event @asyncio.coroutine