test
This commit is contained in:
parent
42e626828a
commit
48f7e75463
@ -1,6 +1,5 @@
|
||||
import functools
|
||||
import re
|
||||
import inspect
|
||||
|
||||
from sopel.trigger import Trigger
|
||||
|
||||
@ -17,14 +16,6 @@ def prerun():
|
||||
|
||||
comrun = ComRun(bot, trigger, function)
|
||||
|
||||
source = inspect.getsource(function)
|
||||
index = source.find("def ")
|
||||
print([
|
||||
line.strip().split()[0]
|
||||
for line in source[:index].strip().splitlines()
|
||||
if line.strip()[0:4] == "\"\"\"{"
|
||||
])
|
||||
|
||||
# Since there was more than one command,
|
||||
# we are going to redispatch commands
|
||||
# This will give sopel the appearance of recieving individual commands
|
||||
|
||||
@ -11,7 +11,6 @@ def commands_test(bot, trigger, comrun):
|
||||
bot.say("%s" % trigger.raw)
|
||||
|
||||
|
||||
"""{test: True}"""
|
||||
@prerun()
|
||||
@plugin.command('testa')
|
||||
def commands_test_a(bot, trigger, comrun):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user