Skip to content

Conversation

@lbartoletti
Copy link
Contributor

Implements a comprehensive slash command system inspired by Discord, adding fun interactions and useful utilities to the chat.

Features:

  • Fun text commands: /shrug, /tableflip, /lenny, /yolo
  • Random commands: /flip (coin flip), /roll (dice), /8ball (magic 8-ball)
  • /list command: displays all available commands with descriptions
  • Autocomplete: automatic command suggestions when typing

New files:

  • qchat/logic/slash_commands.py: Command handler system
  • docs/usage/slash_commands.md: User documentation

Modified:

  • qchat/gui/dck_qchat.py: Command interception

Technical details:

  • Extensible architecture for easy command additions
  • Comprehensive error handling

Examples:

  • /shrug → sends "¯_(ツ)_/¯"
  • /roll 2d20 → rolls 2 dice with 20 faces

This is not sponsored by :

image

Implements a comprehensive slash command system inspired by Discord,
adding fun interactions and useful utilities to the chat.

Features:
- Fun text commands: /shrug, /tableflip, /lenny, /yolo
- Random commands: /flip (coin flip), /roll (dice), /8ball (magic 8-ball)
- /list command: displays all available commands with descriptions
- Autocomplete: automatic command suggestions when typing

New files:
- qchat/logic/slash_commands.py: Command handler system
- docs/usage/slash_commands.md: User documentation

Modified:
- qchat/gui/dck_qchat.py: Command interception and weather layer creation

Technical details:
- Extensible architecture for easy command additions
- Comprehensive error handling

Examples:
- /shrug → sends "¯\_(ツ)_/¯"
- /roll 2d20 → rolls 2 dice with 20 faces
@lbartoletti lbartoletti requested a review from gounux November 17, 2025 19:17
@lbartoletti lbartoletti self-assigned this Nov 17, 2025
@github-actions github-actions bot added enhancement New feature or request UI labels Nov 17, 2025
Copy link
Member

@gounux gounux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lbartoletti 💯

First review round, did not check out locally to test it but will do it and try to review more deeply.

Co-authored-by: Guilhem Allaman <[email protected]>
Signed-off-by: Loïc Bartoletti <[email protected]>
Copy link
Member

@gounux gounux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @lbartoletti !

I could checkout and test, works like a charm, it's funny and opens the way to new commands ;)

Just a small point about the QCompleter, which sometimes avoids clearing the line edit input before sending the message.

Nothing blocking TBH, if you know how to fix that it'd be nice. But I believe that we can also merge as is, it's your call !

Copy link
Member

@gounux gounux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM, thanks and congrats for the first contribution @lbartoletti :)

Hoping we'll see you again around here in the future !

@gounux gounux merged commit e12ab1f into geotribu:main Nov 22, 2025
5 of 6 checks passed
@lbartoletti lbartoletti deleted the feature/slash_commands branch November 22, 2025 15:22
@Guts Guts mentioned this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants