Skip to content

An implementation of the Among Us protocol in typescript.

License

Notifications You must be signed in to change notification settings

cybershard/amongus-protocol

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AmongUs-Protocol

Alt text

See the wiki for more information on the protocol.

Documentation is available for preview at http://thechimp.store/amongus-protocol/

An implementation of the Among Us protocol made in Typescript

  • Lightweight, 0 external dependencies.
  • Comprehensive coverage of the Among Us protocol.
  • Features full object and component system.
  • Easy to install & use.

Data gathered from

Install

With NPM: npm install --save amongus-protocol

Or clone with Git: git clone https://github.com/edqx/amongus-protocol

Example

import {
    AmongusClient,
    MasterServers,
    ColourID,
    HatID,
} from "amongus-protocol"

const server = MasterServers.EU[0];

const client = new AmongusClient({
    debug: false
});

await client.connect(server[0], server[1], "weakeyes");

const game = await client.join(process.argv[2]);

game.me.on("spawn", () => {
    game.me.setName("weakeyes");
    game.me.setColour(ColourID.Black);
    game.me.setHat(HatID.Plague);
});

Notes

Recommended node: v14+ Recommended TS: 4.0+

This repository is licensed under the MIT license, I am not responsible for anything you do using this library.

About

An implementation of the Among Us protocol in typescript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%