This commit is contained in:
deathbybandaid 2022-05-05 15:18:37 -04:00
parent fbfe20b1da
commit 27ca97999c

View File

@ -59,8 +59,7 @@ def prerun():
# If not piping the replies into pipe, let'sprint to IRC now # If not piping the replies into pipe, let'sprint to IRC now
if not comrun.is_pipe_command: if not comrun.is_pipe_command:
for say_message in comrun._say: comrun.osd(comrun._say)
sb.osd(say_message)
# Pipe text back to bot for next piped command # Pipe text back to bot for next piped command
else: else:
for say_message in comrun._say: for say_message in comrun._say:
@ -128,6 +127,11 @@ class ComRun():
def say(self, message): def say(self, message):
self._say.append(message) self._say.append(message)
def osd(self, messages, recipients=None, text_method='PRIVMSG', max_messages=-1):
if not recipients:
recipients = self.trigger.sender
sb.osd(messages, recipients, text_method, max_messages=-1)
@property @property
def is_real_command(self): def is_real_command(self):
return sb.commands.is_real_command(self.command) return sb.commands.is_real_command(self.command)