mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-19 02:03:07 +02:00
regex
This commit is contained in:
parent
16876b1408
commit
ecd9bff03c
@ -159,8 +159,8 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let text = config.tickets.text
|
let text = config.tickets.text
|
||||||
.replace('{{ name }}', message.author.username)
|
.replace(/{{ ?name ?}}/gmi, message.author.username)
|
||||||
.replace('{{ tag }}', message.author);
|
.replace(/{{ ?(tag|mention) ?}}/gmi, message.author);
|
||||||
|
|
||||||
|
|
||||||
let w = await c.send(
|
let w = await c.send(
|
||||||
|
@ -158,8 +158,8 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let text = config.tickets.text
|
let text = config.tickets.text
|
||||||
.replace('{{ name }}', u.username)
|
.replace(/{{ ?name ?}}/gmi, u.username)
|
||||||
.replace('{{ tag }}', u);
|
.replace(/{{ ?(tag|mention) ?}}/gmi, u);
|
||||||
|
|
||||||
|
|
||||||
let w = await c.send(
|
let w = await c.send(
|
||||||
|
Loading…
Reference in New Issue
Block a user