Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 374 Bytes
from core import ircBot
import ircHelpers
@ircBot.registerCommand('say')
class Speak:
def __init__(self):
self.channel = ircHelpers.getChannel()
def onRun(self, arguments, messageInfo):
command = 'PRIVMSG %s :%s\r\n' % (messageInfo['channel'], messageInfo['user'] + ' told me to say ' + arguments)
ircHelpers.send(command)
Something went wrong with that request. Please try again.