feat: config auto load

This commit is contained in:
zhayujie
2022-12-13 01:50:43 +08:00
parent ab10066687
commit f8fec2ef5b
6 changed files with 80 additions and 27 deletions

6
app.py
View File

@@ -1,10 +1,12 @@
import config
from channel import channel_factory
if __name__ == '__main__':
# load config
config.load_config()
# create channel
channel = channel_factory.create_channel("wx")
# startup channel
channel.startup()
print("Hello bot")