From 36c0e56fc947ef68ad776c5538382b79d09fc8f2 Mon Sep 17 00:00:00 2001 From: yago Date: Thu, 25 Sep 2014 23:39:35 +0200 Subject: [PATCH] updated command img info --- README.md | 3 ++- bot/bot.lua | 1 + tg | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9186742..8a3a35b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ telegram-bot 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 +sudo apt-get install lua-socket libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev fortune curl git submodule update --init --recursive cd tg ./configure @@ -25,5 +25,6 @@ Command list !fortune : print a random adage !weather [city] : weather in that city (Madrid if not city) !9gag : send random image from 9gag +!img (text) : search image with Google API and sends it !uc3m : fortunes from Universidad Carlos III ``` diff --git a/bot/bot.lua b/bot/bot.lua index 5d9d426..eccd4d6 100644 --- a/bot/bot.lua +++ b/bot/bot.lua @@ -179,6 +179,7 @@ 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 +!img (text) : search image with Google API and sends it !uc3m : fortunes from Universidad Carlos III]] send_msg(receiver, text, ok_cb, false) return diff --git a/tg b/tg index ddcd8ad..ce61ada 160000 --- a/tg +++ b/tg @@ -1 +1 @@ -Subproject commit ddcd8ad44eab32ac977601be0a8e9c8be9420777 +Subproject commit ce61adac12fc18e2f5c8165e10f6ba91e1cb0928