Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 639 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 639 Bytes

A Discord Bot written with Spin

A discord bot replying to a slash command hello with "Hello from Spin!"

Setup:

  1. Create a bot
  2. Get an OAuth2 URL and have applications.commands enabled in scope
  3. Copy the bot token + public key to spin.toml
  4. Install just
  5. just spin-up
  6. ngrok http 3000
  7. Add https://[...id].ngrok.io/api/interactions under "Interactions Endpoint URL"
  8. Try /hello in your server

To Do:

  • Find a crate that can be used for types
  • Make a more ergonomic framework for creating commands and replying to interactions