We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2992d3 commit d5187bfCopy full SHA for d5187bf
api/__init__.py
@@ -2,6 +2,7 @@
2
Other functions that are shared across modules are present as well.
3
'''
4
import config
5
+from imp import reload
6
backend = getattr(__import__('backends.%s' % config.backend), config.backend)
7
8
def get_config_str(cat, name):
@@ -16,6 +17,9 @@ def get_config_float(cat, name):
16
17
def get_config_bool(cat, name):
18
'''Get a boolean value out of the bot's configuration file'''
19
return config.c.getboolean(cat, name)
20
+def reload_config():
21
+ """Reload the configuration file."""
22
+ config = reload(config)
23
def get_host(data):
24
'''Returns the hostname (IP address) of the person who
25
sent the message passed to the variable data
0 commit comments