Export voice channel access logs from Dyno in a TSV format with a simple command.
Settings are located in settings.py.
Bot responds to a message containing three params: name of an audio channel to search info about, start and end dates of log to search in (iso format specified in UTC currently).
Current implementation is pretty rough and mostly MVP. To be improved in the future
Required: Python 3.10 and dependencies listed in requirements.txt.
- Register your new application at https://discord.com/developers/applications
- Create a bot for your application
- Turn on
SERVER MEMBERS INTENTin your bot. This will allow it to see members of discord channel, which is needed to determine people's server nicknames by id - Go to
OAuth2 > URL Generatorand generate a link for your bot to add it to channel- Check
botinSCOPES - Check in
BOT PERMISSIONS:Send Messages,Attach Files,Read Message History, andRead Messages/View Channels. I'm not sure whether we need all of them, it worked for me even without all of them, but I did not test it precisely.
- Check
- Adjust settings to yours. You will need to provide bot token from Discord developer portal (
Bot > Token), log channel, command channel (to communicate with bot) and authorized group to which it will respond to only. - Run the bot and set up necessary channels, roles
- Send a message in the
COMMAND_CHANNELcontaining channel name to take logs from, and two iso datetimes of start and end. Example:Timezone is optional. Timezone of output is currently always UTC.General 2022-02-18T00:00:00+03:00 2022-02-18T02:00:00+03:00