aws-amplify / discord-bot

Discord bot for the AWS Amplify Discord Server
Apache License 2.0
25 stars 20 forks source link
aws-amplify discord-bot

AWS Amplify Discord Bot: "hey-amplify"

This repository contains the source code for the AWS Amplify Discord Server's bot!

Features

Getting Started

Pre-requisites:

Quick Start

  1. gh repo fork aws-amplify/discord-bot
  2. pnpm setup-dev
  3. Using .env.sample as a template, create a .env file and add necessary Discord environment values
  4. Run the application with pnpm dev
  5. As the server owner navigate to http://localhost:3000/, log in, and visit /admin to configure the instance

Setting up a Discord Bot

  1. (optional) create a new Discord server or create from the AWS Amplify Discord server template

  2. Register Discord bot

  3. 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
  4. Enable OAuth and add http://localhost:3000/api/auth/callback/discord as a redirect

  5. Make note of the OAuth secrets and populate .env

Required Bot Permissions

The URL noted in step 2 above has the permissions integer of 335812774976 which includes the following bot permissions:

bot permissions

Contributing

Learn how to get started with our contribution guide