aboutsummaryrefslogtreecommitdiff
path: root/modules/karma.py
Commit message (Collapse)AuthorAgeFilesLines
* Show 0 karma in the colour of gold™Gravatar James Lu2019-10-111-1/+2
|
* [:,] shouldn't be optional because the wider group isGravatar jesopo2019-10-091-1/+1
|
* only accept space between word and modifier for word karma when : or ,Gravatar jesopo2019-10-091-1/+1
|
* don't consume ":"/"," in a karma targetGravatar jesopo2019-10-081-1/+1
|
* do not permit a space between () and karma modifierGravatar jesopo2019-10-081-1/+1
|
* split words/parens karma in to 2 regexes, only accept non-parens when ^$Gravatar jesopo2019-10-031-17/+9
| | | | closes #169
* allow whitespace between karma target and ++/--Gravatar jesopo2019-09-301-1/+1
|
* Some minor cleanupGravatar Noah Pederson2019-09-271-3/+3
|
* Improves sentence processing for karmaGravatar Noah Pederson2019-09-261-14/+14
| | | | | | | | | | | | 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"
* [:1] -> [:-1]Gravatar jesopo2019-09-151-1/+1
|
* '[1:]' -> '[:1]'Gravatar jesopo2019-09-151-1/+1
|
* strip ":" from "nick: ++"Gravatar jesopo2019-09-151-1/+1
|
* parse "nick: ++" as "nick++"Gravatar jesopo2019-09-151-1/+3
|
* 'resetkarme' -> 'resetkarma'Gravatar jesopo2019-09-121-1/+1
|
* 'karma-verbose' -> 'karma-pattern'. don't even parse when falseGravatar jesopo2019-09-121-12/+12
|
* don't use full event names to check what command we're inGravatar jesopo2019-09-101-1/+1
|
* only strip "nick: " prefix from karma when the nickname is knownGravatar jesopo2019-09-071-3/+8
|
* don't group capture disregarded "nick: " prefix in karmaGravatar jesopo2019-09-071-1/+1
|
* change to karma regex to best-effort strip "nick: "Gravatar jesopo2019-09-071-1/+1
|
* add !addpoint and !rmpoint (explicit ++/-- karma)Gravatar jesopo2019-08-151-25/+35
|
* throttle negative and positive karma independently of each otherGravatar jesopo2019-08-121-5/+19
| | | | closes #117
* Refactor set/channelset/serverset/botset in to 'utils.Setting' objectsGravatar jesopo2019-06-281-6/+4
|
* implement @utils.kwarg() magic, use it for command.regex hooksGravatar jesopo2019-06-261-4/+4
|
* Drastically simplify karma regex: only "strip" off last 2 chars of --/++Gravatar jesopo2019-06-111-2/+1
|
* Add `depends-on` hashflags to relevant modulesGravatar jesopo2019-05-251-0/+4
|
* Add usage examples for all settingsGravatar jesopo2019-05-231-2/+2
|
* Don't allow karma for empty stringsGravatar jesopo2019-05-211-0/+3
|
* "you cannot change your own karma" should be stderr not stdoutGravatar jesopo2019-05-201-1/+1
|
* Hand over regex-based-command responsibilities to `commands` moduleGravatar jesopo2019-05-181-50/+35
|
* `if_silenced_f` -> `is_silenced_f`Gravatar jesopo2019-05-131-1/+1
|
* Expose is-silenced through Exports, use it in karma.pyGravatar jesopo2019-05-131-0/+4
|
* Fix copypaste fail for getting for Exports in karma.pyGravatar jesopo2019-05-131-1/+1
|
* Add a mechanism to ignore specific commands for a whole networkGravatar jesopo2019-05-061-1/+1
|
* Use is-ignored export in karma to allow ignoring users for karmaGravatar jesopo2019-04-271-0/+5
|
* Only strip word stops from the right of a wordGravatar jesopo2019-03-281-1/+1
|
* Don't put channel messages as low priority, so we can still catch "bitbot: ++"Gravatar jesopo2019-01-251-2/+1
| | | | (karma.py)
* Strip "," and ":" from karma targets (karma.py)Gravatar jesopo2019-01-251-1/+2
|
* Add `irc_lower()` and `irc_equals()` to IRCServer.Server so that no where elseGravatar jesopo2019-01-241-2/+1
| | | | in the code has to know about the server having a casemapping
* Made positive karma show as LIGHTGREEN, not GREEN (karma.py)Gravatar jesopo2019-01-111-1/+1
|
* Karma is now being used as karma_str, thus we need a %s not a %d (karma.py)Gravatar jesopo2019-01-111-1/+1
|
* Show positive karma as green and negative karma as red (karma.py)Gravatar jesopo2019-01-111-3/+14
|
* Add type/return hints throughout src/ and, in doing so, fix some cyclicalGravatar jesopo2018-10-301-1/+1
| | | | references.
* send.stdout/send.stderr need a server kwargGravatar jesopo2018-10-041-3/+5
|
* Move src/Utils.py in to src/utils/, splitting functionality out in to modules ofGravatar jesopo2018-10-031-10/+10
| | | | related functionality
* .strip() target name in !karmaGravatar jesopo2018-10-021-0/+1
|
* Correctly set nickname-only karmaGravatar jesopo2018-10-021-4/+4
|
* use Utils.irc_lower, not .lower()Gravatar jesopo2018-10-021-1/+2
|
* Don't complain when modules/karma.py can't find a user when it's inGravatar jesopo2018-10-021-4/+0
| | | | karma-nickname-only mode
* Implement karma-nickname-only, to only allow karma for users in the currentGravatar jesopo2018-10-021-21/+43
| | | | channel
* Switch to using docstring for usage, permission and require_modeGravatar jesopo2018-09-301-5/+7
|