Commit 17942969 authored by Christophe's avatar Christophe
Browse files

Clearer version of the reporterbot.py on friday of Relearn.

parent 1d2b3bc5
......@@ -20,7 +20,7 @@ class ReportPlotBot(irc.bot.SingleServerIRCBot):
#this change the precision of the circle
NbUsers = len(self.channels[e.target].users())
angle=360/NbUsers
angle=360/(NbUsers/2)
#choose a random position
pX=randint(0,10000)
pY=randint(0,10000)
......@@ -41,9 +41,7 @@ class ReportPlotBot(irc.bot.SingleServerIRCBot):
posN=(NbWords*d)+20
nick = 'PR'+str(posN)+'LB'+e.source.nick
c.privmsg(self.plotchannel, 'DT*,1')
c.privmsg(self.plotchannel, nick)
c.privmsg(self.plotchannel, 'LB*')
c.privmsg(self.plotchannel, 'DT*,1;LB{0}*'.format(nick))
def on_join(self, c, e):
if e.target == self.observechannel:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment