From 570b7c71484c9d6f10c749b507749f7afd893f01 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 24 Jan 2023 10:57:37 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 2 +- sopel_SpiceBot_Runtime_Action_Commands/__init__.py | 4 ++-- sopel_SpiceBot_Runtime_Commands/__init__.py | 8 ++++---- sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py | 10 +++++----- sopel_SpiceBot_Runtime_Unmatched_Commands/__init__.py | 8 ++++---- spicebot_command_dadjoke/__init__.py | 4 ++-- spicebot_command_devexcuse/__init__.py | 4 ++-- spicebot_command_echo/__init__.py | 4 ++-- spicebot_command_leetspeak/__init__.py | 4 ++-- spicebot_command_lower/__init__.py | 4 ++-- spicebot_command_spongemock/__init__.py | 4 ++-- spicebot_command_upper/__init__.py | 4 ++-- 12 files changed, 30 insertions(+), 30 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index d21a52f..1d41632 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -6,7 +6,7 @@ from sopel.trigger import Trigger from sopel_SpiceBot_Core_1 import sb -def prerun(): +def sbprerun(): """This decorator is the hub of handling for all SpiceBot Commands""" def actual_decorator(function): diff --git a/sopel_SpiceBot_Runtime_Action_Commands/__init__.py b/sopel_SpiceBot_Runtime_Action_Commands/__init__.py index ea957b1..6742b91 100644 --- a/sopel_SpiceBot_Runtime_Action_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Action_Commands/__init__.py @@ -4,10 +4,10 @@ from sopel import plugin from sopel_SpiceBot_Core_1 import sb -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.action_command('test') def sb_test_commands(bot, trigger, comrun): bot.say("%s" % trigger.raw) diff --git a/sopel_SpiceBot_Runtime_Commands/__init__.py b/sopel_SpiceBot_Runtime_Commands/__init__.py index 3bc265f..72a3532 100644 --- a/sopel_SpiceBot_Runtime_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Commands/__init__.py @@ -2,23 +2,23 @@ from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.command('test', "testnew") def commands_test(bot, trigger, comrun): bot.say("%s" % trigger.raw) -@prerun() +@sbprerun() @plugin.command('testa') def commands_test_a(bot, trigger, comrun): bot.say("test a") bot.say("%s" % trigger.raw) -@prerun() +@sbprerun() @plugin.command('testb') def commands_test_b(bot, trigger, comrun): bot.say("test b") diff --git a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py index 7a1a7c8..e1d24b9 100644 --- a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py @@ -3,10 +3,10 @@ from sopel import plugin from sopel_SpiceBot_Core_1 import sb -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.nickname_command('test') def sb_test_commands(bot, trigger, comrun): bot.say("%s" % trigger.raw) @@ -18,7 +18,7 @@ def sb_test_command_groups(bot, trigger, comrun): sb.osd(str(bot._plugins[bplugin].get_meta_description()), trigger.sender) -@prerun() +@sbprerun() @plugin.nickname_command('commands') def sopel_commands(bot, trigger, comrun): @@ -27,7 +27,7 @@ def sopel_commands(bot, trigger, comrun): sb.osd("%s" % sb.commands.sopel_commands, trigger.sender) -@prerun() +@sbprerun() @plugin.nickname_command('nickname_commands') def sopel_nickname_commands(bot, trigger, comrun): bot.say("testing nickname_commands") @@ -35,7 +35,7 @@ def sopel_nickname_commands(bot, trigger, comrun): sb.osd("%s" % sb.commands.sopel_nickname_commands, trigger.sender) -@prerun() +@sbprerun() @plugin.nickname_command('action_commands') def sopel_action_commands(bot, trigger, comrun): diff --git a/sopel_SpiceBot_Runtime_Unmatched_Commands/__init__.py b/sopel_SpiceBot_Runtime_Unmatched_Commands/__init__.py index 016eedd..f3b5d6a 100644 --- a/sopel_SpiceBot_Runtime_Unmatched_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Unmatched_Commands/__init__.py @@ -1,22 +1,22 @@ from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.command('(.*)') def rule_command(bot, trigger, comrun): return -@prerun() +@sbprerun() @plugin.nickname_command('(.*)') def rule_nickname_command(bot, trigger, comrun): return -@prerun() +@sbprerun() @plugin.action_command('(.*)') def rule_action_command(bot, trigger, comrun): return diff --git a/spicebot_command_dadjoke/__init__.py b/spicebot_command_dadjoke/__init__.py index bc91bf1..3c0ca2a 100644 --- a/spicebot_command_dadjoke/__init__.py +++ b/spicebot_command_dadjoke/__init__.py @@ -3,10 +3,10 @@ import requests from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.command('dad', 'dadjoke') def upper(bot, trigger, comrun): fetched_str = fetch_string() diff --git a/spicebot_command_devexcuse/__init__.py b/spicebot_command_devexcuse/__init__.py index 0aa87ac..4d6c2b7 100644 --- a/spicebot_command_devexcuse/__init__.py +++ b/spicebot_command_devexcuse/__init__.py @@ -4,10 +4,10 @@ from lxml import html from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.command('devexcuse') def upper(bot, trigger, comrun): fetched_str = fetch_string() diff --git a/spicebot_command_echo/__init__.py b/spicebot_command_echo/__init__.py index 61a0855..b52ac1c 100644 --- a/spicebot_command_echo/__init__.py +++ b/spicebot_command_echo/__init__.py @@ -2,10 +2,10 @@ from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.nickname_command('echo') @plugin.command('echo') def echo(bot, trigger, comrun): diff --git a/spicebot_command_leetspeak/__init__.py b/spicebot_command_leetspeak/__init__.py index 3e5a5c2..ecc4287 100644 --- a/spicebot_command_leetspeak/__init__.py +++ b/spicebot_command_leetspeak/__init__.py @@ -3,10 +3,10 @@ import random from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.command('leetspeak', 'leet', '1337') def leatspeak(bot, trigger, comrun): comrun.say(leet_convert(comrun.command["trigger_str"])) diff --git a/spicebot_command_lower/__init__.py b/spicebot_command_lower/__init__.py index 8662596..75459ee 100644 --- a/spicebot_command_lower/__init__.py +++ b/spicebot_command_lower/__init__.py @@ -2,10 +2,10 @@ from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.nickname_command('lower') @plugin.command('lower') def lower(bot, trigger, comrun): diff --git a/spicebot_command_spongemock/__init__.py b/spicebot_command_spongemock/__init__.py index b26478b..5ebf5ed 100644 --- a/spicebot_command_spongemock/__init__.py +++ b/spicebot_command_spongemock/__init__.py @@ -4,14 +4,14 @@ import random from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun # TODO # allow channel operators to set a mode for the bot to mock everything a person says -@prerun() +@sbprerun() @plugin.command('spongemock', 'smock') def upper(bot, trigger, comrun): comrun.say(mock_case(comrun.command["trigger_str"])) diff --git a/spicebot_command_upper/__init__.py b/spicebot_command_upper/__init__.py index 12744ff..6092aea 100644 --- a/spicebot_command_upper/__init__.py +++ b/spicebot_command_upper/__init__.py @@ -2,10 +2,10 @@ from sopel import plugin -from sopel_SpiceBot_Core_Prerun import prerun +from sopel_SpiceBot_Core_Prerun import sbprerun -@prerun() +@sbprerun() @plugin.nickname_command('upper') @plugin.command('upper') def upper(bot, trigger, comrun):