updated version and readme
This commit is contained in:
parent
06aa4ecfab
commit
33364b803e
@ -5,16 +5,16 @@ Bot for telegram with [tg](https://github.com/vysheng/tg).
|
||||
|
||||
```bash
|
||||
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
|
||||
cd tg
|
||||
./configure
|
||||
make
|
||||
./configure && make
|
||||
../launch.sh
|
||||
```
|
||||
|
||||
Command list
|
||||
```
|
||||
!help : print this help
|
||||
!help : print command list
|
||||
!ping : bot sends pong
|
||||
!sh (text) : send commands to bash (only privileged users)
|
||||
!echo (text) : echo the msg
|
||||
@ -25,6 +25,8 @@ Command list
|
||||
!fortune : print a random adage
|
||||
!weather [city] : weather in that city (Madrid if not city)
|
||||
!9gag : send random image from 9gag
|
||||
!rae (word): Spanish dictionary
|
||||
!eur : EURUSD market value
|
||||
!img (text) : search image with Google API and sends it
|
||||
!uc3m : fortunes from Universidad Carlos III
|
||||
```
|
||||
|
@ -2,7 +2,7 @@ http = require("socket.http")
|
||||
URL = require("socket.url")
|
||||
json = (loadfile "./bot/JSON.lua")()
|
||||
|
||||
VERSION = 'v0.4'
|
||||
VERSION = 'v0.5'
|
||||
|
||||
|
||||
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
|
||||
!weather [city] : weather in that city (Madrid if not city)
|
||||
!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
|
||||
!uc3m : fortunes from Universidad Carlos III]]
|
||||
send_msg(receiver, text, ok_cb, false)
|
||||
|
Reference in New Issue
Block a user