test
This commit is contained in:
parent
6102214173
commit
fbfe20b1da
@ -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:
|
||||
|
||||
@ -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"])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user