예제 #1
0
파일: plugin.py 프로젝트: MrJohz/K-Eight
 def decorator(function):
     function = PluginFunction(function)
     for name in names:
         function.add_alias(name)
     return function
예제 #2
0
파일: plugin.py 프로젝트: MrJohz/K-Eight
 def decorator(function):
     function = PluginFunction(function)
     function.make_private(priv)
     return function
예제 #3
0
파일: plugin.py 프로젝트: MrJohz/K-Eight
 def decorator(function):
     function = PluginFunction(function)
     regex2 = re.compile(regex, flags)
     function.add_regex(regex2)
     return function
예제 #4
0
파일: plugin.py 프로젝트: MrJohz/K-Eight
 def decorator(function):
     function = PluginFunction(function)
     for cmd in cmds:
         function.add_cmd(cmd)
     return function
예제 #5
0
파일: plugin.py 프로젝트: MrJohz/K-Eight
 def decorator(function):
     function = PluginFunction(function)
     for regex in regexes:
         function.add_regex(regex)
     return function