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.
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().
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".
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.
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!
added example plugin with documentation
added liberbot-compliant flood control
see Liberbot Support for details on getting compliant
added Kickass Torrent plugin
various bugfixes
all files seem to have been marked changed due to a shift in platform
I will do a clean clone and testing to ensure there is no issue.
various bugfixes
blacklisting support (blacklist.lua)
json file created automatically
users are blacklisted and unblacklisted via reply with /blacklist
nicknames support (nick.lua)
json file created automatically
users set nick by /nick
"people" section of config deprecated
moderation.lua improvements
administrators can now run mod commands
administrators are now listed with moderators
modlist improved to be smarter and look better
administrators can no longer be promoted to moderator
/hammer command for admins to perform realm-wide ban
cjson broke on latest update
a few small improvements
giphy public test key now included
bible plugin disabled by default because of no default key
much updated readme