A Discord bot that fills in the gaps in Discord's Audit Log.
Message edit |
Message delete |
Message edit with image |
Message delete with image |
Member join |
Member leave |
Streaming start |
Streaming stop |
Voice join |
Voice leave |
Voice change |
Username change |
Avatar change |
-
Follow the instructions in create-discord-bot.
-
Download this widget and move the
src-discord-audit-log-bot
folder into the src/widgets/ folder created in step 1.npm i -s diff@^5.0.0
to install this widget's dependencies. -
Open config.json to configure your own settings:
{ "clientMap": { "web": "π", "mobile": "π±", "desktop": "π»" }, "colors": { "base": "7289da", "positive": "3498db", "neutral": "e67e22", "negative": "e91e63" }, "deleteTimeThreshold": 1, "editTimeThreshold": 0, "guildChannelMap": { "258167954913361930": { "logChannelId": "560648403709591552", "ignoreChannelIds": ["649020657522180128"] } } }
Add as many rules as you want to configure for other servers.
clientMap
denotes the active clients the user is connected to. It displays in the log embed's footer.colors
are used to color code log embeds by the action taken.- Message edits or deletions that occur in less time than the
editTimeThreshold
ordeleteTimeThreshold
(in seconds), respectively, will not be logged. guildChannelMap
is a key-value map between server id and channel ids.logChannelId
is the channel the bot logs into.ignoreChannelIds
is a list of channel ids that the bot ignores for logging (e.g. hidden admin-only channels, read-only information channels, etc).
-
npm start
to run the bot.
Visit for more help or information!