Commit Graph

23 Commits

Author SHA1 Message Date
Brayden Banks
bb8b8b9c64 Moved utilities.CMD_PAT to config.cmd_pat. 2016-06-06 20:22:58 -07:00
Brayden Banks
ed6b536a46 Fully use utilities.CMD_PAT (née INVOCATION_PATTERN). 2016-06-06 20:21:42 -07:00
topkecleon
725261fcf7 Version 3.8
Relicense to AGPLv3, with consent of contributors.
bindings.lua completely rewritten. Shift to multipart-post.
Updated readme.
New plugins: bing.lua, channel.lua.
Removed plugins: floodcontrol.lua, librefm.lua.
luarun.lua: Will now serialize returned tables. Aliased "/return" to "/lua return".
2016-05-29 13:08:39 -04:00
topkecleon
64621a640e I guess there were more changes last commit.
utilities change should make them work.
2016-05-20 03:38:43 -04:00
topkecleon
8dd43e6f37 administration.lua: 1.9 - Added flag antihammer. Groups with
antihammer enabled will not be affected by global bans. However,
 users who are hammer'd from an antihammer group will also be
 banned locally. Bot will now also attempt to kick via bot API
 before using tg. Added autobanning after (default) 3 autokicks.
 Threshold onfigurable with antiflood. Autokick counters reset
 within twenty-four hours. Merged antisquig action into generic.
 There is no automatic migration; simply add the following to
 database.administration:
  autokick_timer = 0
  groups[*].flags[6] = false
  groups[*].autoban = 3
  groups[*].autokicks = {}

luarun.lua: Autoload more libraries by default, because the entire
 purpose of this plugin is for me to be lazy.

pun.lua: Added puns.

slap.lua: Added slaps.
2016-05-19 02:34:24 -04:00
Brayden Banks
24deaec759 *Should* have a working local refactor now. 2016-04-10 21:04:47 -07:00
Brayden Banks
acb679f8fa I should probably commit now. Less global magic! 2016-04-08 14:12:02 -07: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
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
26c1299374 Rewrote help.lua and added markup support to several plugins.
help.lua has been rewritten to support "/help command".
New variable "command" has been added to plugins for the syntax (w/out slash) to be displayed in main
help message. "doc" will be displayed upon "/help command".

Output of >12 plugins has been reformated to utilize markup.
There is a fairly standard style throughout plugins.

get_word() in utilities.lua now has defaults for nil arguments.
2016-01-08 08:44:37 -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
4c6be5b899 minor changes 2015-09-21 19:34:02 -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
2e01ceec71 added cats!
minor fixes to a bunch of stuff
2015-08-23 02:46:34 -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
dupie
566db41184 combined shrug and lenny
added flip, homo, shot

added reply arguments to 8ball, slap, whoami
aliased "/who" to whoami
2015-07-10 20:46:51 -04:00
dupie
af3da2abfd swapped ! for / 2015-07-08 03:38:04 -04:00
dupie
dfece989a0 various improvements 2015-07-07 22:24:12 -04:00
dupie
46fa425f5a bugfixes 2015-07-04 10:54:41 -04:00
dupie
5a3d3e282a bugfixes 2015-07-03 08:31:54 -04:00
dupie
259aac58b1 actually fixed slap 2015-07-02 19:00:32 -04:00
dupie
1b30aa9fb5 fixed slap bug 2015-07-02 18:59:16 -04:00
dupie
236c8bebdb initial commie bastard 2015-07-02 18:15:52 -04:00