mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 06:04:21 +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)
|
||||
|
||||
import conf
|
||||
import debug
|
||||
import ircmsgs
|
||||
import callbacks
|
||||
@ -58,7 +59,7 @@ class Ctcp(callbacks.PrivmsgRegexp):
|
||||
def version(self, irc, msg, match):
|
||||
"\x01VERSION\x01"
|
||||
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))
|
||||
|
||||
def userinfo(self, irc, msg, match):
|
||||
|
@ -37,7 +37,6 @@ import os
|
||||
import pprint
|
||||
|
||||
import conf
|
||||
import world
|
||||
import debug
|
||||
import privmsgs
|
||||
import callbacks
|
||||
@ -147,7 +146,7 @@ class MiscCommands(callbacks.Privmsg):
|
||||
|
||||
Returns the version of the current bot.
|
||||
"""
|
||||
irc.reply(msg, world.version)
|
||||
irc.reply(msg, conf.version)
|
||||
|
||||
def source(self, irc, msg, args):
|
||||
"""takes no arguments
|
||||
|
@ -195,6 +195,8 @@ driverModule = 'asyncoreDrivers'
|
||||
###############################
|
||||
###############################
|
||||
###############################
|
||||
version ='0.70.0'
|
||||
|
||||
import debug
|
||||
|
||||
class ConfigurationDict(dict):
|
||||
|
@ -47,9 +47,6 @@ except ImportError:
|
||||
import conf
|
||||
import debug
|
||||
|
||||
# version: The version of the bot.
|
||||
version = '0.70.0'
|
||||
|
||||
startedAt = 0.0
|
||||
|
||||
threadsSpawned = 0
|
||||
|
Loading…
Reference in New Issue
Block a user