|
@@ -6,7 +6,7 @@ import * as path from 'path';
|
|
|
import * as commandLineUsage from 'command-line-usage';
|
|
|
|
|
|
import * as exampleConfig from '../config.example.json';
|
|
|
-import { list, sub, unsub } from './command';
|
|
|
+import { list, sub, unsub, unsubAll } from './command';
|
|
|
import { getLogger, setLogLevels } from './loggers';
|
|
|
import QQBot from './koishi';
|
|
|
import Worker from './twitter';
|
|
@@ -141,6 +141,7 @@ const qq = new QQBot({
|
|
|
list: (c, a, cb) => list(c, a, cb, lock),
|
|
|
sub: (c, a, cb) => sub(c, a, cb, lock, config.lockfile),
|
|
|
unsub: (c, a, cb) => unsub(c, a, cb, lock, config.lockfile),
|
|
|
+ unsubAll: (c, a, cb) => unsubAll(c, a, cb, lock, config.lockfile),
|
|
|
});
|
|
|
|
|
|
const worker = new Worker({
|