A command-line interface for Discord with a modern terminal UI built with Python.

- 🎯 Real-time messaging - Send and receive Discord messages in terminal
- 📱 Channel management - List, join, and switch between channels
- 💬 Message history - View last 10 messages when joining channels
- 🎨 Modern UI - Clean terminal interface with colors and formatting
- ⌨️ Keyboard shortcuts - Efficient navigation and controls
- 🔗 Mention support - Proper handling of Discord mentions
- 📎 Attachment detection - Display image attachments and links
- Python 3.8 or higher
- Discord Bot Token
-
Clone the repository:
git clone https://github.com/PabloPoder/DiscordCLI.git cd DiscordCLI -
Install dependencies:
pip install -r requirements.txt
Or using modern Python packaging:
pip install . -
Configure environment: Create a
.envfile in the root directory:BOT_TOKEN=your_discord_bot_token_here
-
Run the application:
python main.py
/list- List available channels/join <channel_number>- Join a specific channel/join all- Show messages from all channels/clear- Clear the screen/help- Show help menu/send <message>- Send a message (or just type directly)/exit- Quit the application
Ctrl+Up- Focus on message areaCtrl+Down- Focus on input fieldEnter- Send message or execute commandEscape- Exit application
You can send messages directly without using the /send command:
- Simply type your message and press Enter
- The message will be sent to the currently selected channel
DiscordCLI/
├── main.py # Application entry point
├── discord/
│ └── bot.py # Discord client and event
├── ui/
│ ├── controller.py # UI controller and command
│ ├── layout.py # Terminal UI layout
│ ├── keybindings.py # Keyboard shortcuts
│ ├── colors.py # Color scheme configuration
│ └── filters.py # Terminal size filters
├── utils/
│ ├── apikeys.py # Environment variable
│ ├── services.py # Message formatting
│ ├── channels.py # Channel configuration
│ └── ascii_art.py # ASCII art for UI
└── requirements.txt # Python dependencies
- Go to Discord Developer Portal
- Create a new application
- Go to "Bot" section
- Create a bot and copy the token
- Add the token to your
.envfile
Make sure your bot has the following permissions:
- Read Messages
- Send Messages
- Read Message History
- View Channels
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License.
CoolPP - Version 1.0
欢迎体验迪斯科德命令行界面 (Welcome to Discord CLI Experience)