SigmacellHQ / msgroom-custom-server

A custom Windows 96 MsgRoom Server by nolanwhy & Kelbaz
Other
5 stars 4 forks source link
css css3 html html5 javascript msgroom socket-io socket-io-client socketio socketio-client w96 windows96

MsgRoom Custom Server

A custom Windows 96 MsgRoom Server

Made by nolanwhy and Kelbaz. Feel free to make pull requests!

How to use

# Step 1: Clone the repository
git clone https://github.com/SigmacellHQ/msgroom-custom-server.git

# Step 2: Go to the folder
cd msgroom-custom-server

# Step 3: Install dependencies
npm install

# Step 4: Run the server
#:           <PORT>   <CLIENT UI>
npm run serve 4096 -- --client

# Step 5: Share with friends (optional)
#:        <PORT>
ngrok http 4096 # (*)

(*): You need an ngrok account, which you can set up here.

Done!

You successfully installed MsgRoom Custom Server!
On the terminal, you should see the Arguments, and the url to visit your custom server.

Thank you for using our custom server! ❤

CLI Options

How to add bots

This is up to the bot api owner to add, but if its like msgroom-orm, here's how to do it \ Your client should look like:

const client = new Client("TestBot", [ "!" ]);

Now, it's really easy, just add a new argument to Client with an object containing the arguments \ If you don't understand anything, just do it like this:

//                                                             <DOMAIN>   <PORT>
const client = new Client("TestBot", [ "!" ], { server: "wss://example.com:4096" });

Congrats! 🎉 Your bot should now work with MRCS!

How to give yourself staff and perform mod actions

  1. Go to .env and edit the ADMIN_SECRET value
  2. Go to /admin and put the admin secret
  3. Follow instructions

Alternative

  1. Go to your db file (db.json by default) and add your ID.
  2. You can execute /a help to get a list of every admin command.
  3. To ban a user, use /a ban or add the user's ID to database/banned.json.
  4. To kick a user, use /a disconnect.

How to give yourself staff, and do mod actions

Go to your db file (db.json by default) and add your key and ID. \ Then you can execute /a help to get every admin command. \ To ban, use /a ban or put the user's id in database/banned.json \ To kick, use /a disconnect.