This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/README.md

40 lines
1.1 KiB
Markdown
Raw Normal View History

2014-06-30 12:34:41 +02:00
telegram-bot
============
2014-10-11 12:34:51 +02:00
A telegram bot using https://github.com/vysheng/tg.
Installation
------------
* Requirements
2014-08-05 11:44:15 +02:00
```bash
2014-10-11 12:38:13 +02:00
# Tested on Ubuntu 14.04, for other OSs check out https://github.com/vysheng/tg#installation
2014-10-11 12:34:51 +02:00
$ sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev fortune curl luarocks
```
* Clone the repo & compile the telegram library
```bash
$ git clone https://github.com/yagop/telegram-bot --recursive && cd telegram-bot/tg
$ ./configure && make
$ cd .. && ./launch.sh # Will ask you for a telegram enabled number phone & confirmation code.
2014-08-05 11:44:15 +02:00
```
2014-06-30 13:00:30 +02:00
2014-08-06 01:19:31 +02:00
Command list
```
2014-10-10 15:25:01 +02:00
!help : print command list
!ping : bot sends pong
2014-08-06 01:19:31 +02:00
!sh (text) : send commands to bash (only privileged users)
2014-10-10 15:25:01 +02:00
!echo (text) : echo the msg
2014-08-06 01:19:31 +02:00
!version : version info
!cpu : status (uname + top)
!fwd : forward msg
!forni : send text to group Fornicio
!fortune : print a random adage
!weather [city] : weather in that city (Madrid if not city)
!9gag : send random image from 9gag
2014-10-10 15:25:01 +02:00
!rae (word): Spanish dictionary
!eur : EURUSD market value
2014-09-25 23:39:35 +02:00
!img (text) : search image with Google API and sends it
2014-08-06 01:19:31 +02:00
!uc3m : fortunes from Universidad Carlos III
```