A fully modular, per-channel event logging system for Discord — plug-and-play addon for NeonCore.
- Drop
into yourCode:
logging.pyfolderCode:/configurations - Open the file and set your
at the topCode:
DEFAULT_LOG_CHANNEL - Optionally assign a dedicated channel to each event in
Code:
LOG_CHANNELS - Run
in Discord — done. No restart needed.Code:
!load logging
All settings are at the top of the file — no external config, no database, no setup wizard.
Code:
# ── DEFAULT CHANNEL ─────────────────────────────────
# Fallback channel used for all events that have no specific channel set
DEFAULT_LOG_CHANNEL = 123456789000000000
# ── CHANNEL PER EVENT ───────────────────────────────
# Set None to use DEFAULT_LOG_CHANNEL, or paste a specific channel ID
LOG_CHANNELS = {
"member_join": None, # 📥 Member joined
"member_leave": None, # 📤 Member left / kicked
"member_ban": None, # 🔨 Member banned
"member_unban": None, # ✅ Member unbanned
"message_edit": None, # ✏️ Message edited
"message_delete": None, # 🗑️ Message deleted
"role_changes": None, # 🎭 Role added/removed from member
"nick_change": None, # 📝 Nickname changed
"voice": None, # 🔊 Voice join/leave/move
"channel_create": None, # 📁 Channel created
"channel_delete": None, # 🗂️ Channel deleted
"role_create": None, # 🟢 Role created
"role_delete": None, # 🔴 Role deleted
"invite": None, # 🔗 Invite created/deleted
"server_boost": None, # 🚀 Server boost
}
# ── TOGGLE EVENTS ───────────────────────────────────
LOG_ENABLED = {
"member_join": True,
"member_ban": True,
"message_edit": True,
"message_delete": True,
# ... (one toggle per event)
}
# ── ADMIN ACCESS ────────────────────────────────────
ADMIN_ROLE_IDS = [] # Role IDs allowed to use admin commands
ADMIN_USER_IDS = [] # User IDs allowed to use admin commands
Per-Channel Routing — assign a dedicated log channel to each event type. Member joins go to
, message deletes toCode:#entrate, bans toCode:#messaggi— all fully independent.Code:#moderazione
Per-Event Toggle — enable or disable any single event without touching the rest. Just flip
/Code:Truein the config.Code:False
Ban & Unban Logs — automatically fetches the audit log to show the moderator who issued the ban and the reason.
Message Edit Logs — shows the full text before and after the edit, with a direct jump link to the message.
Message Delete Logs — logs the content of deleted messages and any attachment filenames.
Role Change Logs — tracks every role added or removed from a member in real time.
Nickname Logs — logs nick before and after every change.
Voice Logs — tracks join, leave and channel-switch events in voice.
Server Structure Logs — channel and role creation/deletion.
Invite Logs — logs every invite created or deleted, with max uses and creator.
Server Boost Logs — celebrates every new boost in a dedicated channel.
Startup Debug — prints the full channel routing map to console on load so you can verify your config instantly.
-
— Shows the full event → channel map withCode:
!log-setup
/
status for every event -
— Sends a test embed for a specific event (e.g.Code:
!log-test <event>)Code:!log-test member_ban
Every event type has its own colour so you can tell at a glance what happened.
Member Join — Green
Member Leave — Red
Ban — Bright Red
Unban — Blurple
Message Edit — Yellow- 🩷 Message Delete — Pink
Role Changes — Purple
Nick Change — Gold
Voice — Teal
Channels — Blue
Invites — Orange
Server Boost — Boost Pink
Having trouble with the installation? Found a bug? Got a question?
Don't post in the reviews — join our Discord and open a ticket.
We'll get back to you as fast as possible.
I spend countless hours developing and maintaining these premium addons for free.
If you enjoy my work and want to support future updates, consider buying me a coffee!
Part of the NeonCore ecosystem — modular, clean, and production-ready.
