2.6 KiB
2.6 KiB
Discord Analyst
When you need statistics about your discord server
-
%help (command)- info about commands -
%info- version and uptime -
%scan- full analysis -
%freq- frequency analysis -
%compo- composition analysis -
%pres- presence analysis -
%emojis- rank emotes by their usage- arguments:
<n>- top emojis, default is 20all- list all common emojis in addition to this guild'smembers- show top member for each emotesort:usage/reaction- other sorting methods
- arguments:
-
%mentions- rank mentions by their usage- arguments:
<n>- top mentions, default is 10all- show role/channel/everyone/here mentions
- arguments:
-
%mentioned- rank specific user mentions by their usage- arguments:
<n>- top mentions, default is 10all- show role/channel/everyone/here mentions
- arguments:
-
%cancel- cancel current analysis -
Common arguments:
- @member/me : filter for one or more member
- #channel/here : filter for one or more channel
- fast : only read cache
Running this bot
1. Install requirements
pip3 install -r requirements.txt
2. Make a .env file as following
#.env
DISCORD_TOKEN=<bot token from discordapp.com/developers>
3.Invite bot in your discord server
Generate and use the OAuth2 link in discordapp.com/developers to invite it.
You will need:
- Scopes:
- bot
- Bot Permissions:
- View Channels
- Send Messages
- Read Message History
4. Launch bot
python3 src/main.py
Changelog
- v1.7:
- emojis percents
- emojis other sorting
- mentions/mentioned ranking
- cancel
- v1.6:
- more scans :
%scan,%freq,%compo,%pres - huge bug fix
- more scans :
- v1.5:
- top emotes
- bug fix
- v1.4:
- integrate miniscord
- insane speed with bot-side logging
- bug fix
- v1.3: revert to v1.1 and update requirements
- v1.2: don't quit on occasional exception
- v1.1:
- coma separator for big numbers
- history loading by chunks for big channels (performance increase)
- bug fix
- v1.0: stable release