This is a tool that adds the functionality to deliver screens in addition to the functionality of AutoMuteUs. It is implemented using Amazon Chime. It is designed to be deployed on Heroku, so Discord is not required.
It requires amonguscapture as well as the original AutoMuteUs.
- One of the game participants needs to have amonguscapture running.
- You will need an AWS account to use Amazon Chime.
- You will need a Heroku account to deploy to Heroku.
- You will need npm.
not yet
The following assumes that you are working on Linux or wsl. It only needs to be done by one of the players.
Create an access key and secret access key according to the following links and write them down.
Follow this official tutorial to install heroku cli
https://devcenter.heroku.com/articles/heroku-cli
- Clone this repository and move into a folder.
$ git clone https://github.com/w-okada/automute-us-with-chime.git
$ cd automute-us-with-chime/
- login heroku
$ heroku login
When you see the following message, press enter. After a while, your browser will open and you will see the heroku login screen.
heroku: Press any key to open up the browser to login or q to exit:
- Create Heroku App.
<APP NAME>
can be any name you like.
$ heroku create <APP NAME>
- Set the AWS access key and secret access key.
$ heroku config:set AWS_ACCESS_KEY_ID=<ACCESS KEY>
$ heroku config:set AWS_SECRET_ACCESS_KEY=<SECRET ACCESS KEY>
- Set a password for access.
<WEB SECRET>
can be any string.
$ heroku config:set APP_WEB_SECRET=<WEB SECRET>
- Setting other Heroku environment variables
$ heroku config:set APP_HEROKU_URL=$(heroku apps:info -s | grep web_url | cut -d= -f2)
-
Setup DB
Prepare the DB with the following command
$ heroku addons:create heroku-postgresql:hobby-dev
Create a DB table. Start the DB interpreter with the following command.
$ heroku pg:psql
Run the following two sql against the prompt "DATABASE=>"
CREATE TABLE rooms(room_name varchar(128) primary key, room_info varchar(20480));
CREATE TABLE accounts (username varchar(16) primary key, password varchar(2048));
Exit the DB interpreter with exit
exit
- Build
$ npm install
$ cd frontend && npm install && cd -
$ npm run build:all
- Deploy
$ git add . && git commit -m "update" && git push heroku master
- URL
$ heroku apps:info -s | grep web_url | cut -d= -f2 | xargs -I{} echo {}static/index.html
Accessing the displayed URL will launch the application.
-
Until you login the app.
Connect to the URL confirmed in the above deployment.
First, sign up using the sign up link at the bottom of the screen. Set up a username and password of your choice.
Next, enter the roomname, username, password, and web_secret. The room name should be the same for both participants (players and spectators). username and password should be the ones you used when you signed up. web_secret should be the one you set in the deployment process above.
After entering the information, click the sign in button to enter the application.
-
run amonguscapture
Download amonguscapture and run it.
You should also run among us.
Press the top left button of amonguscapture, enter the host and code, and press register. The host is the URL opened in the browser without the
static/index.html
at the end. Enter the room name as the code that you specified when you signed in with your browser.(※In some cases, amonguscapture may freeze. In this case, please kill amonguscapture from task manager and restart amonguscapture.)
In no event shall we be liable for any direct, indirect, consequential, or special damages arising out of the use or inability to use this software.
see ./LICENSE
Copyright (c) 2021 Wataru Okada wataru.okada@flect.co.jp