๐ค Presence Settings
Customize how your TKI Auth bot appears in the Discord user list with dynamic status updates and activity messages.
Configuration Overviewโ
Presence:
Status: "idle"
Activity:
Enabled: true
Type: "Competing"
Intervall: 5
Texts:
- "{total-products} - Total Products"
- "{total-user} - Total Members"
# ... more status texts
Setting Detailsโ
Statusโ
Type: string
| Required: Yes | Default: "online"
Sets the bot's online status indicator that appears next to its name.
Status: "idle"
Available Options:
"online"
- ๐ข Green dot (Online)"idle"
- ๐ก Yellow dot (Away/Idle)"dnd"
- ๐ด Red dot (Do Not Disturb)"invisible"
- โซ No dot (Appears offline)
Activity Settingsโ
Enabledโ
Type: boolean
| Required: Yes | Default: true
Controls whether the bot displays activity status messages.
Activity:
Enabled: true # Shows activity status
Enabled: false # No activity status shown
Typeโ
Type: string
| Required: Yes | Default: "Playing"
The type of activity the bot displays.
Type: "Competing"
Available Types:
"Playing"
- ๐ฎ Playing [activity]"Competing"
- ๐ Competing in [activity]"Watching"
- ๐ Watching [activity]"Listening"
- ๐ต Listening to [activity]
Intervallโ
Type: number
| Required: Yes | Default: 5
How often (in seconds) the bot updates its activity status, cycling through the texts array.
Intervall: 5 # Updates every 5 seconds
Intervall: 30 # Updates every 30 seconds
Setting a very low interval (1-2 seconds) may cause rate limiting. We recommend 5-10 seconds for optimal performance.
Textsโ
Type: array
| Required: Yes
An array of status messages that the bot cycles through. Supports dynamic variables.
Texts:
- "{total-products} - Total Products"
- "{total-user} - Total Members"
- "{total-licenses} - Total Licenses"
- "{successful-requests} - Successful Requests"
Available Variablesโ
Use these variables in your status texts to display real-time information:
Variable | Description | Example Value |
---|---|---|
{total-channels} | Total channels in the server | 25 |
{total-members} | Total members including bots | 150 |
{total-user} | Total members excluding bots | 142 |
{total-products} | Total products in system | 8 |
{total-licenses} | Total licenses created | 1,234 |
{total-requests} | Total API requests made | 45,678 |
{successful-requests} | Successful API requests | 44,210 |
{rejected-requests} | Rejected API requests | 1,468 |
Example Configurationsโ
Gaming Themeโ
Presence:
Status: "dnd"
Activity:
Enabled: true
Type: "Playing"
Intervall: 8
Texts:
- "with {total-licenses} licenses"
- "Auth Guard v2.0"
- "{successful-requests} successful auths"
Professional Themeโ
Presence:
Status: "online"
Activity:
Enabled: true
Type: "Watching"
Intervall: 10
Texts:
- "{total-products} products"
- "{total-user} users"
- "system status: โ
"
- "{total-requests} total requests"
Competitive Themeโ
Presence:
Status: "idle"
Activity:
Enabled: true
Type: "Competing"
Intervall: 6
Texts:
- "License Authentication"
- "{successful-requests} successful validations"
- "TKI Auth Championship"
- "{total-licenses} active licenses"
Minimal Setupโ
Presence:
Status: "online"
Activity:
Enabled: true
Type: "Watching"
Intervall: 15
Texts:
- "TKI Auth System"
Advanced Examplesโ
Multi-Language Statusโ
Texts:
- "๐บ๐ธ {total-products} Products"
- "๐ฉ๐ช {total-licenses} Lizenzen"
- "๐ซ๐ท {total-user} Utilisateurs"
- "๐ช๐ธ {successful-requests} รxitos"
Emoji-Rich Statusโ
Texts:
- "๐ {total-licenses} Licenses Protected"
- "โก {successful-requests} Fast Auths"
- "๐ก๏ธ Security Level: Maximum"
- "๐ {total-requests} Total Requests"
- "๐ฅ {total-user} Active Users"
Time-Based Statusโ
Texts:
- "๐
Morning Auth: {successful-requests}"
- "โ๏ธ {total-products} Products Online"
- "๐ Night Guard: {total-licenses}"
- "โญ {total-user} Stars Online"
Troubleshootingโ
Activity Not Updatingโ
- Check that
Enabled
is set totrue
- Verify the interval is reasonable (5+ seconds)
- Ensure at least one text is provided in the array
Variables Not Workingโ
- Double-check variable spelling and formatting
- Make sure variables are wrapped in
{}
- Verify your database connection is working
Bot Appears Offlineโ
- Check the
Status
setting - If using
"invisible"
, the bot will appear offline - Verify the bot token and connection
Best Practicesโ
- Keep intervals reasonable - 5-15 seconds works well
- Limit text array size - 5-10 messages prevent repetition fatigue
- Use meaningful variables - Show relevant system statistics
- Test different types - Different activity types suit different bot purposes
- Consider your audience - Match the tone to your server's style