It's in his sandbox.

CommentFileSizeAuthor
#1 bot_karma.patch4.39 KBrobloach

Comments

robloach’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new4.39 KB

Ported bot_karma.install to Drupal 6, tested and works. There's the patch.

(03:39:54 PM) RobLoach: drupal++
(03:39:59 PM) RobLoach: botsnack
(03:40:00 PM) BotLoach: :)
(03:40:33 PM) RobLoach: karma drupal?
(03:40:33 PM) BotLoach: Karma for drupal is 1
(03:40:39 PM) RobLoach: drupal++
(03:40:41 PM) RobLoach: karma drupal?
(03:40:42 PM) BotLoach: Karma for drupal is 2
(03:40:46 PM) RobLoach: drupal--
(03:40:50 PM) RobLoach: karma drupal?
(03:40:51 PM) BotLoach: Karma for drupal is 1
(03:41:19 PM) RobLoach: pean++
(03:41:24 PM) RobLoach: karma pean?
(03:41:24 PM) BotLoach: Karma for pean is 1
(03:41:32 PM) RobLoach: drupal++
(03:41:35 PM) RobLoach: karma pean?
(03:41:35 PM) BotLoach: Karma for pean is 1
(03:41:38 PM) RobLoach: karma drupal?
(03:41:39 PM) BotLoach: Karma for drupal is 2

walkah’s picture

Status: Needs review » Reviewed & tested by the community

Awesome! Thanks Rob :-)

tested - it works on 6.x

jbrauer’s picture

Works well... might be nice to have rtrim() the term so it will work with " ++" as well for those who accidently get a space in there (as I did in testing)

morbus iff’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

* #137171: bot_karma.module added (thanks Rob Loach/walkah). Additions:
- patch supported only words: committed version supports phrases.
- if someone tries to karma themselves, the response is customizable.
- drupal_write_record is your friend; get used to using it!
- "BOTNAME: karma foo?" is required to prevent bad parsing.
- highest/lowest karmas are available at example.com/bot/karma.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.