Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
relearn
2014
Commits
19e271c4
Commit
19e271c4
authored
Jul 11, 2014
by
Thomas Levine
Browse files
combine
parent
d0a90b05
Changes
1
Hide whitespace changes
Inline
Side-by-side
circles/reporterplotbot.py
0 → 100644
View file @
19e271c4
import
argparse
from
threading
import
Thread
from
plotbot
import
PlotBot
from
reporter
import
ReporterPlotBot
parser
=
argparse
.
ArgumentParser
(
description
=
'BashBot'
)
parser
.
add_argument
(
'--host'
,
default
=
"localhost"
,
help
=
'host'
)
parser
.
add_argument
(
'--port'
,
type
=
int
,
default
=
6667
,
help
=
'port'
)
parser
.
add_argument
(
'observechannel'
,
help
=
'channel to join'
,
default
=
'#2084'
)
parser
.
add_argument
(
'plotchannel'
,
help
=
'channel to join'
,
default
=
'#frontplotbot'
)
parser
.
add_argument
(
'plotnickname'
,
help
=
'bot nickname'
,
default
=
'RonaldWeexy'
)
parser
.
add_argument
(
'reportnickname'
,
help
=
'bot nickname'
,
default
=
'Circle'
)
def
main
():
args
=
parser
.
parse_args
()
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
)
if
__name__
==
"__main__"
:
main
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment