Logging
This guide explains how to configure and manage logging settings for your server using the provided commands.
Commands
Logs Setup
Parameters:
channel
: The channel where the logs will be sent.
Example:
Important:
Ensure the bot has the
Manage Webhooks
permission in the specified channel.Notes:
- A webhook named "Spooky Logs" will be created for logging.
- If a webhook already exists, it will be reused unless it is invalid.
Logs Status
Warnings:
- If logging is enabled but the channel cannot be found, reconfigure the log settings using /logs setup.
Notes:
This command helps verify if logging is set up correctly.
Logs Remove
Warnings:
- All log settings will be permanently deleted.
- If a webhook was created by the bot, it will also be deleted.
Notes:
This is useful for disabling logging entirely.
Configuration Details
Webhook Management
- The bot will create a webhook named "Spooky Logs" in the specified channel during setup.
- If an existing webhook is detected and it is valid, the bot will use it.
- If the existing webhook is invalid (missing token), it must be deleted manually before reattempting the setup.
Log Status
- The /logs status command will display whether logging is enabled and in which channel.
- If the channel is not found, the logs setup should be reconfigured.
Removing Logs
- The /logs remove command deletes the logging configuration.
- Any webhook associated with logging will also be deleted if it exists.
Permissions
Permissions Required:
- Bot:
Manage Webhooks
- User:
Manage Server
Ensure these permissions are granted to avoid errors during setup or management.
By following this guide, you can effectively manage logging settings to keep track of server activities.