Installation
The cog runs on Red 3.5.0+ with Python 3.9+.
Requirements
- Message Content intent (privileged, in the Discord developer portal).
Without it the API returns empty content for every message, so counts could
never be verified;
[p]count setchannelrefuses to enable a channel while the intent is off. - Bot permissions in each counting channel: View Channel, Send Messages, Read Message History, Manage Messages (deletion).
- Apps that reach 10,000 or more unique users must apply for privileged-intent access (reviewed annually) to use the Message Content intent; below that threshold it can be toggled on directly in the developer portal.
Install
Add the repository and install the cog:
[p]repo add countegrity https://github.com/countegrity/countegrity
[p]cog install countegrity countegrity
[p]load countegrity
The load name stays
countegrity; the cog's name in Red (from itsinfo.json) is Countegrity CE.
Next steps
Enable your first channel with [p]count setchannel.