Exemplo n.º 1
0
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()
Exemplo n.º 2
0
import sys
sys.path.insert(1, sys.path[0] + "/irctk")

#from irctk import Bot
from RedditBot.redditbot import Bot

from RedditBot.config import Config

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)

# load our plugins
from RedditBot.plugins import reddit, twitter, botutils, youtube, badword, tell, minecraft, google, lastfm, silly, config, kickrejoin, grab, wolframalpha