blob: 0e4ffd551a020c8a58ea72856a7f6f685e3f5a77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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'))
|