🤖 Meanings Bot - Commands Reference
📋 Overview
This document provides a comprehensive guide to all commands available for the Meanings Bot. Commands are divided into Public Commands (accessible to everyone) and Admin Commands (restricted to whitelisted users). All commands use the prefix ?
.
👥 Public Commands (Everyone)
Command | Description | Usage Example | Details/Response Example |
---|---|---|---|
?meaning [word] | Shows the meaning of a word/phrase | ?meaning sybau |
|
?list | Displays all available words | ?list |
|
?stats | Shows bot statistics and information | ?stats |
|
?ping | Displays the bot's latency | ?ping |
|
🔐 Admin Commands (Whitelisted Users Only)
Command | Description | Usage Example | Process/Details |
---|---|---|---|
?addmeaning | Opens a modal to add a new word | ?addmeaning |
|
?deletemeaning [word] | Initiates deletion of a word | ?deletemeaning sybau |
|
?yes | Confirms a pending word deletion | ?yes |
|
?no | Cancels a pending word deletion | ?no |
|
📊 Command Summary
Command | Access Level | Purpose |
---|---|---|
?meaning [word] | Everyone | Retrieve word definition |
?list | Everyone | View all available words |
?stats | Everyone | Display bot statistics |
?ping | Everyone | Check bot latency |
?addmeaning | Whitelisted | Add new word via modal |
?deletemeaning [word] | Whitelisted | Initiate word deletion |
?yes | Whitelisted | Confirm word deletion |
?no | Whitelisted | Cancel word deletion |
🛡️ Access Control
- Whitelisted Users: Only users with their Discord ID in the
WHITELISTED_USERS
list can use admin commands (?addmeaning
,?deletemeaning
,?yes
,?no
). - Error Handling: All commands include clear error messages and user guidance.
- Safety Features:
- Deletion requires confirmation with
?yes
. - Confirmation must occur in the same channel as the deletion request.
- Displays current meaning before deletion.
- Provides success/failure feedback.
- Deletion requires confirmation with
💡 Usage Tips
- For Users: Start with
?list
to explore available words, then use?meaning [word]
for details or?ping
to check bot responsiveness. - For Admins: Use the modal popup (
?addmeaning
) for an intuitive experience when adding words. - For Safety: Always double-check before confirming deletions with
?yes
.
🎯 Bot Prefix
All commands use the prefix: ?
Example: ?meaning
(correct) vs. meaning
or /meaning
(incorrect).
📝 Notes
- Ensure your Discord ID is added to
WHITELISTED_USERS
inbot.py
to access admin commands. - Keep your
.env
file secure with your Discord token. - Report issues or suggest new words to the bot owner for updates.