Skip to main content

Leave Feed

note

This code is optional - if you don't want AFK messages to be removed when users leave, just don't add it. The other components of the AFK system will work fine without it.

This code removes the AFK messages of users who have left the server, to keep your database usage low.

For more information about the AFK system, please see this page.

Trigger

This is not a custom command! Rather, it's meant to be added to your Leave Feed.

Code

{{/*
Clears the AFK status for users who leave the server.
See <https://yagpdb-cc.github.io/afk/leave-feed> for more information.

Author: jo3-l <https://github.com/jo3-l>
*/}}

{{ dbDel .User.ID "afk" }}
{{/* If you already have a leave message, you can put it here. */}}

Author

This code was written by @jo3-l.