Commit Graph

21 Commits

Author SHA1 Message Date
topkecleon
4111fac0cb added regex-like Lua patterns plugin 2016-02-23 15:50:42 -05:00
topkecleon
1b95a1e0c9 Some moderation output changes. May rework the plugin later. 2016-02-22 22:58:32 -05:00
Drew
f61eabf946 Merge pull request #33 from TiagoDanin/Yandex
Migrating to yandex (translate)
2016-02-20 18:38:06 -05:00
topkecleon
180cd6078a Added administration.lua.
Adds self-hosted, single-realm administrative functions to otouto.
Check out the README for a detailed description.

Also added msg.from.name, which is msg.from.first_name + msg.from.last_name (if it
exists), because I'm too lazy to build it each time.
Fixed a crash-causing bug (ironically) in the handle_exception() function.
2016-02-20 05:07:20 -05:00
Tiago Danin
358d2c0b8d Migrating to yandex (translate) 2016-02-13 16:37:59 -03:00
Tiago Danin
bf0a4da83c New API for Simsimi 2016-01-21 16:57:06 -03:00
topkecleon
81b67d0aa3 Fixed issue #16.
reactions.lua: commands can now be run with @username.
about.lua: No longer links otouto channel by default (that was an accident).
2016-01-16 23:57:25 -05:00
topkecleon
f2b243a47c "fixed" #17
about.lua: stops all forwarded messages
floodcontrol.lua: logs to config.log_chat else console
2016-01-14 23:08:49 -05:00
topkecleon
c94c8e3b4d minor improvements 2016-01-14 22:39:24 -05:00
topkecleon
4f78323db7 Changes to apod.lua:
- Now uses demo key if key is not configured.
 - Removed newlines in doc.
 - Removed some unused code.
2016-01-14 14:56:30 -05:00
Heitor P. de Bittencourt
be6ecc04e2 Added APOD plugin.
Gets Astronomy Picture of the Day, from NASA.
2016-01-14 21:38:26 +02:00
topkecleon
fe549add63 Better logging, new preview.lua plugin.
When an exception is caught, info will be printed to the config.log_chat or the console.
/preview will give an "unlinked" preview for the link.
youtube.lua now uses config.google_api_key.
youtube.lua now uses unlinked previews.
lastfm.lua gives more informative error messages.
New utility: handle_exception().
2016-01-13 13:00:17 -05:00
topkecleon
c50b1ca3fa Username cachine and various fixes.
Usernames seen by the bot are now cached in the $usernames table. To get the ID associated with a
username, use the resolve_username() function from utilities.lua.
The table_size() function in utilities.lua will tell you the number of items in a key/pair table.
about.lua no longer displays a link preview in the about message.
currency.lua now accepts decimal arguments for the amount.
luarun.lua now correctly displays "false" return values.
moderation.lua will no longer send "I do not administrate this group".
2016-01-12 05:22:28 -05:00
topkecleon
9070a44c8f Improved triggers for many plugins.
Redone README to match the website.
Bot now supports deep linking / start payloads.
lastfm.lua now notifies a user when his default username is saved.
antisquig is now part of moderation.lua.
2016-01-07 22:30:12 -05:00
topkecleon
88a506492b some improvements 2015-12-14 14:48:17 -05:00
topkecleon
c827004bc7 fixed default config
rewrote get_word()
2015-12-13 16:31:22 -05:00
topkecleon
c8a90c5c7f added attribution for antisquig 2015-12-10 11:34:20 -05:00
topkecleon
f89c3fae5e Added Google API/CSE key vars to config, minor changes to gImages.lua 2015-12-05 10:03:43 -05:00
topkecleon
80f363de44 markdown support in messages
other changes & improvements
2015-12-05 09:30:52 -05:00
topkecleon
9cbe4dd3c8 Small fix in default config. 2015-11-25 11:13:19 -05:00
topkecleon
cacfea1fa5 otouto v3 is out!
Everything reworked and rewritten.
Antisquig is now a plugin to work with moderation.lua.
The bot can now upload photos, stickers, and other files.
Return values in plugin functions to affect the bot's behavior.
All this and more!
2015-11-24 21:22:04 -05:00