mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord): send right response for after regexes
This commit is contained in:
@@ -97,8 +97,8 @@ export const getResponseFromText = async (
|
|||||||
} = responses[i]!
|
} = responses[i]!
|
||||||
const firstLabelIndex = firstLabelIndexes[i] ?? -1
|
const firstLabelIndex = firstLabelIndexes[i] ?? -1
|
||||||
|
|
||||||
for (let i = firstLabelIndex + 1; i < textTriggers!.length; i++) {
|
for (let j = firstLabelIndex + 1; j < textTriggers!.length; j++) {
|
||||||
const trigger = textTriggers![i]!
|
const trigger = textTriggers![j]!
|
||||||
|
|
||||||
if (trigger instanceof RegExp) {
|
if (trigger instanceof RegExp) {
|
||||||
if (trigger.test(content)) {
|
if (trigger.test(content)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user