Convos::Plugin::Bot::Action::Karma - Track karma of a topic
SYNOPSIS
Prerequisites
You need to install DBD::SQLite to use this action:
./script/convos cpanm -n DBD::SQLite
Commands
<topic>++ # reason
Will increase karma for a topic, with an optional reason:
convos++ convos++ some reason convos++ # some reason
<topic>-- # reason
Will decrease karma for a topic, with an optional reason:
superman-- superman-- some reason superman-- # some reason
karma <topic>
Relies with karma for a
topic
and a random reason.
Config file
---
actions:
- class: Convos::Plugin::Bot::Action::Karma
DESCRIPTION
Convos::Plugin::Bot::Action::Core allows Convos::Plugin::Bot to track karma for topics.
ATTRIBUTES
description
See "description" in Convos::Plugin::Bot::Action.
usage
See "usage" in Convos::Plugin::Bot::Action.
METHODS
register
Loads DBD::SQLite and sets up the karma.sqlite
database.
reply
Can reply to one of the "Commands".