mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-02-07 00:22:25 +08:00
21 lines
420 B
Python
21 lines
420 B
Python
# encoding:utf-8
|
|
|
|
import config
|
|
from channel import channel_factory
|
|
from common.log import logger
|
|
|
|
|
|
if __name__ == '__main__':
|
|
try:
|
|
# load config
|
|
config.load_config()
|
|
|
|
# create channel
|
|
channel = channel_factory.create_channel("wx")
|
|
|
|
# startup channel
|
|
channel.startup()
|
|
except Exception as e:
|
|
logger.error("App startup failed!")
|
|
logger.exception(e)
|