This repository contains the source code for the AWS Amplify Discord Server's bot!
<category>-help
naming convention messages will automatically get converted into threads
GET /api/questions
)/admin mirror <repository>
accepts a REPOSITORY and posts the thread to GitHub Discussions/contribute
- accepts an Amplify project argument and returns the GitHub contribution URL/github
- accepts an Amplify project argument and returns the GitHub repository URL/giverole
- accepts a ROLE and USER argument to grant a role (NOTE: this command is disabled by default for @everyone
)/login
sends an ephemeral link to login to GitHub and link accounts/thread
- command suite for thread owners
/thread rename <title>
- allows thread owners to rename their threads/thread archive
- allows thread owners to optionally archive their thread/thread solved
- allows thread owners to mark their question (thread) as "solved", which changes prepended ?
with ✅/thread reopen
- allows thread owners to "reopen" their question (thread), which changes prepended ✅ with ?
Pre-requisites:
gh repo fork aws-amplify/discord-bot
pnpm setup-dev
.env.sample
as a template, create a .env
file and add necessary Discord environment valuespnpm dev
http://localhost:3000/
, log in, and visit /admin
to configure the instance(optional) create a new Discord server or create from the AWS Amplify Discord server template
Make note of the App ID to add the bot to your Discord server using the following URL
https://discord.com/api/oauth2/authorize?client_id=<app-id>&permissions=335812774976&scope=bot%20applications.commands
Enable OAuth and add http://localhost:3000/api/auth/callback/discord
as a redirect
Make note of the OAuth secrets and populate .env
The URL noted in step 2 above has the permissions integer of 335812774976
which includes the following bot permissions:
Learn how to get started with our contribution guide