From 87c49ef71e8bb084710d44aa8cf5b3326d605542 Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Wed, 1 Mar 2017 19:18:02 -0500 Subject: [PATCH] Added config for owner user (aka me) --- example_config.cfg | 3 +++ pocketbot.py | 1 + 2 files changed, 4 insertions(+) diff --git a/example_config.cfg b/example_config.cfg index 7bf5d4b..5977be0 100644 --- a/example_config.cfg +++ b/example_config.cfg @@ -9,6 +9,9 @@ token: #Channel IDs bot_channel_id: +#User and Group IDs +owner_id: + #Reddit Stuff reddit_client_id: reddit_client_secret: \ No newline at end of file diff --git a/pocketbot.py b/pocketbot.py index 710c15a..dee0112 100644 --- a/pocketbot.py +++ b/pocketbot.py @@ -13,6 +13,7 @@ config.read("/srv/discord-pocketbot/config.cfg") token = config.get("configuration", "token") bot_channel_id = discord.Object(id=config.get("configuration", "bot_channel_id")) +owner_id = discord.User(id=config.get("configuration", "owner_id")) #Reddit Setup reddit_client_id = config.get("configuration", "reddit_client_id")