medusaebot
medusaebot
A Discord bot written in Crystal that demonstrates:
- Slash commands (
/ping,/buttons) - Interactive message buttons
- Clean separation between interaction logic and Discord transport
Installation
- Install Crystal (
>= 1.20.0). - Install dependencies:
shards install
Usage
Set environment variables and run the bot:
export DISCORD_BOT_TOKEN="your-token"
export DISCORD_CLIENT_ID="your-application-client-id"
crystal run src/medusaebot.cr
The bot registers these global slash commands on startup:
/ping→ replies with Pong/buttons→ responds with two demo buttons
Development
Run tests:
crystal spec
Contributing
- Fork it
- Create your feature branch
- Commit your changes
- Push the branch
- Open a pull request
License
MIT
Repository
medusaebot
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- about 3 hours ago
- April 25, 2026
License
MIT License
Links
Synced at
Sat, 25 Apr 2026 11:03:25 GMT
Languages