From 48f7e75463b7e93abaf0e050a696ece25a4f18b1 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 6 May 2022 10:28:56 -0400 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 9 --------- sopel_SpiceBot_Runtime_Commands/__init__.py | 1 - 2 files changed, 10 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index eff9c57..ef91a72 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -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 diff --git a/sopel_SpiceBot_Runtime_Commands/__init__.py b/sopel_SpiceBot_Runtime_Commands/__init__.py index b9981c4..3bc265f 100644 --- a/sopel_SpiceBot_Runtime_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Commands/__init__.py @@ -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):