|
@@ -57,7 +57,7 @@ export default class {
|
|
|
if (!lock.threads[lock.feed[lock.workon]] ||
|
|
|
!lock.threads[lock.feed[lock.workon]].subscribers ||
|
|
|
lock.threads[lock.feed[lock.workon]].subscribers.length === 0) {
|
|
|
- logger.error(`nobody subscribes thread ${lock.feed[lock.workon]}, removing from feed`);
|
|
|
+ logger.warn(`nobody subscribes thread ${lock.feed[lock.workon]}, removing from feed`);
|
|
|
lock.feed.splice(lock.workon, 1);
|
|
|
fs.writeFileSync(path.resolve(this.lockfile), JSON.stringify(lock));
|
|
|
this.work();
|
|
@@ -95,6 +95,7 @@ export default class {
|
|
|
promise.then((tweets: any) => {
|
|
|
if (tweets.length === 0) return;
|
|
|
if (lock.threads[lock.feed[lock.workon]].offset !== -1) {
|
|
|
+ if (lock.threads[lock.feed[lock.workon]].offset === 0) tweets.splice(1);
|
|
|
webshot(tweets, msg => {
|
|
|
lock.threads[lock.feed[lock.workon]].subscribers.forEach(subscriber => {
|
|
|
this.bot.bot('send_msg', {
|