updated version and readme

This commit is contained in:
yago 2014-10-10 15:25:01 +02:00
parent 06aa4ecfab
commit 33364b803e
2 changed files with 10 additions and 6 deletions

View File

@ -5,19 +5,19 @@ Bot for telegram with [tg](https://github.com/vysheng/tg).
```bash ```bash
sudo apt-get install lua-socket libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev fortune curl sudo apt-get install lua-socket libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev fortune curl
git clone https://github.com/yagop/telegram-bot.git && cd telegram-bot
git submodule update --init --recursive git submodule update --init --recursive
cd tg cd tg
./configure ./configure && make
make
../launch.sh ../launch.sh
``` ```
Command list Command list
``` ```
!help : print this help !help : print command list
!ping : bot sends pong !ping : bot sends pong
!sh (text) : send commands to bash (only privileged users) !sh (text) : send commands to bash (only privileged users)
!echo (text) : echo the msg !echo (text) : echo the msg
!version : version info !version : version info
!cpu : status (uname + top) !cpu : status (uname + top)
!fwd : forward msg !fwd : forward msg
@ -25,6 +25,8 @@ Command list
!fortune : print a random adage !fortune : print a random adage
!weather [city] : weather in that city (Madrid if not city) !weather [city] : weather in that city (Madrid if not city)
!9gag : send random image from 9gag !9gag : send random image from 9gag
!rae (word): Spanish dictionary
!eur : EURUSD market value
!img (text) : search image with Google API and sends it !img (text) : search image with Google API and sends it
!uc3m : fortunes from Universidad Carlos III !uc3m : fortunes from Universidad Carlos III
``` ```

View File

@ -2,7 +2,7 @@ http = require("socket.http")
URL = require("socket.url") URL = require("socket.url")
json = (loadfile "./bot/JSON.lua")() json = (loadfile "./bot/JSON.lua")()
VERSION = 'v0.4' VERSION = 'v0.5'
function on_msg_receive (msg) function on_msg_receive (msg)
@ -190,6 +190,8 @@ Puedes hacer una donación a la ONG que decidas y ayudar a otras personas.]]
!fortune : print a random adage !fortune : print a random adage
!weather [city] : weather in that city (Madrid if not city) !weather [city] : weather in that city (Madrid if not city)
!9gag : send random url image from 9gag !9gag : send random url image from 9gag
!rae (word): Spanish dictionary
!eur : EURUSD market value
!img (text) : search image with Google API and sends it !img (text) : search image with Google API and sends it
!uc3m : fortunes from Universidad Carlos III]] !uc3m : fortunes from Universidad Carlos III]]
send_msg(receiver, text, ok_cb, false) send_msg(receiver, text, ok_cb, false)