David Schultz
37523c7a09
make that easier on the eyes
2021-02-05 18:38:27 -06:00
David Schultz
a0d6e51589
rm debug line
2021-01-11 11:13:43 -06:00
David Schultz
1fe8cb677e
make karmawho case insensitive
2021-01-11 11:12:46 -06:00
David Schultz
b046c36052
make karmawho work better
2021-01-11 11:04:57 -06:00
jesopo
777c14b680
sort karma reversed and by abs()
2020-09-29 15:36:43 +00:00
jesopo
e50c4ecbe2
add !karmawho <target> to see who gave karma to <target>
2020-09-29 15:06:37 +00:00
jesopo
6169399b7e
update karma.py to use command spec
2020-01-26 02:59:16 +00:00
jesopo
4e5426be75
remove debug prints
2020-01-26 02:58:45 +00:00
jesopo
1e50c5f2d6
make ++asd++
count only as ++
on ++help
2020-01-17 11:18:26 +00:00
jesopo
82ba7a0922
reword karma to "<target> now has 3 karma (1 from <sender>)"
...
closes #226
2020-01-02 22:29:49 +00:00
jesopo
5ff5b07c22
permit spaces before ++/-- for single-word karma
2019-12-19 15:06:15 +00:00
jesopo
671e259ada
allow space between "++" and nickname
2019-12-10 10:51:37 +00:00
jesopo
69f4d43590
catch ++nickname
as karma too
2019-12-10 10:49:12 +00:00
jesopo
693e6a8b93
'server' -> 'event["server"]'
2019-12-05 17:28:53 +00:00
jesopo
90cbc5a36f
show karma total when adding/removing karma points
2019-12-05 17:20:37 +00:00
jesopo
dde10c11d8
better wording for karma, now that it's per-user
2019-12-01 10:46:07 +00:00
jesopo
e96173d60c
_get_target needs params
2019-12-01 10:32:40 +00:00
jesopo
59289b3742
normalise target names between ++/-- and !karma
2019-12-01 08:49:59 +00:00
jesopo
499e83a1cb
refactor karma to be per-user. added data migration script for this
2019-12-01 07:07:28 +00:00
James Lu
dda27c1b1c
Show 0 karma in the colour of gold™
2019-10-11 23:23:58 -07:00
jesopo
27da1f314b
[:,] shouldn't be optional because the wider group is
2019-10-09 10:33:31 +01:00
jesopo
7ea434e62e
only accept space between word and modifier for word karma when : or ,
2019-10-09 10:31:56 +01:00
jesopo
d0aa1d34f1
don't consume ":"/"," in a karma target
2019-10-08 15:03:24 +01:00
jesopo
0226b48b0c
do not permit a space between () and karma modifier
2019-10-08 14:34:14 +01:00
jesopo
cee29ba1a5
split words/parens karma in to 2 regexes, only accept non-parens when ^$
...
closes #169
2019-10-03 13:20:35 +01:00
jesopo
a75802129f
allow whitespace between karma target and ++/--
2019-09-30 15:36:13 +01:00
Noah Pederson
c3f95130a3
Some minor cleanup
2019-09-27 07:32:09 -06:00
Noah Pederson
f70e46a198
Improves sentence processing for karma
...
Changes the matching regex to grab arbitrary text between ()
for giving (or taking away) karma. Still supports single words
followed by ++/--, including usernames, and strips "," or ":"
characters from the end if a single-word match.
ex. (some sentence to give karma to)++ -> "[Karma] some sentence to give
karma to now has 1 karma"
ex. ngp:++ -> "[Karma] ngp now has 200 karma"
2019-09-26 05:50:10 -05:00
jesopo
b8adb6f52d
[:1] -> [:-1]
2019-09-15 22:52:20 +01:00
jesopo
52a7bf400f
'[1:]' -> '[:1]'
2019-09-15 22:50:55 +01:00
jesopo
4ed8906075
strip ":" from "nick: ++"
2019-09-15 22:49:43 +01:00
jesopo
30ead4dcb6
parse "nick: ++" as "nick++"
2019-09-15 22:47:50 +01:00
jesopo
612849d0c5
'resetkarme' -> 'resetkarma'
2019-09-12 21:57:40 +01:00
jesopo
e68c5575d1
'karma-verbose' -> 'karma-pattern'. don't even parse when false
2019-09-12 12:09:16 +01:00
jesopo
7fbb5b2823
don't use full event names to check what command we're in
2019-09-10 12:59:52 +01:00
jesopo
c914870094
only strip "nick: " prefix from karma when the nickname is known
2019-09-07 17:39:24 +01:00
jesopo
c631575e4f
don't group capture disregarded "nick: " prefix in karma
2019-09-07 17:34:55 +01:00
jesopo
4e617366d3
change to karma regex to best-effort strip "nick: "
2019-09-07 17:34:04 +01:00
jesopo
6332f80dc9
add !addpoint and !rmpoint (explicit ++/-- karma)
2019-08-15 13:38:04 +01:00
jesopo
8c58d33fa3
throttle negative and positive karma independently of each other
...
closes #117
2019-08-12 13:38:14 +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
db7c62f76a
Drastically simplify karma regex: only "strip" off last 2 chars of --/++
2019-06-11 13:17:50 +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
d5a973b84b
Don't allow karma for empty strings
2019-05-21 16:48:10 +01:00
jesopo
161fdb8aa6
"you cannot change your own karma" should be stderr not stdout
2019-05-20 14:14:44 +01:00
jesopo
4e0e63e7f8
Hand over regex-based-command responsibilities to commands
module
2019-05-18 18:35:47 +01:00
jesopo
0625102fa7
if_silenced_f
-> is_silenced_f
2019-05-13 20:58:44 +01:00
jesopo
0fbf993201
Expose is-silenced through Exports, use it in karma.py
2019-05-13 20:57:47 +01:00