From dd40b7125215c4010a12dfad0095f19f82776e2c Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 1 Oct 2013 17:33:48 +1300 Subject: [PATCH] moved bot.py to cloudbot.py --- bot.py => cloudbot.py | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) rename bot.py => cloudbot.py (69%) mode change 100755 => 100644 diff --git a/bot.py b/cloudbot.py old mode 100755 new mode 100644 similarity index 69% rename from bot.py rename to cloudbot.py index adbb1f2..91515db --- a/bot.py +++ b/cloudbot.py @@ -1,47 +1,28 @@ #!/usr/bin/env python -__author__ = "ClouDev" -__authors__ = ["Lukeroge", "neersighted"] -__copyright__ = "Copyright 2012-2013, ClouDev" -__credits__ = ["thenoodle", "_frozen", "rmmh"] -__license__ = "GPL v3" -__version__ = "DEV" -__maintainer__ = "ClouDev" -__email__ = "cloudev@neersighted.com" -__status__ = "Development" - import os import Queue import sys import time -import platform import re -sys.path += ['plugins', 'lib'] # so 'import hook' works without duplication +sys.path += ['plugins', 'lib'] # add stuff to the sys.path for easy imports os.chdir(sys.path[0] or '.') # do stuff relative to the install directory class Bot(object): pass +print 'CloudBot DEV ' -print 'CloudBot %s (%s) ' % (__version__, __status__) - -# print debug info -opsys = platform.platform() -python_imp = platform.python_implementation() -python_ver = platform.python_version() -architecture = ' '.join(platform.architecture()) - -print "Operating System: %s, Python " \ - "Version: %s %s, Architecture: %s" \ - "" % (opsys, python_imp, python_ver, architecture) - +# create new bot object bot = Bot() bot.vars = {} + +# record start time for the uptime command bot.start_time = time.time() -print 'Loading plugins...' +print 'Begin Plugin Loading.' # bootstrap the reloader eval(compile(open(os.path.join('core', 'reload.py'), 'U').read(),