mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Moved world.version to conf.version.
This commit is contained in:
parent
50d1b9ba76
commit
aabd095239
@ -42,6 +42,7 @@ import time
|
|||||||
|
|
||||||
sys.path.append(os.pardir)
|
sys.path.append(os.pardir)
|
||||||
|
|
||||||
|
import conf
|
||||||
import debug
|
import debug
|
||||||
import ircmsgs
|
import ircmsgs
|
||||||
import callbacks
|
import callbacks
|
||||||
@ -58,7 +59,7 @@ class Ctcp(callbacks.PrivmsgRegexp):
|
|||||||
def version(self, irc, msg, match):
|
def version(self, irc, msg, match):
|
||||||
"\x01VERSION\x01"
|
"\x01VERSION\x01"
|
||||||
debug.msg('Received CTCP VERSION from %s' % msg.nick, 'normal')
|
debug.msg('Received CTCP VERSION from %s' % msg.nick, 'normal')
|
||||||
s = '\x01VERSION SupyBot %s\x01' % world.version
|
s = '\x01VERSION SupyBot %s\x01' % conf.version
|
||||||
irc.queueMsg(notice(msg.nick, s))
|
irc.queueMsg(notice(msg.nick, s))
|
||||||
|
|
||||||
def userinfo(self, irc, msg, match):
|
def userinfo(self, irc, msg, match):
|
||||||
|
@ -37,7 +37,6 @@ import os
|
|||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
import conf
|
import conf
|
||||||
import world
|
|
||||||
import debug
|
import debug
|
||||||
import privmsgs
|
import privmsgs
|
||||||
import callbacks
|
import callbacks
|
||||||
@ -147,7 +146,7 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
|
|
||||||
Returns the version of the current bot.
|
Returns the version of the current bot.
|
||||||
"""
|
"""
|
||||||
irc.reply(msg, world.version)
|
irc.reply(msg, conf.version)
|
||||||
|
|
||||||
def source(self, irc, msg, args):
|
def source(self, irc, msg, args):
|
||||||
"""takes no arguments
|
"""takes no arguments
|
||||||
|
@ -195,6 +195,8 @@ driverModule = 'asyncoreDrivers'
|
|||||||
###############################
|
###############################
|
||||||
###############################
|
###############################
|
||||||
###############################
|
###############################
|
||||||
|
version ='0.70.0'
|
||||||
|
|
||||||
import debug
|
import debug
|
||||||
|
|
||||||
class ConfigurationDict(dict):
|
class ConfigurationDict(dict):
|
||||||
|
@ -47,9 +47,6 @@ except ImportError:
|
|||||||
import conf
|
import conf
|
||||||
import debug
|
import debug
|
||||||
|
|
||||||
# version: The version of the bot.
|
|
||||||
version = '0.70.0'
|
|
||||||
|
|
||||||
startedAt = 0.0
|
startedAt = 0.0
|
||||||
|
|
||||||
threadsSpawned = 0
|
threadsSpawned = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user