Full logging system using the djs library (v13.6.0)

Overview

Loggin-system-djs-v13.6

Full logging system using the djs library (v13.6.0)

NOW ONTO MULTIPLE DISCLAIMERS:

It is crucial that you first understand two details about audit logs: first they are not guaranteed to arrive when you expect them (if at all), second there is no event which triggers when an audit log is created.

I just realised i did all my footer the deprecated way i aint updating 30 files right now so here is how you can resolve that: <MessageEmbed>.setFooter({ text: String, iconURL?: String})

I would also like to greatly thank @Roald Dahl#5787 for the multi guild system as i was too lazy to do it myself (specifically he provided me the command and DB file, along with the 5 lines at the start of every event to check the logging channel).

In every file it says what the code below logs (the actions that it logs) and u can also see a lot of commented text in each event to show exactly how the code works, feel free to remove them as they take a lot of visual space.

The userUpdate is not multi guild at all (as the name suggests) a user is someone out of the guild, in the current way it is, if a user is in one of the bot server's it will send the log in every server or just bug out, to resolve that u would have to use forEach loop between every server the bot is in and send the log message only in those the user is in too.

This is just a template i share to yall, so no need to tell me "i dont like that" or "this would look better this way" idc, it is up to you for customization i just provide the system. I think you all know how to make an embed thats not too hard.

The path to the DB file in all the events and the setup command most likely will be wrong because i just share the files apart from each other not a fully usable bot, so make sure to input the right path in the setup command and all the events you might use.

If the emojis in the embeds i made dont work, below is the server i got them from.

https://discord.gg/CDNsF86Dfe

The way i log is creating a webhook sending what i need in it and deleting it right after (you can see it by the function at the end of each file) feel free to remove the function and log however u want. If u plan using it tho u might wanna know that if the bot bugs out or anything and webhooks are starting to get created but never are deleted (it happened to me because of an API issue, like it didnt log anything then 20 minutes later logged everything at once) u will have the error i shared below, just meaning u reached the 10 webhooks limit per channel so delete some/all of them.

https://srcb.in/PpdQQZrrwW

If u know what u are doing and still u dont like the way the *system* works u can improve it or just change it yourself (i link right below the class affiliated to audit logs in the docs and the Client class to see all available events), u can also log the entry of the audit logs in each event to see what the entry returns and therefore what u can use.

https://discord.js.org/#/docs/discord.js/stable/class/GuildAuditLogs

https://discord.js.org/#/docs/discord.js/stable/class/Client

(This is the work of 4 days on and off so please leave the credits at the end of each files if u plan on using them, you can DM me on discord for any report of an error or propose things in the system that could be improved, but please dont ask me how to do something or complain that u dont like the way an embed looks)

Btw im sorry i know this is a lot of things to read 🤷‍♂️

Feel free to let me know if you liked it

You might also like...

A fully customizable bot built with 147 commands, 11 categories and a dashboard using discord.js v13

A fully customizable bot built with 147 commands, 11 categories and a dashboard using discord.js v13

Pogy the Discord Bot [DJS V13] A fully customizable bot built with 147 commands, 11 categories and a dashboard using discord.js v13 About • Features •

Dec 30, 2022

Remote Keyboard Tutoring System is a web-based system that can be attached to any keyboard synthesizer through a MIDI connector.

Remote Keyboard Tutoring System is a web-based system that can be attached to any keyboard synthesizer through a MIDI connector.

The Remote Keyboard Tutoring System is a web-based system that can be attached to any (electronic) keyboard synthesizer through a MIDI connector. Once our system is connected to the keyboard, the user can interactively learn, play or teach in combination with the web application that we provide.

Nov 15, 2022

Umut Bayraktar YouTube Özel Discord.js v13 Uyumlu Başvuru Botu Altyapısı, Glitch ve PC Uyumludur!

Discord.js v13 Başvuru Botu Umut Bayraktar Youtube Özel Discord.js v13 Başvuru Botu Altyapısı. Glitch.com'da Kullanacak İseniz .env İsimli Dosyaya Bot

May 31, 2022

An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

Multiguild-Waitingroom-v13 An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules. It is m

Dec 11, 2022

Código fácil DiscordJS v13.

DISCORDJS TEMPLATE V13 BY MRGIOCODE Código fácil DiscordJS v13. Como inicializar el bot: Copia el repositorio. Crea un archivo .env para guardar el to

Dec 24, 2021

Umut Bayraktar Youtube Özel Discord.js v13 Müzik Botu Altyapısı.

Discord.js v13 Müzik Botu Umut Bayraktar Youtube Özel Discord.js v13 Müzik Botu Altyapısı. .env İsimli Dosyaya Bot Tokeninizi Yazın ve Kullanın. Umut

May 31, 2022

OptiBOT - My discord.js V13 discord bot.

OptiBOT Just a discord.js v13 bot for my discord server. if you plan to use this bot for your server, dont. This i made this bot just for learning js

Jan 3, 2022

Skeleton for a discord.js v13 bot written in TS with Slash Command support.

Discord.js v13 Bot Skeleton/Core This repository is a template for creating a Discord bot using Discord.js v13 with Slash Command support. This projec

Nov 2, 2022

Discord.js bot v13. Russian bot

Nutella-bot Discord.js bot v13. Russian bot Бот создан в России, он набирал популярность среди многих серверов. Завоевал 42 тысячи пользователей, и бы

Jun 5, 2022
Owner
NoBoDy
NoBoDy
Easy-to-use , actively maintained discord bot written in dJS V13 with customizable features

Multi-purpose discord bot Found a bug? Notes There are some modules missing, you can still start the bot but there are some things within the source t

locus 7 Nov 28, 2022
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
This DJS ticket system with transcripts is fully configurable, you can change the transcripts channel, tickets channel, and more

This DJS ticket system with transcripts is fully configurable, you can change the transcripts channel, tickets channel, and more! This command uses embeds, and buttons.

LunarCodes 6 Oct 18, 2022
v13 butonlu + mongodb'li register botudur. Sadece Merakımdan V13 uğraştım, devamı geleceğini düşünmüyorum. İstek üzerine yapılmıştır

Testleri yapılmıştır. Hiçbir hatası bulunmamaktadır. Starlarınızı bekliyorum. Yapmanız gereken adımlar settings.json dosyasının içindeki idleri doldur

null 1 Dec 20, 2022
djs-helper is a JavaScript library that helps you to develop your own Discord Bot

djs-helper is a JavaScript library that helps you to develop your own Discord Bot, Still under development, more features will be added in the future

Amir. 3 Oct 3, 2022
Yet another advanced djs slash command handler made by dano with ❤️

Advanced djs slash command handler Yet another advanced djs slash command handler made by dano with ❤️ Ultimate, Efficient, Slash command handler for

null 5 Nov 7, 2022
A complete framework to make a leveling system using discord.js v13

Discord Easy Leveling A complete framework to make a leveling system using discord.js v13 Why discord-easy-leveling? ✨ Beginner friendly ✍ Full custom

Retro 5 Sep 12, 2022
Tritan is a Discord.js bot that has many general-purpose features such as logging, moderation, image manipulation, music, and much more!

Tritan Bot Tritan Bot is a Discord Verified general purpose bot built with discord.js and express (yes, it has a dashboard included). Please read thro

Dylan J. 0 Jul 3, 2022
Tritan is a Discord.js bot that has many general-purpose features such as logging, moderation, image manipulation, music, and much more!

Tritan Bot Tritan Bot is a Discord Verified general purpose bot built with discord.js and express (yes, it has a dashboard included). Please read thro

Team Tritan 5 Nov 19, 2022
A simple Multi Guild Modmail Bot coded in v13 using the enmap Database Working on any host, like repl.it or vps! Its fast and working bug free + Security options!

Multiguild-Modmail A simple Multi Guild Modmail Bot coded in v13 using the enmap Database Working on any host, like repl.it or vps! Its fast and worki

Tomato6966 54 Oct 20, 2022