Skip to content

ecumene/discord_spin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages