]> jfr.im git - z_archive/pyp10.git/blame - modules/q.py
Updates, add modules/do.py (eval/exec for debugging)
[z_archive/pyp10.git] / modules / q.py
CommitLineData
94df1338
JR
1class Pseudo(object):
2 def __init__(self, uplink):
3 self.uplink = uplink
f30d341c
JR
4 self.nick = 'Q'
5 self.num = self.uplink.makenick(self, self.nick, 'TheQBot','PyP10 Q')
6 self._send("J #p10 780000000")
7 def _send(self, line, **kwargs):
94df1338 8 self.uplink.send(line, self.num, **kwargs)
f30d341c
JR
9 def gotmsg(self, msg, source, target):
10 self._send("P #p10 :<%(fromnum)s> %(msg)s", fromnum=source, msg=msg)