Discord Keyword Notification

Displays a browser notification whenever a user mentions specific textual word(s) in a channel. The script must be manually edited to configure the keywords.

< 腳本Discord Keyword Notification的回應

提問/評論

§
發表於:2021-05-15

I added my keywords "cryptobud" and "chat" to the keywordsRegexp string:
var keywordsRegexp = /\bcryptobud\b|\bchat\b|\bmatchwordstart|trivia|matchwordend\b|^matchmessagestart|matchmessageend$/gi;
But am not getting notifications.
I am getting a warning flag in the code:
eslint: curly - Expected { after 'if' condition.
at line 35.
Using Msft Edge browser with TamperMonkey.

發表回覆

登入以回復