feat: picture auto-generate

This commit is contained in:
zhayujie
2022-12-19 01:25:34 +08:00
parent 06065853a9
commit bf50694658
9 changed files with 186 additions and 64 deletions

18
app.py
View File

@@ -2,13 +2,19 @@
import config
from channel import channel_factory
from common.log import logger
if __name__ == '__main__':
# load config
config.load_config()
try:
# load config
config.load_config()
# create channel
channel = channel_factory.create_channel("wx")
# create channel
channel = channel_factory.create_channel("wx")
# startup channel
channel.startup()
# startup channel
channel.startup()
except Exception as e:
logger.error("App startup failed!")
logger.exception(e)