示例#1
0
 def multiaction_command(cls, default=None, fallback=None, **options):
     from pajbot.models.action import MultiAction
     cmd = cls(**options)
     cmd.action = MultiAction.ready_built(options.get('commands'),
                                          default=default,
                                          fallback=fallback)
     return cmd
示例#2
0
文件: command.py 项目: Cophy08/pajbot
 def multiaction_command(cls, default=None, fallback=None, **options):
     from pajbot.models.action import MultiAction
     cmd = cls(**options)
     cmd.action = MultiAction.ready_built(options.get('commands'),
             default=default,
             fallback=fallback)
     return cmd