Commit c08e22fd authored by nanahira's avatar nanahira

dont send when not online

parent ce6ac47c
...@@ -41,6 +41,9 @@ export class SendTarget { ...@@ -41,6 +41,9 @@ export class SendTarget {
if (!bot) { if (!bot) {
throw new Error(`bot ${this.bot} not found`); throw new Error(`bot ${this.bot} not found`);
} }
if (bot.status !== 'online') {
return [];
}
return _.flatten( return _.flatten(
await Promise.all([ await Promise.all([
...this.users.map((userId) => ...this.users.map((userId) =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment