bipolarmorgan / discord-audit-log-bot

A Discord bot that fills in the gaps in Discord's Audit Log.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Audit Log Bot

Discord Twitter Follow

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

Setup

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

  2. 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.

  3. 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 or deleteTimeThreshold (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).
  4. npm start to run the bot.

Visit for more help or information!

About

A Discord bot that fills in the gaps in Discord's Audit Log.

License:MIT License


Languages

Language:JavaScript 100.0%