├── .gitignore ├── .gitmodules ├── .travis.yml ├── LICENSE ├── README.md ├── bot ├── bot.lua └── utils.lua ├── data └── .gitkeep ├── etc └── telegram.conf ├── launch.sh ├── libs ├── JSON.lua ├── mimetype.lua └── redis.lua ├── patches └── disable-python-and-libjansson.patch └── plugins ├── 9gag.lua ├── anti-bot.lua ├── anti-flood.lua ├── banhammer.lua ├── boobs.lua ├── btc.lua ├── bugzilla.lua ├── calculator.lua ├── channels.lua ├── chuck_norris.lua ├── danbooru.lua ├── dogify.lua ├── download_media.lua ├── echo.lua ├── eur.lua ├── expand.lua ├── face.lua ├── fortunes_uc3m.lua ├── get.lua ├── giphy.lua ├── gnuplot.lua ├── google.lua ├── gps.lua ├── hackernews.lua ├── hello.lua ├── help.lua ├── id.lua ├── images.lua ├── imdb.lua ├── img_google.lua ├── invite.lua ├── inviteme.lua ├── isX.lua ├── isup.lua ├── kickme.lua ├── location.lua ├── lyrics.lua ├── magic8ball.lua ├── media.lua ├── meme.lua ├── minecraft.lua ├── pili.lua ├── plugins.lua ├── pokedex.lua ├── qr.lua ├── quotes.lua ├── rae.lua ├── remind.lua ├── roll.lua ├── rss.lua ├── search_youtube.lua ├── service_entergroup.lua ├── service_template.lua ├── set.lua ├── stats.lua ├── steam.lua ├── tex.lua ├── time.lua ├── torrent_search.lua ├── translate.lua ├── trivia.lua ├── tweet.lua ├── twitter.lua ├── twitter_send.lua ├── version.lua ├── vote.lua ├── weather.lua ├── webshot.lua ├── wiki.lua ├── xkcd.lua ├── yoda.lua └── youtube.lua /.gitignore: -------------------------------------------------------------------------------- 1 | res/ 2 | data/ 3 | .luarocks -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "tg"] 2 | path = tg 3 | url = https://github.com/vysheng/tg 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: erlang 2 | 3 | before_install: 4 | - sudo apt-get update -qq 5 | - sudo apt-get install -qq libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev make unzip git libjansson-dev python2.7-dev 6 | - ./launch.sh install 7 | 8 | script: 9 | - luac -p bot/*.lua 10 | - luac -p plugins/*.lua 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | :warning: UNMAINTAINED / DEPRECATED :warning: 3 | ============ 4 | This proyect is no longer active since [Telegram Bot API](https://core.telegram.org/bots/api/) creation. It's better using the API rather than telegram-bot, almost every feature on Telegram-cli is available on API. You can use [node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api) Node.js module if you want. Or search your favourite one [here](https://www.reddit.com/r/TelegramBots/comments/4ly273/updated_collection_of_api_wrappers/). 5 | 6 | 7 | telegram-bot 8 | ============ 9 | 10 | [](https://yago.me/tg-bot) [](https://telegram.me/Yago_Perez) [](https://gitter.im/yagop/telegram-bot) 11 | [](https://www.icrc.org/ "Donate to Red Cross Society") 12 | 13 | A Telegram Bot based on plugins using [tg](https://github.com/vysheng/tg). 14 | 15 | Multimedia 16 | ---------- 17 | - When user sends image (png, jpg, jpeg) URL download and send it to origin. 18 | - When user sends media (gif, mp4, pdf, etc.) URL download and send it to origin. 19 | - When user sends twitter URL, send text and images to origin. Requires OAuth Key. 20 | - When user sends YouTube URL, send to origin video image. 21 | 22 |    23 | 24 | Bot Commands 25 | ------------ 26 |
Name | 30 |Description | 31 |Usage | 32 |
9gag.lua | 37 |9GAG for telegram | 38 |!9gag: Send random image from 9gag | 39 |
boobs.lua | 42 |Gets a random boobs or butts pic | 43 |!boobs: Get a boobs NSFW image. :underage: !butts: Get a butts NSFW image. :underage: |
44 |
btc.lua | 47 |Bitcoin global average market value (in EUR or USD) | 48 |!btc [EUR|USD] [amount] | 49 |
bugzilla.lua | 52 |Lookup bugzilla status update | 53 |/bot bugzilla [bug number] | 54 |
calculator.lua | 57 |Calculate math expressions with mathjs API | 58 |!calc [expression]: evaluates the expression and sends the result. | 59 |
channels.lua | 62 |Plugin to manage channels. Enable or disable channel. | 63 |!channel enable: enable current channel !channel disable: disable current channel |
64 |
danbooru.lua | 67 |Gets a random fresh or popular image from Danbooru | 68 |!danbooru - gets a random fresh image from Danbooru :underage: !danboorud - random daily popular image :underage: !danbooruw - random weekly popular image :underage: !danboorum - random monthly popular image :underage: |
69 |
dogify.lua | 72 |Create a doge image with words. | 73 |!dogify (words/or phrases/separated/by/slashes) - Create a doge image with the words. | 74 |
download_media.lua | 77 |When bot receives a media msg, download the media. | 78 |79 | |
echo.lua | 82 |Simplest plugin ever! | 83 |!echo [whatever]: echoes the msg | 84 |
eur.lua | 87 |Real-time EURUSD market price | 88 |!eur [USD] | 89 |
expand.lua | 92 |Expand a shorten URL to the original. | 93 |!expand [url] | 94 |
fortunes_uc3m.lua | 97 |Fortunes from Universidad Carlos III | 98 |!uc3m | 99 |
get.lua | 102 |Retrieves variables saved with !set | 103 |!get (value_name): Returns the value_name value. | 104 |
giphy.lua | 107 |GIFs from telegram with Giphy API | 108 |!gif (term): Search and sends GIF from Giphy. If no param, sends a trending GIF. !giphy (term): Search and sends GIF from Giphy. If no param, sends a trending GIF. |
109 |
gnuplot.lua | 112 |Gnuplot plugin | 113 |!gnuplot [single variable function]: Plot single variable function. | 114 |
google.lua | 117 |Searches Google and send results | 118 |!google [terms]: Searches Google and send results | 119 |
gps.lua | 122 |generates a map showing the given GPS coordinates | 123 |!gps latitude,longitude: generates a map showing the given GPS coordinates | 124 |
hackernews.lua | 127 |Show top 5 hacker news (ycombinator.com) | 128 |!hackernews | 129 |
hello.lua | 132 |Says hello to someone | 133 |say hello to [name] | 134 |
help.lua | 137 |Help plugin. Get info from other plugins. | 138 |!help: Show list of plugins. !help all: Show all commands for every plugin. !help [plugin name]: Commands for that plugin. |
139 |
id.lua | 142 |Know your id or the id of a chat members. | 143 |!id: Return your ID and the chat id if you are in one. !id(s) chat: Return the IDs of the chat members. |
144 |
images.lua | 147 |When user sends image URL (ends with png, jpg, jpeg) download and send it to origin. | 148 |149 | |
imdb.lua | 152 |IMDB plugin for Telegram | 153 |!imdb [movie] | 154 |
img_google.lua | 157 |Search image with Google API and sends it. | 158 |!img [term]: Random search an image with Google API. | 159 |
invite.lua | 162 |Invite other user to the chat group | 163 |!invite name [user_name] !invite id [user_id] |
164 |
isup.lua | 167 |Check if a website or server is up. | 168 |!isup [host]: Performs a HTTP request or Socket (ip:port) connection !isup cron [host]: Every 5mins check if host is up. (Requires privileged user) !isup cron delete [host]: Disable checking that host. |
169 |
location.lua | 172 |Gets information about a location, maplink and overview | 173 |!loc (location): Gets information about a location, maplink and overview | 174 |
magic8ball.lua | 177 |Magic 8Ball | 178 |!magic8ball | 179 |
media.lua | 182 |When user sends media URL (ends with gif, mp4, pdf, etc.) download and send it to origin. | 183 |184 | |
meme.lua | 187 |Generate a meme image with up and bottom texts. | 188 |
189 | !meme search (name): Return the name of the meme that match. !meme list: Return the link where you can see the memes. !meme listall: Return the list of all memes. Only admin can call it. !meme [name] - [text_up] - [text_down]: Generate a meme with the picture that match with that name with the texts provided. !meme [name] "[text_up]" "[text_down]": Generate a meme with the picture that match with that name with the texts provided. 190 | |
191 |
minecraft.lua | 194 |Searches Minecraft server and sends info | 195 |!mine [ip]: Searches Minecraft server on specified IP and sends info. Default port: 25565 !mine [ip] [port]: Searches Minecraft server on specified IP and port and sends info. |
196 |
pili.lua | 199 |Shorten an URL with pili.la service | 200 |!pili [url]: Short the url | 201 |
plugins.lua | 204 |Plugin to manage other plugins. Enable, disable or reload. | 205 |!plugins: list all plugins. !plugins enable [plugin]: enable plugin. !plugins disable [plugin]: disable plugin. !plugins disable [plugin] chat: disable plugin only this chat. !plugins reload: reloads all plugins. |
206 |
qr.lua | 209 |Given a text it returns a qr code | 210 |!qr [text] : returns a black and white qr code !qr "[background color]" "[data color]" [text] : returns a colored qr code (see !help qr to see how specify colors). |
211 |
quotes.lua | 214 |Quote plugin, you can create and retrieves random quotes | 215 |!addquote [msg] !quote |
216 |
rae.lua | 219 |Spanish dictionary | 220 |!rae [word]: Search that word in Spanish dictionary. | 221 |
roll.lua | 224 |Roll some dice! | 225 |
226 | !roll d
227 | |
233 |
rss.lua | 236 |Manage User/Chat RSS subscriptions. | 237 |!rss: Get the rss subscriptions. !rss subscribe (url): Subscribe to that url. !rss unsubscribe (id): Unsubscribe of that id. !rss sync: Sync the rss subscriptios now. Only sudo users can use this option. |
238 |
search_youtube.lua | 241 |Search video on YouTube and send it. | 242 |!youtube [term]: Search for a YouTube video and send it. | 243 |
set.lua | 246 |Plugin for saving values. get.lua plugin is necessary to retrieve them. | 247 |!set [value_name] [data]: Saves the data with the value_name name. | 248 |
stats.lua | 251 |Plugin to update user stats. | 252 |!stats: Returns a list of Username [telegram_id]: msg_num | 253 |
steam.lua | 256 |Grabs Steam info for Steam links. | 257 |258 | |
tex.lua | 261 |Convert LaTeX equation to image | 262 |!tex [equation]: Convert LaTeX equation to image | 263 |
time.lua | 266 |Displays the local time in an area | 267 |!time [area]: Displays the local time in that area | 268 |
translate.lua | 271 |Translate some text | 272 |!translate text. Translate the text to English. !translate target_lang text. !translate source,target text |
273 |
tweet.lua | 276 |Random tweet from user | 277 |!tweet id [id]: Get a random tweet from the user with that ID !tweet id [id] last: Get a random tweet from the user with that ID !tweet name [name]: Get a random tweet from the user with that name !tweet name [name] last: Get a random tweet from the user with that name |
278 |
twitter.lua | 281 |When user sends twitter URL, send text and images to origin. Requires OAuth Key. | 282 |283 | |
twitter_send.lua | 286 |Sends a tweet | 287 |!tw [text]: Sends the Tweet with the configured account. | 288 |
version.lua | 291 |Shows bot version 292 | | !version: Shows bot version | 293 |
vote.lua | 296 |Plugin for voting in groups. | 297 |!voting reset: Reset all the votes. !vote [number]: Cast the vote. !voting stats: Shows the statistics of voting. |
298 |
weather.lua | 301 |weather in that city (Madrid is default) | 302 |!weather (city) | 303 |
webshot.lua | 306 |Take an screenshot of a web. | 307 |!webshot [url] | 308 |
wiki.lua | 311 |Searches Wikipedia and send results | 312 |!wiki [terms]: Searches wiki and send results !wiki_set [wiki]: sets the wikimedia site for this chat !wiki_get: gets the current wikimedia site |
313 |
xkcd.lua | 316 |Send comic images from xkcd | 317 |!xkcd (id): Send an xkcd image and title. If not id, send a random one |
318 |
youtube.lua | 321 |Sends YouTube info and image. | 322 |323 | |