23 líneas
720 B
Python
23 líneas
720 B
Python
import argparse
|
|
import sys
|
|
pwd=""
|
|
server = "mumble.esiliati.org" # server address
|
|
nick = "TubiaBot"
|
|
channel = "radiospore"
|
|
port = 64738 # port number
|
|
is_streaming=False
|
|
stream_always=False
|
|
|
|
|
|
parser = argparse.ArgumentParser(description='Regia pienamente automatizzata')
|
|
parser.add_argument('--channel', help='Set channel')
|
|
parser.add_argument('--name', help='Set bot nickname', default="RadioRobbot")
|
|
parser.add_argument('--server', help='Set server', default="mumble.esiliati.org")
|
|
parser.add_argument('--port', help='Set port', type=int)
|
|
parser.add_argument('--stream', action='store_true', help='Ignore commands in chat and stream everything')
|
|
|
|
sys.argv.pop(0)
|
|
|
|
args = parser.parse_args(sys.argv)
|
|
|
|
print(args.name)
|