import sys sys.path.insert(1, sys.path[0] + "/irctk") from RedditBot.redditbot import Bot from RedditBot.config import Config from copy import deepcopy # initialize and config the bot bot = Bot() bot.config.from_object(Config) if not bot.h_config: bot.h_config = deepcopy(bot.config) bot.load_config() # load our plugins from RedditBot.plugins import (reddit, twitter, botutils, youtube, badword, tell, google, lastfm, config, kickrejoin, wolframalpha, python, wikipedia, github, vimeo, steam, mumble, imdb, countdown, pun, vend, silly, minecraft) # Available plugins that aren't loaded by default # from RedditBot.plugins import eval if 'RedditBot.plugins.tell' in sys.modules: tell.Base.metadata.create_all(tell.engine) tell.get_users()
from copy import deepcopy # initialize the bot object bot = Bot() # configure the bot object based on a Python class bot.config.from_object(Config) if not bot.h_config: bot.h_config = deepcopy(bot.config) bot.load_config() from RedditBot.plugins import tell db = tell.get_db_connection() try: tell.get_users(db) except: tell.db_init(db) tell.get_users(db) # load our plugins from RedditBot.plugins import (reddit, twitter, botutils, youtube, badword, tell, minecraft, google, lastfm, silly, config, kickrejoin, grab, wolframalpha, mcbouncer, python, wikipedia, github, countdown) # Available plugins that aren't loaded by default # from RedditBot.plugins import eval