|
@@ -50,7 +50,7 @@ const requiredFields = [
|
|
|
'twitter_consumer_key', 'twitter_consumer_secret', 'twitter_access_token_key', 'twitter_access_token_secret',
|
|
|
];
|
|
|
const warningFields = [
|
|
|
- 'cq_http_host', 'cq_http_port', 'cq_access_token',
|
|
|
+ 'mirai_http_host', 'mirai_http_port', 'mirai_access_token',
|
|
|
];
|
|
|
const optionalFields = [
|
|
|
'lockfile', 'work_interval', 'webshot_delay', 'loglevel', 'mode', 'resume_on_start',
|
|
@@ -107,10 +107,10 @@ if (!config.resume_on_start) {
|
|
|
});
|
|
|
}
|
|
|
const qq = new mirai_1.default({
|
|
|
- access_token: config.cq_access_token,
|
|
|
- host: config.cq_http_host,
|
|
|
- port: config.cq_http_port,
|
|
|
- bot_id: config.cq_bot_qq,
|
|
|
+ access_token: config.mirai_access_token,
|
|
|
+ host: config.mirai_http_host,
|
|
|
+ port: config.mirai_http_port,
|
|
|
+ bot_id: config.mirai_bot_qq,
|
|
|
list: (c, a, cb) => command_1.list(c, a, cb, lock),
|
|
|
sub: (c, a, cb) => command_1.sub(c, a, cb, lock, config.lockfile),
|
|
|
unsub: (c, a, cb) => command_1.unsub(c, a, cb, lock, config.lockfile),
|