コード例 #1
0
ファイル: Bot.py プロジェクト: seamail/dZAP
    def __init__(self):
        current_time = time()

        self.Modules = [BotModule(joke, 13), BotModule(motivational, 13)]

        self.ban_words = []
        self.load_ban_word()

        self.on_vestibular = 0

        self.window = None
        self.chat = None

        if LOAD_CONVERSATION_BOT:
            try:
                from bot.chat import Chatbrain
                self.chat = Chatbrain()
            except ImportError:
                self.chat = None
                print(
                    "Can't find Chatterbot module. Automatic conversation disabled."
                )