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

  1. Install Crystal (>= 1.20.0).
  2. 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

  1. Fork it
  2. Create your feature branch
  3. Commit your changes
  4. Push the branch
  5. 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