mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added a debugVariables hole in the template so we can set debug variables.
This commit is contained in:
parent
757f1aa927
commit
949f744ba9
@ -60,6 +60,7 @@ conf.commandsOnStart = "%%onStart%%"
|
|||||||
|
|
||||||
afterConnect = "%%afterConnect%%"
|
afterConnect = "%%afterConnect%%"
|
||||||
|
|
||||||
|
debugVariables = "%%debugVariables%%"
|
||||||
configVariables = "%%configVariables%%"
|
configVariables = "%%configVariables%%"
|
||||||
|
|
||||||
if not isinstance(configVariables, basestring):
|
if not isinstance(configVariables, basestring):
|
||||||
@ -69,6 +70,11 @@ if not isinstance(configVariables, basestring):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
import debug
|
import debug
|
||||||
|
|
||||||
|
if not isinstance(debugVariables, basestring):
|
||||||
|
for (name, value) in debugVariables.iteritems():
|
||||||
|
setattr(debug, name, value)
|
||||||
|
|
||||||
import world
|
import world
|
||||||
import drivers
|
import drivers
|
||||||
import schedule
|
import schedule
|
||||||
@ -102,10 +108,10 @@ if __name__ == '__main__':
|
|||||||
'-OO optimizes asserts and uses psyco.')
|
'-OO optimizes asserts and uses psyco.')
|
||||||
parser.add_option('-n', '--nick', action='store',
|
parser.add_option('-n', '--nick', action='store',
|
||||||
dest='nick', default=defaultNick,
|
dest='nick', default=defaultNick,
|
||||||
help='nick the bot should use') # FIXME (quotes)
|
help='nick the bot should use')
|
||||||
parser.add_option('-s', '--server', action='store',
|
parser.add_option('-s', '--server', action='store',
|
||||||
dest='server', default=defaultServer,
|
dest='server', default=defaultServer,
|
||||||
help='server to connect to') # FIXME (quotes)
|
help='server to connect to')
|
||||||
parser.add_option('-u', '--user', action='store',
|
parser.add_option('-u', '--user', action='store',
|
||||||
dest='user', default=defaultUser,
|
dest='user', default=defaultUser,
|
||||||
help='full username the bot should use')
|
help='full username the bot should use')
|
||||||
|
Loading…
Reference in New Issue
Block a user