def main(): webwx = MyWXBot() logger = logging.getLogger(__name__) import coloredlogs coloredlogs.install(level='DEBUG') webwx.start()