Giter Site home page Giter Site logo

automuteus / web Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 4.0 24.21 MB

The web dashboard of the AutoMuteUs Discord bot for Among Us.

Home Page: https://automute.us

JavaScript 0.16% Dockerfile 1.56% TypeScript 76.28% SCSS 20.63% CSS 1.37%
web-dashboard leaderboards stats premium oauth2

web's Introduction

AutoMute.us Web Application

Getting Started

To run this application in development:

yarn install
yarn dev

To run this application in production:

yarn install
yarn build
yarn start <PORT> # e.g. yarn start 8080

Environment Setup

To properly run this application, you need the following services and files:

  • A PostgreSQL database with the schema defined in prisma/schema.prisma (TODO: have an .sql structure file here)
  • A dot-env file configured in the root folder as .env containing the variables as outlined in .env.sample:
# JWT Secret
SECRET=

# NextAuth route base(s)
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_URL_INTERNAL=http://localhost:3000
NEXTAUTH_SECRET=

# Discord oAuth
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=

# Prisma DB connections
DATABASE_URL=
#SHADOW_DATABASE_URL=

# AutoMuteUs stats
GALACTUS_API=http://localhost:5000/bot/info

Additionally, you'll need to set up a valid callback URL in your Discord application registration (https://discord.com/developers) under "OAuth2" settings to match the pattern

<NEXTAUTH_URL>/api/auth/callback/discord

Deployment

This application is deployed using Docker. To build and run this application:

docker build -t automuteus .
docker run --name automuteus -dp <PORT>:3000 automuteus:latest

You can stop and remove this application container with

docker stop automuteus
docker rm automuteus

Note: The name automuteus in the above commands can be substituted with any name you prefer.

Planned Features

General Features

  • Discord sign-in: sign in to the site with Discord OAuth2.

Web Dashboard

The web dashboard will allow configuration and control of instances of the hosted AutoMuteUs bot.

  • Discord server invites: invite bot with specific link to servers that the user has admin permissions on
  • Premium status checking: check to see if a guild you're in has premium.
  • Settings management: edit bot configuration online and have it save, per server
    • Shareable settings: add ability to publish popular bot configs and share them
  • Stats and leaderboards: view server stats and leaderboards in a more user-friendly manner than Discord embeds.
    • Raw stats exports: export files (permissively) of game data so that people can create their own visualizations and metrics.

web's People

Contributors

denverquane avatar kurokobo avatar ryano81 avatar wolfhound905 avatar yoshirahh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

web's Issues

The header for the sub-commands under `settings` is not correct

Thanks for your daily support :)

It's not so big deal, but I think the header for the sub-command under settings seems not correct.
For example they should start with /settings admin-user-ids instead of /admin-user-ids.

image

Seems following parent is not inherited to any sub-commands under settings.

parent={{ command: "settings" }}

It's a minor detail, but I created an issue just in case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.