[Among Us] Launch automuteus v4.0.4 with docker-compose

automuteus is a handy bot that you can use when playing Among Us.

AutoMuteUs - GitHub

In this article, I will write a memo when starting the latest version with WSL2 on Windows.

environment

--Windows 10 build 2004

starting method

Create a BOT and get ** DISCORD_BOT_TOKEN ** while looking at the following article.

Self-hosted Super Convenient Discord bot “AutoMuteUs” for Among Us (Official Recommended Easy Version) | Aqua Ware Tweet Blog

Install Docker for Windows, WSL2, and docker-compose in advance. Check WSL 2 based engine.

image.png

Official docker-compose.yml didn't start, so I used the modified version below. An error occurred in ? Err, so I am fixing it.

version: "3"

services:
  automuteus:
    # Either:
    # - Use a prebuilt image
    image: denverquane/amongusdiscord:${AUTOMUTEUS_TAG:-4}
    # - Build image from local source
    #build: .
    # - Build image from github directly
    #build: http://github.com/denverquane/automuteus.git

    restart: always
    ports:
      # 5000 is the default service port
      # Format is HostPort:ContainerPort
      - ${SERVICE_PORT:-5000}:5000
    environment:
      # These are required and will fail if not present
      - DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
      - HOST=${GALACTUS_HOST}

      # These Variables are optional
      - DISCORD_BOT_TOKEN_2=${DISCORD_BOT_TOKEN_2:-}
      - EMOJI_GUILD_ID=${EMOJI_GUILD_ID:-}
      - CAPTURE_TIMEOUT=${CAPTURE_TIMEOUT:-}

      # Do **NOT** change this
      - REDIS_ADDR=${AUTOMUTEUS_REDIS_ADDR}
    depends_on:
      - redis
      - galactus
    volumes:
      - "bot-logs:/app/logs"
  galactus:
    ports:
      # See sample.env for details, but in general, match the GALACTUS_EXTERNAL_PORT w/ the GALACTUS_HOST's port
      - ${GALACTUS_EXTERNAL_PORT:-8123}:${BROKER_PORT}
    image: automuteus/galactus:${GALACTUS_TAG:-0.0.3}
    restart: always
    environment:
      # Do **NOT** change these
      - BROKER_PORT=${BROKER_PORT}
      - REDIS_ADDR=${GALACTUS_REDIS_ADDR}
      - GALACTUS_PORT=${GALACTUS_PORT}
    depends_on:
      - redis

  redis:
    image: redis:alpine
    restart: always
    volumes:
      - "redis-data:/data"

volumes:
  bot-logs:
  redis-data:

Create a new .env in the same directory as docker-compose.yml. The setting value is created based on the official sample.env.

AUTOMUTEUS_TAG=4
GALACTUS_TAG=0.0.3

# change these, but see comment below about HOST/PORT
DISCORD_BOT_TOKEN=[Give the acquired token here]
GALACTUS_HOST=
GALACTUS_EXTERNAL_PORT=

# GALACTUS_HOST can include the port or not. If you don't include the port,
# it will default to :80/:443 depending on http:// v https://
# **Make sure that GALACTUS_EXTERNAL_PORT matches the Port for the above host, UNLESS you use a reverse proxy/nginx!!!**
# Ex: if GALACTUS_HOST=http://localhost, then GALACTUS_EXTERNAL_PORT should be 80 (HTTP)
# Ex: if GALACTUS_HOST=https://localhost, then GALACTUS_EXTERNAL_PORT should be 443 (HTTPS)
# Ex: if GALACTUS_HOST=http://localhost:8123, then GALACTUS_EXTERNAL_PORT should be 8123
# If you use a reverse proxy, then GALACTUS_HOST should have the port of your reverse proxy, and it should proxy to the
# GALACTUS_EXTERNAL_PORT (ex 443 -> 8123)

# Optional, leave alone by default
DISCORD_BOT_TOKEN_2=
EMOJI_GUILD_ID=
CAPTURE_TIMEOUT=

# DO NOT change these unless you really know what you're doing
BROKER_PORT=8123
GALACTUS_REDIS_ADDR=redis:6379
AUTOMUTEUS_REDIS_ADDR=redis:6379
#unused in v4
GALACTUS_PORT=5858

Start the container with docker-compose up.

sudo docker-compose up

image.png

Download AmongUsCapture from the following and start it.

denverquane/amonguscapture: Capture of the local Among Us executable state

If you open the authentication URL and allow the bot, Discord's DM will ask the bot for permission to capture. If you click this link, the URL and code will be displayed in the morning capture and the capture will be permitted.

image.png

Enter .au new in the text channel you want the bot to respond to. This command will start a new game.

image.png

If the Username of Among Us and the Username of Discord do not match, you can associate Among Us with Discord by stamping the stamp corresponding to your character.

In order to link the voice channel and the automatic mute function of Discord Bot, link the channel and bot with the following command.

.au track <Channel name>

Other commands

You can see the command list with the following command.

.au help

image.png

The commands that were especially useful are:

** Disable mute for everyone **

It was convenient when playing while explaining how to play.

.au unmuteall

** Updated user mapping **

It was convenient for checking when the association between Among Us and Discord could not be done well.

.au refresh

** Language setting **

Japanese was incomplete but supported.

.au language ja

Reference URL

-AutoMuteUs (Among Us auto-mute bot) self-hosting --Qiita

Recommended Posts

[Among Us] Launch automuteus v4.0.4 with docker-compose
Launch Nginx + Spring Boot application with docker-compose
Launch Docker image with initial data injected with docker-compose
Launch MariaDB with Docker
Start k3s with docker-compose