Commit graph

112 commits

Author SHA1 Message Date
jesopo
4bfb4c3200 Add IntRangeSetting, reorder OptionsSetting arg order 2019-08-30 14:40:54 +01:00
jesopo
e19638827e '+= 1' -> '+= value' 2019-07-02 23:36:18 +01:00
jesopo
718b6bc394 add !duckstats 2019-07-02 23:34:57 +01:00
jesopo
d671d8b470 'patern' -> 'pattern' 2019-07-01 22:50:58 +01:00
jesopo
ae9d099a41 Refactor set/channelset/serverset/botset in to 'utils.Setting' objects 2019-06-28 23:16:05 +01:00
jesopo
c5785a2d14 implement @utils.kwarg() magic, use it for command.regex hooks 2019-06-26 14:37:41 +01:00
jesopo
43108b96ba show nickname in NO_DUCK non-kick message 2019-06-19 10:22:46 +01:00
jesopo
98e1202c78 Allow command.regex hooks to opt-in to being triggered from a /me
closes #68
2019-06-16 18:40:25 +01:00
jesopo
f8b086b095 "saved a duck" -> "befriended a duck" 2019-06-14 17:11:44 +01:00
jesopo
9b5f946cec 80 col wrap 2019-06-14 17:11:36 +01:00
jesopo
675c510223 typo, 'acount' -> 'count' 2019-06-12 22:57:04 +01:00
jesopo
f336cecb06 "duck" when duck count is 1, "ducks" otherwise 2019-06-12 22:36:26 +01:00
jesopo
03917649ee Add help/usage strings for ducks.py 2019-06-10 16:41:32 +01:00
jesopo
abccb06dc5 Add missing time import 2019-06-08 12:13:51 +01:00
jesopo
d98e814d3f Show how many seconds it took to !bef/!trap a duck 2019-06-08 12:10:27 +01:00
jesopo
8e6835be3c Only show typing indicators for commands that expect output 2019-06-07 15:57:15 +01:00
Anton McClure
5eeffc30ef
Replaced command ,bang with ,trap 2019-06-05 10:37:58 -04:00
jesopo
7e3375cfbd Change duck-triggering to be through regex commands that catch ALL messages;
this will make is-silenced and ignores work automatically
2019-06-05 14:18:41 +01:00
jesopo
74c3d3a009 Don't count JOINs towards duck-triggering messages 2019-06-05 14:16:37 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
cf29c37112 Add usage examples for all settings 2019-05-23 10:28:14 +01:00
jesopo
94d2f103b0 Don't show ducks when the bot is silenced 2019-05-15 16:48:20 +01:00
jesopo
2d6d2a98d7 Typo in ducks.py, 'DEFAUL' -> 'DEFAULT' 2019-05-11 18:26:53 +01:00
jesopo
6ef7f8374d Change ducks-min-message default to 100 2019-05-11 17:19:31 +01:00
jesopo
f715e46155 Stop using prevent_highlight. it ruins terminals on OS X 2019-05-04 23:28:51 +01:00
jesopo
d999548020 Change min duck messages to 40, change chance back to 5% 2019-05-03 16:47:56 +01:00
jesopo
8c8205522e Actually import EventManager in ducks.py 2019-05-03 16:40:21 +01:00
jesopo
4d8b1a1a0d Set received.message.channel priority to PRIORITY_MONITOR 2019-05-03 16:38:45 +01:00
jesopo
167fe7b070 Add !friends and !enemies to ducks.py 2019-05-03 16:34:41 +01:00
jesopo
c89742a7e7 Reset duck_lines to 0 when a duck has spawned 2019-05-03 16:26:35 +01:00
jesopo
b7e14148bb Change duck-spawn change to 10% per message after 20 messages 2019-05-03 16:07:49 +01:00
jesopo
8ac93d57f3 there's no event in bootstrap_channel 2019-05-03 15:44:13 +01:00
jesopo
2fd92ce2fa bootstrap old channels for ducks.py 2019-05-03 15:42:39 +01:00
jesopo
5bfffc25e9 Refector ducks.py 2019-05-03 15:34:54 +01:00
jesopo
8b9062b942 Better constifying of color/font chars 2018-11-13 16:02:26 +00:00
jesopo
819f4e0680 Pass context-wrapped timers to each module, add ModuleManager.BaseModule.on_load 2018-10-12 18:07:23 +01:00
jesopo
69d58eede2 Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
2018-10-03 13:22:37 +01:00
jesopo
10ef985a8a Switch to using docstring for usage, permission and require_mode 2018-09-30 17:29:09 +01:00
jesopo
6eb8b1ba6d Move all exports to @Utils.export calls 2018-09-27 12:08:07 +01:00
jesopo
51a52e2b0e Switch to using @Utils.hook and docstrings for event hooks 2018-09-26 18:27:17 +01:00
jesopo
ecb9d7cb3f Move most code in root directory to src/ 2018-09-24 15:13:27 +01:00
dngfx
9220f84c27 clear channel.games properly. 2018-09-22 20:08:07 +01:00
dngfx
56afe77b52 Fix duck timing and stupid indenting. 2018-09-22 19:32:54 +01:00
dngfx
1a54c11df8 Fix ducks.py having a superfluous function 2018-09-22 19:28:57 +01:00
dngfx
febb6d66e3 font reset at the beginning of commands to stop wonkiness with highlighting and fix duck decoys. 2018-09-22 19:10:52 +01:00
dngfx
000ee14711 Make tweets say Twitter instead of tweets, and update ducks to add decoys and make minimum/unique a channel setting rather than hard setting. 2018-09-22 16:02:39 +01:00
jesopo
a87196c608 Change Utils.color to take a string to wrap in color 2018-09-21 11:39:09 +01:00
jesopo
ecb8698fb7 Don't send ducks when they're disabled. 2018-09-19 14:28:59 +01:00
jesopo
b86ca6088f Fix some styling in ducks.py 2018-09-19 13:23:18 +01:00
dngfx
2211cb0542 Fix a few niggles 2018-09-09 08:59:36 +01:00