Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 489 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 489 Bytes
  1. Create a file login.properties in this directory, with your credentials:
email=info@example.com
password=secret
  1. Compile the source code:
javac -cp ".:lib/*" com/stackexchange/toolbox/chat/MessagePoster.java
  1. Run the program, with two arguments: the ID of the room, and the message you want to post. The example below posts This is a test. in the Sandbox chatroom.
java -cp ".:lib/*" com.stackexchange.toolbox.chat.MessagePoster 1 "This is a test."