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