Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

A Discord bot that extends Discord's native Audit Log.

License

Notifications You must be signed in to change notification settings

peterthehan/discord-audit-log-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Audit Log Bot

Discord Twitter Follow

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

Setup

  1. Follow the instructions in create-discord-bot.

    Don't forget to give your bot the Manage Webhooks permission!

  2. 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 and npm i -D @types/diff@^5.0.1 to install this bot's dependencies.

  3. 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, and negativeColor are used to color code log embeds by the action taken.
    • deleteTimeThreshold and updateTimeThreshold (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.
  4. npm start to run the bot.

Visit for more help or information!