You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
546 B

import argparse
import logging
def get_args(parser=None):
if not parser:
parser = argparse.ArgumentParser(description="irc bot plugin")
parser.add_argument("-i", "--host", default="", help="host to connect to")
parser.add_argument("-p", "--port", default=7003, help="port to connect to")
return parser.parse_args()
def get_logger():
format="%(asctime)-15s %(levelname)-8s %(filename)s:%(lineno)d %(message)s")
return logging.getLogger()