4
Karma
codey edited this page 2024-11-22 14:46:06 +00:00

karma

Access: Public

This command is part of the karma system, described in further detail below.


Usage: /karma [keyword] or .karma [keyword]

keyword is optional. If provided, the bot will provide the score for the keyword specified. If not provided, the bot will list the top 10 karma keywords.


Karma System

Havoc watches for messages globally (within its home server) to pick out those that match the below patterns:

  • keyword++
  • keyword--

When keyword++ is seen, Havoc will increase the karma score of keyword by 1. Conversely, when keyword-- is seen, Havoc will decrease the karma score of keyword by 1.

Rate limiting is in place. Multiple keywords in one message are supported, eg:

keyword1++ keyword-- will result in the karma score of keyword1 being increased, and keyword2 being decreased. If the same keyword is specified more than once in the same message, only the first instance will be considered to prevent cheating.

Mentions are flattened - the display name of the tagged/mentioned user will be used to allow @user++ to function.

On success, Havoc will react 👍 to your message.


#karma Channel

Havoc will automatically (currently every 30s) update the #karma channel to reflect the Top 25 currently scoring keywords for karma. Havoc edits its own message, and no other messages may be sent to this channel.*

* Messages to this channel by users are prevented in two ways:

  1. Permissions set on the channel to deny 'Send Messages' etc permissions for @everyone
  2. Havoc will automatically delete any messages sent to this channel, and send a DM to the user advising why their message has been removed.