Giter Club home page Giter Club logo

chatroom's Introduction

Command-line based Chatroom

Usage

Launch Service

java Server
java Client

Chatting

General format

Format Example Feature
Text without any prefixes Hello! Broadcast a message
Text with one slash as prefix /login haha Command
Text with two slashes as prefix //hi Send preset message

Broadcast

<message>

Everyone in the chatroom will receive a message like:

<username> say to all: <message>

Login

/login <username>

Note:

  1. The username must be unique in a chatroom
  2. Whitespace is not allowed in a username
  3. All features are all unavailable before login

Private chat

/to <username> <message>

Send <message> to <username>.

Note:

  1. <username> will receive <yourname> say to you: <message>, you will receive You say to <username>: <message> if sending succeed.
  2. If <username> is not existed, you will received Can't find user <username>.

Chatting history

/history <begin_index> <end_index>

Note:

  1. begin_index and end_index is optional. If they are empty, all chatting history will be printed.

User list

/who

Display all online users.

Send preset messages

Preset Command Message
//hi Hi, everyone! I'm coming!
//smile There is a smile on <yourname>'s face

chatroom's People

Contributors

huangbiubiu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.