Commit Graph

178 Commits

Author SHA1 Message Date
topkecleon
e60865d4a4 fix capitalization problems 2016-06-06 23:45:11 -04:00
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
Brayden Banks
6a13d523fb Extracted config from instance. 2016-06-06 20:21:42 -07:00
topkecleon
a1810dba86 help.lua: Provides start link when unable to send a user the help message privately.
administration.lua: 1.10.3: /gadd now supports arguments.
2016-06-06 23:13:26 -04:00
topkecleon
4848c9875b add reply-to input support to shout.lua 2016-06-01 21:01:45 -04:00
topkecleon
b7d2fe7f82 administration.lua: Fixed bug in antibot. 2016-05-30 21:06:33 -04:00
topkecleon
e08e5f64ee good stuff
README.md: Greatly updated. Will do more in future.
administration.lua: Administrators will now be promoted to group admins upon joining an administrated
group.
drua-tg: Squashed all luacheck warnings.
chatter.lua: Mostly rewritten; things actually make sense now.
xkcd.lua: Slight styling change.
patterns.lua: Squashed a warning.
2016-05-30 19:10:58 -04:00
Drew
f614e83497 Merge pull request #64 from 39bit/master
Unicode support for length checking in /nick
2016-05-29 20:59:23 -04: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
BuildTools
6fdd906d2c Unicode support for length checking in /nick 2016-05-27 18:49:58 +03:00
topkecleon
77b859fc29 administration.lua: Bug fixes and minor improvements. :^)
reddit.lua: A single bug fix.
bot.lua: A single minor improvement.
2016-05-26 07:22:20 -04:00
topkecleon
684cca287f administration.lua: 1.10: Added /ahelp $command support. No
migration required. All actions have been reworked to be more
 elegant. Style has been slightly changed (no more weak-looking,
 italic group names). Added some (but not many) comments.

drua-tg.lua: Slightly changed send function with error catching
 for failed TCP connections.

reddit.lua: Rewritten, no more brokenness. Yay.
2016-05-25 09:01:54 -04:00
topkecleon
85c9785099 administration.lua: Generic action is optimized.
drua-tg.lua: Now packed with otouto because why keep it in a
 separate repo?
2016-05-22 16:08:45 -04:00
topkecleon
68c1ae226c administration.lua: kicking via tg is much faster than kicking via API
control.lua: added /script command
2016-05-20 20:47:13 -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
a786beada6 Whoops, forgot how things worked. 2016-05-20 03:34:52 -04:00
topkecleon
b55d430cd2 Minor bug fix. Glad I checked the git diff.
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 = {}
2016-05-19 02:42:11 -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
topkecleon
523eb8eecd updated readme
better user caching
improved me.lua
2016-05-15 08:22:31 -04:00
topkecleon
3f17f7c516 administration.lua: /list -> /glist
wikipedia.lua: Working again, using Wikipedia's search API.
reactions.lua: Bugfix, and added /facepalm.
2016-05-13 16:09:40 -04:00
topkecleon
7df8992abe patterns.lua - Bugfix; was gsub-ing twice. 2016-05-13 13:22:10 -04:00
topkecleon
24892a9537 xkcd.lua: Removed needless require.
administration.lua: Easier for users to get command list.
nick.lua: Swap newlines for spaces.
lastfm.lua: Someone was tired writing this.
utilities.lua: Remove needless console output.
2016-05-10 15:49:05 -04:00
topkecleon
c8e8be144f xkcd.lua: Working again, but no more queries (for now).
fortune.lua: The bad spacing annoyed me to no end. Monospaced now.
patterns.lua: Error message upon malformed patterns.
readme.md: outdated, notice
2016-05-07 19:30:48 -04:00
Brayden Banks
46343a5503 Let's get this rock rolling! 2016-05-03 20:30:47 +00:00
Brayden Banks
41181085ce Merge branch 'master' into less-magic 2016-04-28 21:12:04 -07:00
topkecleon
f52b255eba Sorry, Tiago. This is why you should use multiple commits. 2016-04-28 14:27:22 -04:00
Brayden Banks
08d266178d Merge branch 'master' into less-magic 2016-04-26 20:43:56 -07:00
Tiago Danin
63ce836326 Improvements and fix 2016-04-26 23:37:55 +00:00
Brayden
91404aa69f Fix reddit /r/foo trigger 2016-04-26 12:04:42 -07:00
topkecleon
86c290eb17 administration.lua will unban /unban'd users in supergroups.
help.lua's help text is now alphabetized.
2016-04-26 14:42:16 -04:00
Brayden Banks
f536395c91 Merge branch 'master' into less-magic 2016-04-25 22:40:31 -07:00
Brayden Banks
f138ee913c I think the refactor is finished now. 2016-04-25 21:58:16 -07:00
topkecleon
73f4863bc3 Small improvements to administration.lua. 2016-04-20 16:43:08 -04:00
topkecleon
effe34cb32 about.lua: Less redundant if-else.
administration.lua: Will now attempt to unban kicked users in supergrounds.
remind.lua: New plugin! Set a reminder.
control.lua: No more lost control messages.
2016-04-17 23:28:55 -04:00
Brayden Banks
56abfab0b4 Through the Testing-Glass, & What Drew Found There 2016-04-15 22:55:06 -07:00
Brayden Banks
1dc61d2c44 Final fixes. 2016-04-15 06:57:42 -07:00
Brayden Banks
80930f389c Merge branch 'master' into less-magic 2016-04-12 06:47:30 -07:00
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
Brayden Banks
fbe933f5ec Final(?) fixes. 2016-04-11 22:01:38 -07: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
38efb5d827 administration.lua: 1.8.1
me.lua: Fix for potential future bug.
README.md: Better links.
config.lua: Added comments, links, removed unnecessary things.
greetings.lua: Default configuration now built in so as to not
  crowd the config file.
.gitignore: wew lad
2016-04-05 06:43:11 -04:00
topkecleon
8fe72b3a64 administration.lua: 1.8. See file for changes. 2016-04-05 03:42:16 -04:00
topkecleon
c74d1913a4 New method to escape markdown.
Improvements to patterns.lua.
2016-04-02 19:20:28 -04:00
topkecleon
b41a05e3cd administration.lua:
1.7 update.
  /alist for governors+ to get list of admins.
  /glist for owner to get list of groups.
  Single-governor groups. Auto-migration through 1.8.
whoami.lua:
  Fixed markdown support.
utilities.lua:
  Added build_name() to concatenate first and last names easily.
2016-04-01 13:34:22 -04:00
topkecleon
cc4c1ea108 Merge branch 'master' of http://github.com/topkecleon/otouto 2016-04-01 13:33:58 -04:00
topkecleon
0f453b7bdc administration.lua:
1.7 update.
  /alist for governors+ to get list of admins.
  /glist for owner to get list of groups.
  Single-governor groups. Auto-migration through 1.8.
whoami.lua:
  Fixed markdown support.
utilities.lua:
  Added build_name() to concatenate first and last names easily.
2016-04-01 13:29:00 -04:00
Drew
25f95d5854 administration.lua: Fixed security flaw.
I have no idea why I wrote it that way or how it slipped past me.
2016-03-31 17:48:20 -04:00
topkecleon
b643154df8 administration.lua: Added antiflood flag.
bible.lua: Some better error handling.
hearthstone.lua: Corrected help message.
utilities.lua: Added string:index() to succeed get_word().
2016-03-31 07:53:12 -04:00