mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-01-10 18:06:27 +02:00
fix: null
incorrectly triggering tags (closes #484)
This commit is contained in:
parent
b0d77c1af6
commit
9f5c30c0bf
@ -277,7 +277,7 @@ module.exports = class extends Listener {
|
|||||||
client.keyv.set(cacheKey, tags, ms('1h'));
|
client.keyv.set(cacheKey, tags, ms('1h'));
|
||||||
}
|
}
|
||||||
|
|
||||||
const tag = tags.find(tag => message.content.match(new RegExp(tag.regex, 'mi')));
|
const tag = tags.find(tag => tag.regex && message.content.match(new RegExp(tag.regex, 'mi')));
|
||||||
if (tag) {
|
if (tag) {
|
||||||
await message.reply({
|
await message.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
|
Loading…
Reference in New Issue
Block a user