This commit is contained in:
deathbybandaid 2022-05-05 15:13:22 -04:00
parent 6102214173
commit fbfe20b1da
2 changed files with 9 additions and 4 deletions

View File

@ -60,7 +60,7 @@ def prerun():
# If not piping the replies into pipe, let'sprint to IRC now
if not comrun.is_pipe_command:
for say_message in comrun._say:
bot.say(say_message)
sb.osd(say_message)
# Pipe text back to bot for next piped command
else:
for say_message in comrun._say:

View File

@ -8,6 +8,11 @@ from sopel_SpiceBot_Core_Prerun import prerun
@prerun()
@plugin.command('echo')
def echo(bot, trigger, comrun):
comrun.say(comrun.command["trigger_str"])
comrun.say(comrun.command["trigger_str"])
echo_count = 3
trigger_str = comrun.command["trigger_str"]
if trigger_str.split(" ")[0].isdigit():
echo_count = int(trigger_str.split(" ")[0])
trigger_str = " ".join(trigger_str.split(" ")[1:])
for x in range(echo_count):
comrun.say(comrun.command["trigger_str"])