]> jfr.im git - z_archive/pyp10.git/blob - modules/q.py
ac8761fb77316390c01480cd2df7cda2ad8bdab7
[z_archive/pyp10.git] / modules / q.py
1 class Pseudo(object):
2 def __init__(self, uplink):
3 self.uplink = uplink
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):
8 self.uplink.send(line, self.num, **kwargs)
9 def gotmsg(self, msg, source, target):
10 self._send("P #p10 :<%(fromnum)s> %(msg)s", fromnum=source, msg=msg)