diff options
Diffstat (limited to 'plugins/guildbot/__init__.py')
-rw-r--r-- | plugins/guildbot/__init__.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/guildbot/__init__.py b/plugins/guildbot/__init__.py new file mode 100644 index 0000000..0e4ffd5 --- /dev/null +++ b/plugins/guildbot/__init__.py @@ -0,0 +1,18 @@ +import handlers +from guilddb import GuildDB +from net.onlineusers import OnlineUsers + +PLUGIN = { + 'name': 'guildbot', + 'requires': (), + 'blocks': (), +} + +__all__ = ['PLUGIN', 'init'] + + +def init(config): + handlers.online_users = OnlineUsers(config.get('Other', 'online_txt_url'), + refresh_hook=handlers.online_list_update) + handlers.online_users.start() + handlers.db = GuildDB(config.get('GuildBot', 'dbfile')) |