Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Ignore messages in certain channels or with certain prefixes #87

Open
i-am-gizm0 opened this issue Mar 14, 2021 · 1 comment · Fixed by #92
Open

Ignore messages in certain channels or with certain prefixes #87

i-am-gizm0 opened this issue Mar 14, 2021 · 1 comment · Fixed by #92
Assignees
Labels
enhancement New feature or request

Comments

@i-am-gizm0
Copy link
Contributor

Per suggestion of @EarlJr53, Jay, and Bri

When there are game bots or whatnot in the server, people may gain levels quicker than normal if they use them often. We should add a way to blacklist certain channels or message prefixes from counting towards levels.
E.g.
config.json

{
  "levels": {
    "ignoreChannels": ["channel1", "channel2"],
    "ignorePrefix": ["!", "m!", "m.", "p!"]
  }
}
@i-am-gizm0 i-am-gizm0 added the enhancement New feature or request label Mar 14, 2021
@i-am-gizm0 i-am-gizm0 self-assigned this Mar 14, 2021
@EarlJr53 EarlJr53 assigned EarlJr53 and unassigned i-am-gizm0 Mar 17, 2021
@i-am-gizm0
Copy link
Contributor Author

This should be updated so the bot doesn't immediately crash when ignorePrefix isn't defined (it should be optional in Types.ts and should be checked if it's defined before trying to use it)

@i-am-gizm0 i-am-gizm0 reopened this Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants