A Discord bot that extends Discord's native Audit Log.
Message edit |
Message delete |
Message edit with image |
Message delete in thread with multiple images |
Member join |
Member leave |
Tag change |
Avatar change |
-
Follow the instructions in create-discord-bot.
Don't forget to give your bot the
Manage Webhooks
permission! -
Download this bot and move the
src-discord-audit-log-bot
folder into the /src/bots folder from step 1.Run
npm i diff@^5.0.0
andnpm i -D @types/diff@^5.0.1
to install this bot's dependencies. -
Open config.json to configure your own settings:
[ { "defaultColor": "BLURPLE", "positiveColor": "#3498DB", "neutralColor": "#E67E22", "negativeColor": "#E91E63", "deleteTimeThreshold": 1, "updateTimeThreshold": 0, "guildId": "258167954913361930", "logChannelId": "560648403709591552", "ignoreChannelIds": ["649020657522180128"] } ]
Add as many rules as you want to configure for other servers.
defaultColor
,positiveColor
,neutralColor
, andnegativeColor
are used to color code log embeds by the action taken.deleteTimeThreshold
andupdateTimeThreshold
(in seconds) determine if message deletes or updates will be logged or not.guildId
is the server id.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!