Commit Graph

180 Commits

Author SHA1 Message Date
yago
9d52c6103c Support for encr_chat 2015-03-10 20:35:19 +01:00
yago
565ac4db40 v0.9.4 2015-03-04 23:45:11 +01:00
yago
9eb136b734 string.trim(s) is deprecated. Removed some spaces tabulations 2015-02-28 14:53:39 +01:00
yago
dab0c97bb6 Controll HTTP errors downloading images 2015-02-28 14:22:53 +01:00
yago
6a8be34956 HTTPS support for download_to_file 🔒 and string:starts(text) function 2015-02-28 14:09:25 +01:00
Yago
2e6c0f823d get_http_file_name if not content_type 2015-02-27 22:20:05 +01:00
Yago
73f3a21904 Update utils.lua 2015-02-27 21:36:50 +01:00
Priit Heinsaar
8fc40063b6 Added functionality to disable bot responding in disable channels 2015-02-27 15:40:48 +02:00
Priit Heinsaar
114c47382f Added functionality to disable bot responding in disable channels 2015-02-27 15:08:05 +02:00
Priit Heinsaar
edd8a50629 Added functionality to disable bot responding in disable channels 2015-02-27 15:06:12 +02:00
yago
72a94106f0 Merge branch 'method-test-blank-strings' of git://github.com/joenio/telegram-bot into joenio-method-test-blank-strings
Conflicts:
	bot/utils.lua
2015-02-22 22:37:20 +01:00
Joenio Costa
12aa89c0f1 new util method to test if string is blank 2015-02-21 23:31:30 -03:00
yago
130cb63bc5 updated version 2015-02-15 20:27:56 +01:00
yago
874d2b3bf9 added send_photo_from_url_callback function 2015-02-15 20:26:00 +01:00
yago
d069eaa809 updated version 2015-02-15 16:59:46 +01:00
yago
b391bb26d2 Improved how bot saves file extension 2015-02-15 16:52:08 +01:00
yago
2a5c466d4c Updated version 2015-02-15 14:37:43 +01:00
yago
fc5d204750 send_photo_from_url with callback 2015-02-15 14:37:23 +01:00
yago
ccb101560b Functions _send_document and send_document_from_url 2015-02-15 14:33:08 +01:00
yago
fa6f871342 updated version 2015-02-15 14:06:33 +01:00
yago
3df9d9c3f3 Functions for downloading and removing images async. The magic of cackbacks 🌟 2015-02-15 14:06:01 +01:00
yago
8ee6e8fd4f randomseed and print info when msg is rejected 2015-02-15 14:02:26 +01:00
yago
cc76046156 little changes 2015-02-15 12:00:33 +01:00
murcat
7ad83b335b Update bot.lua 2015-02-12 18:01:04 +00:00
yago
b610511095 updated version 2015-02-11 22:01:31 +01:00
yago
b977e8893c updated version 2015-02-04 23:06:52 +01:00
yago
021d58e62a Merge branch 'master' of git://github.com/but3k4/telegram-bot into but3k4-master 2015-02-02 22:42:59 +01:00
yago
d012c26fa6 starts function and little change on download_to_file 2015-02-02 22:22:05 +01:00
yago
737738a330 Trim string function 2015-01-31 16:46:59 +01:00
Yago
5b0cbc8072 Update version 2015-01-24 17:18:13 +01:00
yago
700f9e395e Enable more plugins by default 2015-01-24 17:07:00 +01:00
yago
4023ce7314 Enable more plugins by default 2015-01-24 16:56:32 +01:00
yago
e0f374b0db just a "," 2015-01-12 20:50:22 +01:00
yago
4872ebf3a5 CRON enabled. Mark msg as read when plugin matches. Updated version 2015-01-12 20:38:36 +01:00
yago
a780249142 help by default 2015-01-12 20:29:18 +01:00
yago
a0a3c771f8 config.lua inside data folder 2015-01-06 21:08:18 +01:00
yago
6c9efc902c data is the new res folder 2015-01-06 21:04:45 +01:00
yago
08e5a6c85f Checks if Twitter keys are empty 2015-01-06 14:10:26 +01:00
yago
ffa72bb22f do_lex infinite loop when "mutated = false" 2015-01-04 20:32:04 +01:00
yago
68fed25b49 can define if command is for privileged users only 2015-01-04 14:22:28 +01:00
yago
a889d410f1 serialize config with function 2015-01-01 16:06:24 +01:00
yago
ae0411ff25 save config on plugin enabled / disabled 2015-01-01 13:54:43 +01:00
yago
7591920a39 lexical replacements #38 2014-12-31 17:55:17 +01:00
yago
4774bf52e8 Multiple plugins in one message 2014-12-31 17:45:52 +01:00
yago
e811ea8a52 Enable / Diable plugins. libs folder. Generate config.lua with serpent, defined enabled_plugins. Plugins config, is inside them, not in config.lua. 2014-12-31 17:14:48 +01:00
David Muñoz
d40346b481 lexical replacements 2014-12-26 12:13:27 +01:00
yago
4fbfd8556f Updated JSON.lua 2014-12-24 19:19:16 +01:00
yago
d0a728e214 Initial test of plugins handler 2014-12-24 01:38:41 +01:00
yago
8ca367e83b Cron check google 2014-12-22 22:12:28 +01:00
yago
6bc4829788 load_plugins ouside 2014-12-22 22:05:46 +01:00
yago
3b67918a3e moved to utils is_sudo and get_name 2014-12-22 21:52:11 +01:00
yago
aa7ac75d31 fixes SIGNAL received error 2014-12-22 21:42:58 +01:00
Gökçen Eraslan
f3b522cde8 Try to follow 301/302 redirected URLs 2014-12-21 18:19:33 +01:00
Yago
8775f720a6 run_command 2014-12-17 13:01:34 +01:00
yago
8b04aefd45 Basic cron version 2014-12-16 21:50:19 +01:00
yago
198f700f86 Load only ".lua" plugin files 2014-12-16 20:06:04 +01:00
David Muñoz
acbb0ff03b small fix 2014-12-16 15:06:49 +01:00
David Muñoz
6bfc5247bf Reload ALL the plugins! 2014-12-16 15:05:42 +01:00
yago
5bbf754d73 Stats are private by Chat 2014-12-14 21:28:32 +01:00
yago
fe05645a39 Common functions moved to utils.lua. Indentation ... 2014-12-14 20:52:48 +01:00
Marcel van der Boom
7173c9831d Merge remote-tracking branch 'upstream/master' into nontext
* upstream/master:
  When text exceds 4096 chars, sends in multiple msgs
  resolves #18
  Update README.md
2014-12-14 16:45:11 +01:00
Marcel van der Boom
542dcd0483 Allow non-text changes to plugins
Implemented by:

- disabling the check for msg.text == nil
- setting the match text to [msg.media.type]
2014-12-14 16:42:49 +01:00
yago
fb138cabf3 When text exceds 4096 chars, sends in multiple msgs 2014-12-11 22:12:27 +01:00
yago
1c96903cc0 save user last name 2014-11-23 14:34:46 +01:00
yago
48b17bd5d0 values.json and users.json are created if not exists 2014-11-23 12:25:33 +01:00
yago
e2403a6e37 get, set, and stats persistence 2014-11-23 00:31:22 +01:00
yago
5657663c63 bug nebrija rae 2014-11-22 21:23:48 +01:00
yago
a1f5c7c9fa !stats command 2014-11-22 20:17:33 +01:00
yago
e19a0b7e6b Name not nil and unnecesary code 2014-11-22 19:59:55 +01:00
yago
a05d08b88b Merge branch 'master' of github.com:yagop/telegram-bot 2014-11-22 19:56:43 +01:00
yago
4d33d31328 Save number of msgs 2014-11-22 19:56:38 +01:00
Marcel van der Boom
aa4a09f13c Correct condition 2014-11-22 18:05:13 +01:00
Marcel van der Boom
221b368014 Remove temporary file with configurable delay 2014-11-22 18:01:14 +01:00
yago
33353bf644 Updated version 2014-11-22 16:02:43 +01:00
yago
e11b393643 Some code clean up 2014-11-22 15:05:54 +01:00
yago
8698082b3a config.json 2014-11-22 14:46:37 +01:00
yago
cbc55b0e09 renamed variable to google_api_key 2014-11-22 14:38:21 +01:00
Marcel van der Boom
e19c3adac4 Inital version of !time command
Syntax: !time [area]

Uses the google geocoding api to turn an area specification into a
lat/long coordinate pair, which is then used to get a timezone record to
determine the local time.

Usecase: when working in international groups it's convenient to know if
your co-worker is likely to be awake or asleep.
2014-11-22 10:29:05 +01:00
yago
729d03c7b6 Fixed some bugs 2014-11-17 21:55:25 +01:00
yago
f0058d81ce Merge branch 'master' of github.com:yagop/telegram-bot 2014-11-17 20:47:16 +01:00
yago
dde09a6017 Clean. Get and Set 2014-11-17 20:47:03 +01:00
Yago
7972b4b126 Update config.json 2014-11-14 13:40:32 +01:00
yago
bf82594034 Sends tweets 2014-11-05 20:51:20 +01:00
David Muñoz
ef12c413a7 Adding twitter plugin 2014-11-05 13:22:07 +01:00
David Muñoz
c6b99bec64 Loading plugins after configuration 2014-11-05 13:21:56 +01:00
yago
50d88007a0 Acciones HTTP llevadas a plugins 2014-11-04 22:39:14 +01:00
yago
7d8abde1d1 multiple patterns 2014-11-04 22:06:59 +01:00
yago
6b921e0f41 Merge branch 'master' of https://github.com/voiser/telegram-bot into voiser-master
Conflicts:
	bot/bot.lua
2014-11-04 20:58:19 +01:00
David Muñoz
f8161ca1cf Splitting commands in plugins 2014-11-04 16:09:08 +01:00
yago
89e344b0c8 help info 2014-11-03 23:44:21 +01:00
yago
1adac22f7f some !help info and gitignore 2014-11-03 23:41:44 +01:00
yago
286e0afc18 bug set 2014-11-03 22:41:04 +01:00
yago
c6ab143a7e save values with spaces 2014-11-03 22:36:15 +01:00
yago
bc6df5d683 lista de vars 2014-11-03 14:25:51 +01:00
yago
de2a69206f indentado 2014-11-03 11:54:03 +01:00
yago
8f5777ea18 get and set 2014-11-03 11:32:51 +01:00
yago
5f65d0bfdb get and set 2014-11-03 11:32:26 +01:00
yago
fcdb2a3542 \!eur [number] USD to EUR 2014-10-12 12:32:13 +02:00
yago
a285e45b07 renamed yt functions 2014-10-11 16:38:02 +02:00
yago
6201dd66dc fixed YT thumbnail 2014-10-11 16:27:37 +02:00