|
@@ -1,6 +1,6 @@ |
|
|
# encoding:utf-8 |
|
|
# encoding:utf-8 |
|
|
|
|
|
|
|
|
import config |
|
|
|
|
|
|
|
|
from config import conf, load_config |
|
|
from channel import channel_factory |
|
|
from channel import channel_factory |
|
|
from common.log import logger |
|
|
from common.log import logger |
|
|
|
|
|
|
|
@@ -9,10 +9,10 @@ from plugins import * |
|
|
def run(): |
|
|
def run(): |
|
|
try: |
|
|
try: |
|
|
# load config |
|
|
# load config |
|
|
config.load_config() |
|
|
|
|
|
|
|
|
load_config() |
|
|
|
|
|
|
|
|
# create channel |
|
|
# create channel |
|
|
channel_name='wx' |
|
|
|
|
|
|
|
|
channel_name=conf().get('channel_type', 'wx') |
|
|
channel = channel_factory.create_channel(channel_name) |
|
|
channel = channel_factory.create_channel(channel_name) |
|
|
if channel_name=='wx': |
|
|
if channel_name=='wx': |
|
|
PluginManager().load_plugins() |
|
|
PluginManager().load_plugins() |
|
|