You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
React on ?foo !foo .foo to educate about slash commands #654
Sometimes people with experience from other bots attempt to use message-commands, such as ?foo, !foo or .foo.
We should create a small message listener that reacts to that and educates the user about the fact that we only use slash commands and also how a slash command can be used, little tutorial with a picture maybe.
(to include pictures, see HelpSystemHelper#108 which includes CODE_SYNTAX_EXAMPLE_PATH as picture in an embed).
@Zabuzard I don't think this would be a good idea. 2 reasons:
As a programming oriented server, it's not unusual for a message to be ? thisIfTrue : this if false or for somebody to say != obj, uncommon as it may be, can happen.
It could result in spam from people doing !?. for the sake of it.
As a programming oriented server, it's not unusual for a message to be ? thisIfTrue : this if false or for somebody to say != obj, uncommon as it may be, can happen.
such a message has never been send in our discord history the last 5 years, i just checked.
that said, both of ur examples can easily by checked in the code. [!?.][a-zA-Z]{2}. again, i said that im not thinking about a simple startsWith.
It could result in spam from people doing !?. for the sake of it.
we block spam automatically already. u cant send messages too fast. and there are plenty of other possibilities to stress the bot.
Activity
Nxllpointer commentedon Oct 24, 2022
I would suggest this should only apply to .help !help... It would only annoy people if someone accidentally started a message with a dot.
Zabuzard commentedon Oct 24, 2022
nobody starts a message with
?hello please helpor.what a nice day. or!i like that idea.im not talking about
message.startsWith(...), but asserting that it starts with.?!, not followed by a space, with some text after it.so like
[\\.!?]\\S+or similarNxllpointer commentedon Oct 24, 2022
But before running random commands people probably run a help command first
Zabuzard commentedon Oct 24, 2022
from my experience, they attempt to use common other bot commands. such as
!runor.format. ive seen this lately a few times.do u fear false-positives or why do u want to limit the scope?
surajkumar commentedon Oct 26, 2022
@Zabuzard I don't think this would be a good idea. 2 reasons:
? thisIfTrue : this if falseor for somebody to say!= obj, uncommon as it may be, can happen.unless, you're able to make it ephemeral.
Nxllpointer commentedon Oct 26, 2022
@surajkumar ephemeral messages can only be created with interactions
Zabuzard commentedon Oct 26, 2022
such a message has never been send in our discord history the last 5 years, i just checked.
that said, both of ur examples can easily by checked in the code.
[!?.][a-zA-Z]{2}. again, i said that im not thinking about a simplestartsWith.we block spam automatically already. u cant send messages too fast. and there are plenty of other possibilities to stress the bot.
Taz03 commentedon Dec 29, 2022
do we really need this?
Tais993 commentedon Dec 29, 2022
To some extent this already exists, but this takes a little to load (too long IMO)
So no we don't need it, but it's still certainly a nice to have
Zabuzard commentedon Jan 26, 2023
Bumping this. I keep seeing people attempt to write
.closeor!closeevery second day now...