本文整理汇总了Python中pajbot.managers.handler.HandlerManager.remove_handler方法的典型用法代码示例。如果您正苦于以下问题:Python HandlerManager.remove_handler方法的具体用法?Python HandlerManager.remove_handler怎么用?Python HandlerManager.remove_handler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pajbot.managers.handler.HandlerManager
的用法示例。
在下文中一共展示了HandlerManager.remove_handler方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: stop_quest
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def stop_quest(self):
HandlerManager.remove_handler('on_user_win_hs_bet', self.on_user_win_hs_bet)
redis = RedisManager.get()
self.reset_progress(redis=redis)
redis.delete(self.hsbet_points_key)
示例2: stop_quest
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def stop_quest(self):
HandlerManager.remove_handler('on_message', self.on_message)
redis = RedisManager.get()
self.reset_progress(redis=redis)
redis.delete(self.current_emote_key)
示例3: stop_quest
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def stop_quest(self):
HandlerManager.remove_handler('on_duel_complete', self.on_duel_complete)
redis = RedisManager.get()
self.reset_progress(redis=redis)
redis.delete(self.points_required_key)
示例4: disable
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def disable(self, bot):
HandlerManager.remove_handler('on_message', self.on_message)
HandlerManager.remove_handler('on_commit', self.on_commit)
if self.db_session is not None:
self.db_session.commit()
self.db_session.close()
self.db_session = None
self.links = {}
示例5: command_stop
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def command_stop(self, **options):
bot = options['bot']
source = options['source']
if not self.trivia_running:
bot.safe_me('{}, no trivia is active right now'.format(source.username_raw))
return
self.job.pause()
self.trivia_running = False
self.step_end()
bot.safe_me('The trivia has been stopped.')
HandlerManager.remove_handler('on_message', self.on_message)
示例6: disable
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def disable(self, bot):
HandlerManager.remove_handler('on_tick', self.on_tick)
示例7: disable
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def disable(self, bot):
HandlerManager.remove_handler('on_pubmsg', self.on_pubmsg)
示例8: disable
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def disable(self, bot):
HandlerManager.remove_handler('on_message', self.on_message)
示例9: disable
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def disable(self, bot):
HandlerManager.remove_handler('on_paid_timeout', self.on_paid_timeout)
示例10: disable
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def disable(self, bot):
HandlerManager.remove_handler('on_user_sub', self.on_user_sub)
HandlerManager.remove_handler('on_user_resub', self.on_user_resub)
HandlerManager.remove_handler('on_tick', self.on_tick)
示例11: disable
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def disable(self, bot):
HandlerManager.remove_handler('on_stream_start', self.on_stream_start)
HandlerManager.remove_handler('on_stream_stop', self.on_stream_stop)
HandlerManager.remove_handler('on_managers_loaded', self.on_managers_loaded)
示例12: stop_quest
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def stop_quest(self):
HandlerManager.remove_handler('on_message', self.on_message)
redis = RedisManager.get()
self.reset_progress(redis=redis)
示例13: stop_quest
# 需要导入模块: from pajbot.managers.handler import HandlerManager [as 别名]
# 或者: from pajbot.managers.handler.HandlerManager import remove_handler [as 别名]
def stop_quest(self):
HandlerManager.remove_handler('on_raffle_win', self.on_raffle_win)
HandlerManager.remove_handler('on_bingo_win', self.on_bingo_win)
HandlerManager.remove_handler('on_multiraffle_win', self.on_multiraffle_win)
self.reset_progress()