ran npm run format

This commit is contained in:
roflmaoqwerty 2020-01-12 22:31:30 +11:00
parent b785efe490
commit c532ab06fb
8 changed files with 56 additions and 24 deletions

View file

@ -108,7 +108,10 @@ export class MessageSaverPlugin extends ZeppelinPlugin<TConfigSchema> {
const { savedCount, failed } = await this.saveMessagesToDB(args.channel, args.ids);
if (failed.length) {
this.sendSuccessMessage(msg.channel, `Saved ${savedCount} messages. The following messages could not be saved: ${failed.join(", ")}`);
this.sendSuccessMessage(
msg.channel,
`Saved ${savedCount} messages. The following messages could not be saved: ${failed.join(", ")}`,
);
} else {
this.sendSuccessMessage(msg.channel, `Saved ${savedCount} messages!`);
}
@ -126,9 +129,11 @@ export class MessageSaverPlugin extends ZeppelinPlugin<TConfigSchema> {
);
if (failed.length) {
this.sendSuccessMessage(msg.channel, `Saved ${savedCount} messages. The following messages could not be saved: ${failed.join(", ")}`);
}
else {
this.sendSuccessMessage(
msg.channel,
`Saved ${savedCount} messages. The following messages could not be saved: ${failed.join(", ")}`,
);
} else {
this.sendSuccessMessage(msg.channel, `Saved ${savedCount} messages!`);
}
}