17 lines
421 B
Python
17 lines
421 B
Python
import minerbot
|
|
|
|
while(True):
|
|
bot = minerbot.minerbot("minerbot","minerbot","minerobber")
|
|
f = open("/home/minerobber/misc/mbchan.txt")
|
|
channels = f.read().split("\n")
|
|
f.close()
|
|
# try:
|
|
val = bot.begin("localhost",6667,channels)
|
|
if val == 0:
|
|
break
|
|
# except Exception as e:
|
|
# raise e
|
|
# bot.addNote("minerobber","Minerbot Crash","Crashed with {}: {}".format(type(e).__name__,str(e)))
|
|
# finally:
|
|
# reload(minerbot)
|