fix errors

This commit is contained in:
Evert Prants 2020-12-05 18:15:19 +02:00
parent 9de5c73952
commit 5ccddc474d
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -56,8 +56,8 @@ export class SqueebotCLI {
case 'upd': case 'upd':
case 'update': case 'update':
if (!args[1]) { if (!args[1]) {
const repos = this.bot.repositoryManager.getAll(); const repolist = this.bot.repositoryManager.getAll();
for (const repo of repos) { for (const repo of repolist) {
await this.checkUpdate(repo); await this.checkUpdate(repo);
} }
return; return;
@ -306,7 +306,7 @@ export class SqueebotCLI {
if (idx !== -1) { if (idx !== -1) {
chan2.plugins.splice(idx, 1); chan2.plugins.splice(idx, 1);
} }
logger.log('Plugin "%s" added to channel!', name); logger.log('Plugin "%s" removed from channel!', name);
} }
break; break;