This commit is contained in:
deathbybandaid 2022-05-06 10:28:56 -04:00
parent 42e626828a
commit 48f7e75463
2 changed files with 0 additions and 10 deletions

View File

@ -1,6 +1,5 @@
import functools import functools
import re import re
import inspect
from sopel.trigger import Trigger from sopel.trigger import Trigger
@ -17,14 +16,6 @@ def prerun():
comrun = ComRun(bot, trigger, function) 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, # Since there was more than one command,
# we are going to redispatch commands # we are going to redispatch commands
# This will give sopel the appearance of recieving individual commands # This will give sopel the appearance of recieving individual commands

View File

@ -11,7 +11,6 @@ def commands_test(bot, trigger, comrun):
bot.say("%s" % trigger.raw) bot.say("%s" % trigger.raw)
"""{test: True}"""
@prerun() @prerun()
@plugin.command('testa') @plugin.command('testa')
def commands_test_a(bot, trigger, comrun): def commands_test_a(bot, trigger, comrun):