Commit Graph

46 Commits

Author SHA1 Message Date
topkecleon
38b4b68ba2 hearthstone.lua: Temporary fix. API does not play well with lua-sec, so using curl for now.
bindings.lua: Added support for kickChatMember and unbanChatMember methods.

utilties.lua: enrich_message() will rename the new_chat_member and left_chat_member values to the names
expected by plugins: new_chat_participant and left_chat_participant.

bot.lua: Removed migration code. Rewrite soon.

eightball.lua: Bugfix.
2016-04-12 05:24:56 -04:00
topkecleon
8fe72b3a64 administration.lua: 1.8. See file for changes. 2016-04-05 03:42:16 -04:00
JuanPotato
bcb2fc630d support replied message's captions instead of text 2016-04-03 15:18:25 -04:00
topkecleon
c74d1913a4 New method to escape markdown.
Improvements to patterns.lua.
2016-04-02 19:20:28 -04:00
topkecleon
b5ea8f3bbe bunch of stuff
administration.lua: everything's better; automatic migration.
database.usernames -> database.users. View with /me.
Nicks and lastfm usernames moved to database.users; auto migrate.
2016-03-22 06:16:26 -04:00
topkecleon
212846edb8 crap 2016-03-08 08:41:45 -05:00
topkecleon
ad3a16a814 Changed database name to the bot's name (rather than generic
"otouto"). You must manually rename your db file.
2016-03-08 08:15:48 -05:00
topkecleon
353d6eb807 cron jobs will now occur every sixty seconds. Maybe configurable
in the future.
Updated readme from manual. Manual will now be generated from
 readme.
2016-02-25 09:05:08 -05:00
topkecleon
dcc51d4f05 administration.lua: banlist is merged with global blacklist.
Merge will commence automatically and users should not notice it,
except that all blacklisted users are now globally banned and
vice-versa.
2016-02-23 06:15:48 -05:00
topkecleon
971b27335b db now saves every minute. Will make it configurable in future. 2016-02-22 18:07:16 -05:00
topkecleon
64160e700c Save the database way less often. 2016-02-22 16:46:26 -05:00
topkecleon
02a7d411fa Database is now centralized. All data is stored in tables within the database table,
which is automatically saved. Please be sure to always stop the bot with /halt to
prevent data loss.
2016-02-21 14:28:40 -05:00
topkecleon
03ce363c98 Switched from dkjson to cjson. lua-cjson is now a dependency.
administration.lua now saves its database every minute. This will be changed in a
future update.
2016-02-21 00:21:48 -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
topkecleon
b1b4a0be6c Nothing important.
Old local changes I never committed.
2016-02-14 03:47:02 -05: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
c827004bc7 fixed default config
rewrote get_word()
2015-12-13 16:31:22 -05:00
topkecleon
80f363de44 markdown support in messages
other changes & improvements
2015-12-05 09:30:52 -05:00
topkecleon
c5c3660de4 updated readme, changed some things 2015-12-04 09:56:48 -05:00
topkecleon
4bd0a72b5a For photo messages, bot will look for commands in the caption if available.
Fixed bug in chatter.lua where the bot will attempt to reply to photo messages.
2015-11-29 06:41:53 -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
topkecleon
9a7f166fd4 removed spaghetti code
updated version number
2015-09-24 19:44:43 -04:00
topkecleon
a4b0a7ebed added youtube (@TiagoDanin)
improved cron
2015-09-23 14:48:54 -04:00
topkecleon
75179e41c2 removed debugging code 2015-09-23 09:11:30 -04:00
topkecleon
4c6be5b899 minor changes 2015-09-21 19:34:02 -04:00
topkecleon
2d2933c8e5 add hearthstone plugin
in case of flood control, bot will now answer in PM if possible
2015-09-07 11:19:36 -04:00
topkecleon
60570e90f3 added cron jobs for plugins
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.
2015-08-28 23:15:01 -07:00
topkecleon
fe95fef505 version number update 2015-08-18 06:00:49 -04:00
topkecleon
4c72543315 no typing by default
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
2015-08-18 05:55:25 -04:00
topkecleon
1a0b61814e blacklist now in json file
various bugfixes
2015-08-08 20:53:46 -04:00
topkecleon
566086c64d added error handling
added last.fm plugin
added currency conversion plugin
fixed loop bug in gImages
echo no longer replies
added blacklist feature
more flexible moderation.lua commands
2015-08-04 16:11:55 -04:00
topkecleon
89e7906d03 updated version number 2015-07-28 18:15:24 -04:00
topkecleon
3a3a45d44e added Liberbot moderation capability
see comment in moderation.lua for info

added capability to create a json "database"
2015-07-28 18:13:46 -04:00
topkecleon
02d30f8451 minor changes 2015-07-19 16:46:06 -04:00
topkecleon
a1a4978a1b config, locale in lua
personality.lua -> interactions.lua
innumerable improvements
2015-07-15 02:15:23 -04:00
topkecleon
42cda22ab6 much improved personality.lua interactions
partial localization support
2015-07-11 04:31:29 -04:00
topkecleon
294ca0319a updated readme 2015-07-10 23:43:30 -04:00
dupie
8c9a5ae7ba welcome/bye on join/leave group
function to alter msg before checking against plugin triggers
2015-07-10 03:52:22 -04:00
dupie
79f8f9feb2 update 2015-07-08 04:03:27 -04:00
dupie
df1d6a206f dkjson now required and included
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
2015-07-07 23:24:40 -04:00
dupie
6402cc241d bugfixes 2015-07-04 10:55:18 -04:00
dupie
46fa425f5a bugfixes 2015-07-04 10:54:41 -04:00
dupie
ad7d93a05f fixed reminders 2015-07-02 18:56:49 -04:00
dupie
236c8bebdb initial commie bastard 2015-07-02 18:15:52 -04:00