Commit Graph

164 Commits

Author SHA1 Message Date
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
topkecleon
6b3e3ae8a6 whoami.lua: Rewrite. Added markdown support.
administration.lua: Bugfixes and improvements. v1.6.1.
2016-03-28 02:15:46 -04:00
topkecleon
5762e12a48 administration.lua:
Switched to drua-tg.lua.
  Groups are now listed according to most recent activity.
whoami.lua:
  Displays channel/supergroup IDs properly.
2016-03-27 08:30:41 -04:00
topkecleon
9377107508 Bugfixes and updated readme. 2016-03-26 06:12:01 -04:00
topkecleon
495cc8d0c1 translate.lua now enquotes translations.
echo.lua now enquotes echos in supergroups.
2016-03-23 19:54:18 -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
aebb90f9b4 Added "setandget.lua" plugin. 2016-03-15 16:37:19 -04:00
topkecleon
a2bdecb7bb nick.lua:
Less stupidly written.
  Owner can now set other users' nicknames via reply.
patterns.lua:
  Minor code changes.
2016-03-08 04:17:55 -05:00
Tiago Danin
3ef4c01295 FIX cli_port 2016-03-05 15:15:53 -03:00
topkecleon
f529bc9ad8 help.lua and about.lua: /start now triggers about.lua
blacklist.lua: Added username support.
2016-03-04 17:08:21 -05:00
topkecleon
ec64f18138 lastfm.lua: Added timeout to prevent bot from locking up. 2016-03-04 13:06:13 -05:00
topkecleon
664c2296ad administration.lua:
version 1.3
  reply-based commands will now work as you would expect when
   replying to add/remove messages
  some information messages have been changed
2016-02-26 22:06:38 -05:00
topkecleon
57d466d0fb clean up some old crap 2016-02-26 11:46:14 -05:00
Brayden
eaf379bf88 Fix title escaping 2016-02-25 20:50:51 -08:00
Brayden
921bba1cff Increase reliability of Wikipedia
Pulls directly from the unescaped URL now and feeds that into `wurl` instead of the escaped title.
2016-02-25 20:14:25 -08:00