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