jgsawyers / Impostor

Automatic Discord muting for Among Us! No installs necessary, just enter the code, join the voice channel, and you're off!

Home Page:https://impostor.molenzwiebel.xyz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Impostor

Discord

This is the source code for the Discord bot and Among Us client that compromise Impostor. Note that Impostor is not intended for self-hosting (although it is theoretically possible), so if you want Impostor on your Discord server the easiest solution is to simply click here.

Demo

Demo Thumbnail

Components

This project consists of two components, creatively named bot and client. Bot is the Discord part written in TypeScript that handles all the logic around command handling, session management, member voice channel moving, etc. Client is a simple C# implementation of the Among Us networking protocol, just barely enough to connect to the lobby, fetch player data and emit events. Bot launches a client instance for every lobby, reading events from client through stdout.

Developing Bot

To get started with developing the bot, you'll need to install dependencies. First of all you need to have Node.js installed. After that, simply run npm/yarn install to get all the dependencies needed.

./node_modules/.bin/tsc -w will start a watching TypeScript compiler that will automatically compile the TypeScript source to JavaScript. After that, simply configure your .env by copying the template and filling in values, then run node dist/index.js to start the bot.

Note that you will also need a PostgreSQL database for running the bot.

Developing Client

For the client, be sure to clone the repository with submodules enabled, then simply open the solution in client/ to develop. You can also use the dotnet CLI to build the client, using dotnet build.

License

MIT

About

Automatic Discord muting for Among Us! No installs necessary, just enter the code, join the voice channel, and you're off!

https://impostor.molenzwiebel.xyz/


Languages

Language:TypeScript 62.4%Language:C# 35.2%Language:JavaScript 2.5%