Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

miraclx/talk.chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TALK.CHAT

TCP Chat server built on pure NodeJS. Source code for a software talk that didn't hold. Had to finish writing the code 😁

maintainability

Installing

From source:

git clone https://github.com/miraclx/talk.chat.git

Usage

cd talk.chat
node server.js

Connection

You can use anything that can keep a TCP connection

$ nc localhost 8888
What is your name? 

Features

Auto root

By default, starting the server automatically logs in the root user. Right there, the process's I/O is linked to the chat server. This user has administrative powers. You can also logout here to login elsewhere.

Direct private messages

To send direct messages, reference the user like so

@michael Hello

Personal Messages

To save personal messages, send a direct message to yourself

Administrator elevation

Admin users can perform certain operations not granted to other users

.makeadmin [user]
.revokeadmin [user]

Absence of explicit stating of user would automatically infer to carry out the operation on the user executing the command

Commands

  • .bye: Alias for .logout
  • .exit: Alias for .logout
  • .help: Alias for .commands
  • .list: List all users, blocked or not
  • .logout: Logout from the service
  • .commands: List all group commands
  • .block: Block a user from receiving or sending messages (admin only)
  • .unblock: Unblock a user if already blocked (admin only)
  • .makeadmin: Grant administrator permissions to the user (admin only)
  • .revokeadmin: Revoke administrator permissions to a user (admin only)
  • .shutdown: Shutdown the chat server (admin only)

License

Apache 2.0 © Miraculous Owonubi (@miraclx) <omiraculous@gmail.com>