2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-09-03 15:45:20 +00:00

Allow to separate users and reason using --

This commit is contained in:
Wojciech Pawlik
2020-03-21 20:07:07 +01:00
parent dab3e4e99f
commit 6ca88f4133

View File

@@ -33,6 +33,7 @@ const regex = XRegExp.tag('snx')`^
\/\w+(@\w+)? \/\w+(@\w+)?
(?<flagS> ${flagsRegex}*) (?<flagS> ${flagsRegex}*)
(?<ids> (\s+@\w+|\s+\d+)*) (?<ids> (\s+@\w+|\s+\d+)*)
(?:\s+--|\s+—)?
(?:\s+(?<reason>.*))? (?:\s+(?<reason>.*))?
$`; $`;