Implement removing servers and rename some commands
This commit is contained in:
18
threshold
18
threshold
@@ -171,7 +171,7 @@ class Helper(object):
|
||||
info("\n".join(poolMap))
|
||||
return
|
||||
|
||||
elif cmd == "connect":
|
||||
elif cmd == "add":
|
||||
if length == 6:
|
||||
|
||||
if spl[1] in pool.keys():
|
||||
@@ -193,7 +193,21 @@ class Helper(object):
|
||||
self.savePool()
|
||||
return
|
||||
else:
|
||||
incUsage("connect")
|
||||
incUsage("add")
|
||||
return
|
||||
|
||||
elif cmd == "del":
|
||||
if length == 2:
|
||||
|
||||
if not spl[1] in pool.keys():
|
||||
failure("Name does not exist: %s" % spl[1])
|
||||
return
|
||||
del pool[spl[1]]
|
||||
success("Successfully removed bot")
|
||||
self.savePool()
|
||||
return
|
||||
else:
|
||||
incUsage("del")
|
||||
return
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user