Skip to content

arc25275/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel art of a log

Logger

Logger is a WIP discord bot to log all actions and events that can happen in a discord server!

This is my first bot, and I know this isn't an original idea, but I still want practice.

Setup

First, you will need a Bot created in the Discord Developer Portal. Make sure it has the Message Content Intent, which is under the Bot tab. It also needs the bot scope under the Install tab.

Clone the repository, and run npm install to install the dependencies. Create auth.json, config.json and data.json in ./config by using the templates provided in that directory.

Run the bot using npm run dev, and once it is running, you can add your bot to the server and default data should be created and placed into data.json.

Planned Features

  • Adding all events
    • Thread Create / Update / Delete
    • Guild Ban Add / Remove
    • Guild Emojis Update
    • Guild Stickers Update
    • Guild Member Add / Remove / Update
    • Guild Integration Create / Update / Delete
    • Interaction Create
    • Invite Create / Delete
    • Webhooks Update
    • Message Reaction Add / Remove / Remove All / Remove Emoji
  • Refactor / Upgrade to slash commands.
  • Separate channel per event
  • Util function for embed creation

Current Features

Commands

$setlog

Usage: $setlog <#channel>

Sets what channel events get logged to.

$disable

Usage: $disable

Disables logging on the server.

$config

Usage: $config <event> ['true' | 'false']

Enable or disable events.

$events

Usage: $events

Lists all events and their current status.

$modrole

Usage: $modrole ['add' | 'remove'] <roleid>

Adds and removes roles that can use commands

Events:

Most useful events found in Discord API Documentation

Most events pull from the audit logs to check who did an action, with the exception of deleted messages.

Credits

@vicrobex - Sprite graphics

@cattte - Help with code when I'm stupid

About

A discord bot that logs all events in a discord server (WIP)

Topics

Resources

License

Stars

Watchers

Forks