-
Notifications
You must be signed in to change notification settings - Fork 125
Logging
CarlGroth edited this page Aug 10, 2018
·
9 revisions
Logging might seem daunting at first, but it's extremely straight forward. If you want basic logging, simple type !log channel <#channel>
and you're set. If you want the full experience with logging split into separate channels, simple type !log aio
and watch the bot create a category and five channels.
Name | Aliases | Args | Example | Usage |
---|---|---|---|---|
!log channel | -- | channel | !set log #bot_logs | Choose where the bot logs things to. Leave blank to clear the channel. |
!log | -- | [event] | !log channeldelete | See the bottom of the page for all the available events. If used without a subcommand, it displays the server's logging configuration. |
!log messagechannel | -- | [channel] | !log messagechannel #message-logs | Choose where the bot logs message events to. Leave blank to clear the channel. |
!log memberchannel | -- | [channel] | !log memberchannel #member-logs | Choose where the bot logs message events to. Leave blank to clear the channel. |
!log joinchannel | -- | [channel] | !log joinchannel #hello-bye | Choose where the bot logs members joining and leaving to. Leave blank to clear the channel. |
!log serverchannel | -- | [channel] | !log serverchannel #server-updates | Choose where the bot logs events relating to the server itself to. Leave blank to clear the channel. |
!log voicechannel | -- | [channel] | !log voicechannel #voice-snooping | Choose where the bot logs members joining and leaving voice channels to. Leave blank to clear the channel. |
!log ignore | -- | <channels and or members> | !log ignore @Carl#0001 #general #bilderberg | Ignores messages posted in these channels or posted by these members. |
!log unignore | -- | <channels and or members> | !log unignore @Carl#0001 | Unignores people ignored with !log ignore. |
!log prefix | !log ip | <prefix> | !log ip ! | Ignores message deletions and edits starting with this prefix |
!log removeprefix | !log up | <prefix> | !log up ? | Unignores what !log prefix does |
!log export | -- | -- | -- | Exports a number with the server's settings so that other servers can import them. |
!log import | !log custom | perms | !log import 215371 | Imports the number from !log export, toggling the exact settings they have. |
!log aio | -- | -- | -- | Creates a category and fills it with five channels, enables all logging events and splits the logging into the freshly created channels. |
Event | Associated logging | Value | Channel |
---|---|---|---|
delete | Deleted messages | 1 | messagechannel |
edit | Message edits | 2 | messagechannel |
purge | Bulk message deletion | 4 | messagechannel |
discord | Discord invites posted | 2097152 | messagechannel |
avatar | Avatar updates | 32 | memberchannel |
bans | Bans and unbans | 192 | memberchannel |
ban | Just bans | 64 | memberchannel |
unban | Just unbans | 128 | memberchannel |
join | Name or nickname updates | 256 | joinchannel |
leave | Name or nickname updates | 512 | joinchannel |
channels | Channel creations, updates and deletions | 7168 | serverchannel |
channelcreate | Channel creation | 1024 | serverchannel |
channelupdate | Channel updates | 2048 | serverchannel |
channeldelete | Channel deletion | 4096 | serverchannel |
rolecreate | Roles created | 65536 | serverchannel |
roleupdate | Updates to roles | 131072 | serverchannel |
roledelete | Roles deleted | 262144 | serverchannel |
allroles | Roles being created, updated or deleted | 458752 | serverchannel |
emoji | Emojis being created, updated or deleted | 1048576 | serverchannel |
server | Updates to the server itself | 524288 | serverchannel |
voicejoin | Members joining voice channels | 8192 | voicechannel |
voicemove | Members changing voice channels | 16384 | voicechannel |
voiceleave | Members leaving voice channels | 32768 | voicechannel |
voice | All voice events | 57344 | voicechannel |
everything | Every single event | 4194303 | depends |
nothing | Nothing! | 0 | -- |
default | Some messages and member events | 1019 | depends |
Logging with embeds