Commit 14da9988 authored by Arman's avatar Arman
Browse files

new replotter

parent 1998a573
......@@ -29,7 +29,7 @@ class ReportPlotBot(irc.bot.SingleServerIRCBot):
#choose a random position
pX=randint(-24050,24050)
pY=randint(-17975,17975)
#radius = 5000
radius = 5000
if e.target == self.observechannel:
msg = e.arguments[0]
NbWords = len(msg.split())
......
......@@ -4,7 +4,7 @@ from threading import Thread
import chiplotle
from plotbot import PlotBot
from reporter import ReporterPlotBot
from reporter import ReportPlotBot
parser = argparse.ArgumentParser(description='BashBot')
parser.add_argument('--host', default="localhost", help='host')
......@@ -17,10 +17,15 @@ parser.add_argument('reportnickname', help='bot nickname', default = 'Circle')
def main():
args = parser.parse_args()
plotter = chiplotle.instantiate_plotters()[0]
reporter = ReportPlotBot(args.observechannel, args.plotchannel, args.nickname, args.host, args.port, plotter = plotter)
plot = PlotBot(False, plotter, args.plotchannel, args.nickname, args.host, args.port)
Thread(None, reporter.start)
Thread(None, plot.start)
reporter = ReportPlotBot(args.observechannel, args.plotchannel, args.reportnickname, args.host, args.port, plotter = plotter)
reporter.start()
# plot = PlotBot(False, plotter, args.plotchannel, args.plotnickname, args.host, args.port)
# Thread(None, reporter.start)
# Thread(None, plot.start)
# import time
# while True:
# time.sleep(1)
if __name__ == "__main__":
main()
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