mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Tags: don't attempt to send empty messages
This commit is contained in:
parent
3491f3e0a2
commit
a8d274c054
1 changed files with 2 additions and 0 deletions
|
@ -209,6 +209,8 @@ export class TagsPlugin extends ZeppelinPlugin<ITagsPluginConfig, ITagsPluginPer
|
|||
}
|
||||
}
|
||||
|
||||
if (body.trim() === "") return;
|
||||
|
||||
const channel = this.guild.channels.get(msg.channel_id) as TextChannel;
|
||||
const responseMsg = await channel.createMessage(body);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue