Skip to content

React on ?foo !foo .foo to educate about slash commands #654

Closed

Description

@Zabuzard

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).

Activity

  1. Nxllpointer commented on Oct 24, 2022

    @Nxllpointer
    Contributor

    I would suggest this should only apply to .help !help... It would only annoy people if someone accidentally started a message with a dot.

  2. Zabuzard commented on Oct 24, 2022

    @Zabuzard
    MemberAuthor

    nobody starts a message with ?hello please help or .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 similar

  3. Nxllpointer commented on Oct 24, 2022

    @Nxllpointer
    Contributor

    But before running random commands people probably run a help command first

  4. Zabuzard commented on Oct 24, 2022

    @Zabuzard
    MemberAuthor

    from my experience, they attempt to use common other bot commands. such as !run or .format. ive seen this lately a few times.

    do u fear false-positives or why do u want to limit the scope?

  5. surajkumar commented on Oct 26, 2022

    @surajkumar
    Contributor

    @Zabuzard I don't think this would be a good idea. 2 reasons:

    1. 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.
    2. It could result in spam from people doing !?. for the sake of it.

    unless, you're able to make it ephemeral.

  6. Nxllpointer commented on Oct 26, 2022

    @Nxllpointer
    Contributor

    @surajkumar ephemeral messages can only be created with interactions

  7. Zabuzard commented on Oct 26, 2022

    @Zabuzard
    MemberAuthor

    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.

  8. Taz03 commented on Dec 29, 2022

    @Taz03
    Contributor

    do we really need this?

  9. Tais993 commented on Dec 29, 2022

    @Tais993
    Member

    image
    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

  10. Zabuzard commented on Jan 26, 2023

    @Zabuzard
    MemberAuthor

    Bumping this. I keep seeing people attempt to write .close or !close every second day now...

  11. self-assigned this
    on Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issuehelp wantedpriority: normal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions