Skip to content

Comments

Activity Types, Serbian Translation, Verify Command Customization & Embeds & More...#538

Open
MotikaCraft-TheJoshua wants to merge 8 commits intoNamelessMC:5from
MotikaCraft-TheJoshua:5
Open

Activity Types, Serbian Translation, Verify Command Customization & Embeds & More...#538
MotikaCraft-TheJoshua wants to merge 8 commits intoNamelessMC:5from
MotikaCraft-TheJoshua:5

Conversation

@MotikaCraft-TheJoshua
Copy link
Contributor

@MotikaCraft-TheJoshua MotikaCraft-TheJoshua commented Feb 1, 2026

General

  • Added support for STREAMING and CUSTOM activity types
  • Added BOT_ACTIVITY_URL environment variable for streaming activities (with fallback to default Twitch URL)
  • Updated documentation in README with configuration examples for all activity types
  • Fixed Containerfile ENV syntax (added = between key and value)

Environment Variables

New options for BOT_ACTIVITY_TYPE:

  • STREAMING - Shows streaming status with purple "LIVE" indicator (requires BOT_ACTIVITY_URL)
  • CUSTOM - Shows custom status message

Serbian translation

  • Added sr_RS.json with complete Serbian (Latin script) translations

/verify command customization

  • Added VERIFY_COMMAND_NAME environment variable to rename the /verify slash command
  • Falls back to verify if not set
  • Updated all docker-compose files with the new variable (commented out by default)

"already-linked" detection in /verify

  • Bot now checks if the Discord user is already linked before attempting token verification
  • Uses api.userByDiscordId() as a pre-check; if already linked, user gets verify_already_linked response immediately
  • If pre-check fails (e.g. website unreachable), verification proceeds normally — no regression

Embeds

  • All bot messages are now sent as Discord embeds (commands, DMs via SendDirectMessage, error responses)
  • Added EmbedUtil.java utility class with bot avatar and display name in the footer (dynamic, not hardcoded)
  • All command responses are ephemeral (deferred with deferReply(true) in CommandListener)
  • Consistent color (#2F3136) across all embeds
  • Exception debug messages in /configure remain as plain text code blocks intentionally

Command Descriptions

  • All command descriptions already loaded from language files via Language.Term.*_DESCRIPTION enum terms
  • Added newly added/missing description keys (falling back to English) to language files that were incomplete

All this was thoroughly tested.
From what I've tested (building/compiling, docker deploying, running), everything works correct.

Note: Newly added translation entries (messages and command descriptions) across all language files were machine-translated using Google Translate/AI. Native speakers are encouraged to submit corrections.

- Add support for CUSTOM activity type (custom status message)
- Add support for STREAMING activity type with optional BOT_ACTIVITY_URL
- Update README.md with comprehensive activity configuration documentation
- Include examples for all 6 supported activity types
- Add fallback to default Twitch URL if STREAMING selected without URL
- Change ENV declarations from legacy 'ENV key value' to 'ENV key=value'
- Fixes 3 Docker build warnings about LegacyKeyValueFormat
- No functional changes, purely formatting improvement
- Add sr_RS.json with Serbian translations (Latin script)
- Language is controlled by NamelessMC website settings
- All translations complete, JSON structure matches en_UK.json
- Build passing
…ection

- Allow /verify command name to be customized via VERIFY_COMMAND_NAME env variable
- Falls back to 'verify' if not set
- Fix: Check if Discord user is already linked before attempting verification
- Pre-check uses api.userByDiscordId() to detect existing links
- Update all docker-compose files with VERIFY_COMMAND_NAME (commented by default)
- Build and tests passing
…nslations

- Added missing description keys to 15 language files
- All 31 language files now have all 10 command description keys
@MotikaCraft-TheJoshua MotikaCraft-TheJoshua changed the title Enhanced Bot Activity Status Support Activity Types, Serbian Translation, Verify Command Customization & Embeds & More... Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant