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

Ignore messages in certain channels or with certain prefixes #87

Open
samollari opened this issue Mar 14, 2021 · 1 comment · Fixed by #92
Open

Ignore messages in certain channels or with certain prefixes #87

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

Comments

@samollari
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!"]
  }
}
@samollari samollari added the enhancement New feature or request label Mar 14, 2021
@samollari samollari self-assigned this Mar 14, 2021
@EarlJr53 EarlJr53 assigned EarlJr53 and unassigned samollari Mar 17, 2021
@samollari
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)

@samollari samollari 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