Need help picking a movie? Invite MattBot to join your Discord server!
MattBot is a Discord bot whose sole purpose is to recommend movies starring Matthew McConaughey. It offers two slash commands:
ping
: Make sure that MattBot is awakemovie
: Recommend a movie starring Matthew McConaughey
MattBot is a simple TypeScript app. It uses slash-create
and runs on Azure Functions.
The fastest way to test your changes is to run MattBot locally, forward its port, and update MattBot Dev
's interactions endpoint URL to that forwarded port.
cp .example.env .env
- Visit
MattBot Dev
on the Discord Developer Portal - Update
.env
withMattBot Dev
's information npm install
npm run dev
- Forward the port
- Set
MattBot Dev
's endpoint URL on the Discord Developer Portal
You can use mattbot-dev
to test your changes in a real Azure Functions app.
az login
npm install
npm run publish:dev
- Set
MattBot Dev
's endpoint URL tohttps://mattbot-dev.azurewebsites.net/api/interaction
on the Discord Developer Portal
You can use the Release MattBot
action to trigger a new production release. This action uses an Azure service principal to deploy mattbot
globally for all Discord users.