Git Product home page Git Product logo

hey's Introduction

hey

hey is a robot implemented in Go with finite state machine that has potential to work as an automated secretary for you. It's currently not quite useful except letting others leave messages for you.

Installation

git clone git://github.com/songgao/hey.git

Usage

Edit config.go to meet your needs.

Build the robot

cd hey
go build

Bring up the robot

./hey

Ask your friend to contact your robot through openssl or telnet:

openssl s_client -no_ssl2 -connect 127.0.0.1:56789
telnet 127.0.0.1:56788
bash-4.2$ telnet localhost 56788
Trying ::1...
Connected to localhost.
Escape character is '^]'.



--- Hey, what's up? I'm Oag Gnos, Song Gao's robot.
--- What can I do for you? Type /help for help.
/help
--- Available commands:
--- /help              show this message
--- /msg [content]     leave Song Gao a message
/msg Hey
--- Sure. I'll let him know.
/msg How's going?
--- Sure. I'll let him know.
^]
telnet> Connection closed.
bash-4.2$ cat ~/.hey/logs/2013-05-03T15\:23\:17-05\:00-\[\:\:1\]\:63987
Message: Hey

Message: How's going?

* replace 127.0.0.1 with your actual IP address running the robot

Develop

fsm.go is where implements the finite state machine for processing messages. Implement more transitions to enrich functionalities of hey!

hey's People

Contributors

songgao avatar

Watchers

James Cloos avatar copper lee 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.