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
jesopo
e8c4a92119
Fix copypaste fail for getting for Exports in karma.py
2019-05-13 20:57:29 +01:00
jesopo
0114d35d4c
Add a mechanism to ignore specific commands for a whole network
2019-05-06 17:08:56 +01:00
jesopo
a5f8bb7d3d
Use is-ignored export in karma to allow ignoring users for karma
2019-04-27 14:51:26 +01:00
jesopo
023c6c9264
Only strip word stops from the right of a word
2019-03-28 14:35:20 +00:00
jesopo
eb3f4db828
Don't put channel messages as low priority, so we can still catch "bitbot: ++"
...
(karma.py)
2019-01-25 23:53:53 +00:00
jesopo
f86a852d55
Strip "," and ":" from karma targets (karma.py)
2019-01-25 23:45:44 +00:00
jesopo
301dd7378a
Add irc_lower()
and irc_equals()
to IRCServer.Server so that no where else
...
in the code has to know about the server having a casemapping
2019-01-24 17:12:50 +00:00
jesopo
e523671633
Made positive karma show as LIGHTGREEN, not GREEN (karma.py)
2019-01-11 21:00:09 +00:00
jesopo
3cc9bc9dbb
Karma is now being used as karma_str, thus we need a %s not a %d (karma.py)
2019-01-11 17:35:18 +00:00
jesopo
415afe7e27
Show positive karma as green and negative karma as red (karma.py)
2019-01-11 17:33:43 +00:00
jesopo
e07553c362
Add type/return hints throughout src/ and, in doing so, fix some cyclical
...
references.
2018-10-30 14:58:48 +00:00