Yzbot Logging
Yzbot also supports advanced and customisable logging. This page tells you all about this and how to set it up.
What can yzbot log?
Yzbot has a fully-fledged, highly configurable logging system. It can log 17 different types of action, each one can be disabled or enabled, and there is the ability to stop yzbot from logging message activity in certain channels (message delete, edit, bulk delete) such as in secret, Admin only channels. Yzbot also supports attachment logging but it is DISABLED BY DEFAULT.
For anybody interested, a list of actions is below:
Member Join, Member Leave, Member Role Add, Member Role Remove, Avatar Change, New Role, Deleted Role, Role Colour Update, Nickname Change, Username Change, Channel Name Change, New Channel, Deleted Channel, Role Name Change, Message Delete, Message Delete Bulk, Message Edit.
Managing the channel
All you need to do for this is to set a channel for yzbot to perform its logging in. Doing this is as simple as typing ;logs set <#channel>
, replacing <#channel> with the channel that you want the logs to be sent to.

If you no longer want yzbot to perform its logging actions, just type ;logs remove
and the setting is deleted.

Attachment Logging
Please note - If you enable this I'm not responsible for any images/videos that yzbot logs, the onus is on you.
Many bots don't log deleted attachments - well let's fix that! Yzbot can log deleted images and videos (it does NOT and will not log text files, audio files or other types). To enable this, simply type ;logs toggleattachments
. It may take up to 30 seconds for attachments to start being logged but from then, all deleted images/videos will be logged.

Enabling/Disabling Certain Log Types
If there are some things that you believe are clogging up the logs, things you don't want to be logged, or otherwise, you can easily disable them (and reenable them if you change your mind later on)! All log types are enabled by default.
Before I go any further, I think it is a good idea to place here a reference list of all the log types, in a valid format for the enable/disable command:
memberjoin, memberleave, memberroleadd, memberroleremove, avatarchange, newrole, deletedrole, rolecolourupdate, nicknamechange, usernamechange, channelnamechange, newchannel, deletedchannel, rolenamechange, messagedelete, messagedeletebulk, messageedit
To disable a certain log type, just type ;logs disable <type>
. Like so:

People who change their profile picture will no longer spam your logs. (NOT me).
If you have a change of heart and you want to reenable avatar changing logs, do it like so: ;logs enable <type>
. While obvious, I feel I should point it out - you can only reenable log types that are disabled.

Hiding Channels From Logging
Is there a secret Admins only channel in your server whose message activity you don't want to be logged (delete, edit, bulk delete)? If so, you can stop yzbot from doing just that with the ;logs disablechannel <channel>
command:

Excellent! Never worry again about having conversations in Admin chat and having to worry about message edits and deletion. If you want message activity from Admin chat to be logged again though, just type ;logs enablechannel <channel>
.

Checking Disabled Logs
To check which log types are disabled, type ;logs listdisabled
.

If you want to see which channels are disabled from logging, use the ;config
command (note: It will show all settings for the server, so it is advised to do this in a private channel).
Last updated
Was this helpful?