mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-02 00:31:27 +03:00
regex
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user