from lazbot import Lazbot from lazbot import utils import code import os import sys app = utils.build_namespace("app") app.config = utils.load_config('config.json') app.bot = Lazbot(app.config["slack_token"]) app.bot.stream = False directory = os.path.dirname(sys.argv[0]) + "/.." plugin_info = app.config.get("plugins", []) plugins = utils.load_plugins( os.path.join(directory, "src", "plugins"), plugin_info) for name, plugin in plugins.items(): locals()[name] = plugin.module def connect(): app.bot.connect() from ext import load_channels load_channels() try: import readline except ImportError: pass else:
'travis_button': True, } import sys import os import alabaster sys.path.insert(0, os.path.abspath('../src')) from lazbot import __version__, Lazbot from lazbot.utils import build_namespace, load_plugins app = build_namespace("app") app.config = {} app.bot = Lazbot("") load_plugins("../src/plugins") extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.intersphinx', 'alabaster', ] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' default_role = 'ref' # General information about the project.