Code Monkey home page Code Monkey logo

logger-bot's Introduction

Banner Run on Repl.it

Logger Bot

Discord bot that logs all changes on your Discord server!

Deployment

Follow these instructions on how to use the bot.

1.  Press the green "Code" button at the top of the repo.

template

2.  Download the full code via the "Download ZIP" button

downloadcode

3. Extract the files to your desktop and open the files in Visual Studio Code (or other text editor)

Bot Setup

.env

Put the token of your bot into .env file.

TOKEN=YOUR_BOT_TOKEN

config.json

Adjust your config so that the bot suits you the way you want.

{
  "guildID": "YOUR_GUILD_ID",
  "channels": {
    "channelLog": "CHANNEL_ID",
    "emojiLog": "CHANNEL_ID",
    "banLog": "CHANNEL_ID",
    "unbanLog": "CHANNEL_ID",
    "joinLog": "CHANNEL_ID",
    "leaveLog": "CHANNEL_ID",
    "messageLog": "CHANNEL_ID",
    "voiceLog": "CHANNEL_ID"
  },
  "owner": "975898528859697182"
}
4. Then open a terminal and run the following commands

Downloading discord.js

npm i discord.js@latest

Download the necessary modules:

npm i

Then use this command to turn on the bot:

npm run dev

Support us

If you use this code and are happy with it, we would be happy for any donation to support this project!

DONATE US HERE :)

Packages that this bot use

CHANGELOG

  • 16/08/2022 - Fixed broken presence and finished channelUpdate log.
  • 17/08/2022 - Code has been improved, logger has been added to event folder and emoji logger has been added.
  • 18/08/2022 - Added ban and join log.
  • 29/01/2023 - Modified code to discord.js version 14.7.1.
  • 26/03/2023 - Fixed small bugs, Switched from colors to term-logger package.
  • 27/03/2023 - Added Message Delete Event, Moved all embeds to embed.js file, Rewrited full code.
  • 10/07/2023 - Added new package nodemon and modified code.
  • 8/08/2023 - Updated all packages, Modified README file, Added .prettierrc file, Code has been improved.
  • 25/09/2023 - Updated all packages, Added voiceStateUpdate Event (Voice join, left, mute, unmute,deafended, undeafended), Modified README file

Message from the creator

If I see you using this code as your own, I will report the license violation to GitHub.

logger-bot's People

Contributors

devdeem avatar hegyok avatar kchaney1508 avatar mezotv avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

logger-bot's Issues

Suggestion: Add detection if a user has muted/deafened in a voice channel and log it

This means both when they get muted and unmuted too either by theirself or some moderator does it, also for deafening and log it in a way it is done (for example: if a member muted theirself and not a mod did it, then log "member has muted in channel <voiceChannelName/ID>" but if a mod muted them then "member has muted in channel <voiceChannelName/ID>")

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

npm
package.json
  • discord.js ^14.14.1
  • dotenv ^16.3.1
  • nodemon ^3.0.2
  • term-logger ^1.2.5

  • Check this box to trigger a request for Renovate to run again on this repository

Issue: Bot sometimes logs GIFs and URLs as message updates

Occasionally when running this bot and sending a GIF or URL in the target server the bot will log this, even though nothing was manually updated. My best guess is that it sees what Discord does automatically (e.g. rendering the link to the GIF into the GIF itself or adding an embed for a URL) as a message update, and it simply sends the identical source and updated message as a message update log. A simple example was https://github.com, which renders in a text channel with an accompanying embed, where the Logger Bot logged a source message of https://github.com and an updated message of https://github.com as well. Any chance there's a simple fix for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.