Ticket #7 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

Karma

Reported by: tobias382 Owned by: tobias382
Priority: normal Component: plugins
Version: 1.5 Severity: normal
Keywords: Cc:

Description

This plugin requires an external data source with a listing of specific strings where each string has a counter associated with it.

When a user sends a message to a channel of the format '%++' where % is any string, the bot will increment the counter for the record corresponding to that string.

When a user sends a message to a channel of the format '%--' where % is any string, the bot will decrement the counter for the record corresponding to that string.

When a user sends a message to a channel of the format 'karma %' where % is any string, the bot will retrieve the value of the counter for the record corresponding to that string and send a message to the channel of the format '% has karma of #' where % is the string and # is the counter value. If the string has no corresponding record, the message format should be '% has neutral karma' where % is the string.

Change History

Changed 5 years ago by Seldaek

  • status changed from new to closed
  • resolution set to fixed

(In [11]) fixes #7 * bugfix in AdminCommand? * added some comments in DNSLookup

Changed 5 years ago by Seldaek

The syntax '%++ comment line' saves the comment along in the database, there is no way to retrieve them from the plugin however but they might be used by a website or whatever.

Incrementation/Decrementation? is restricted to one update of a word per day per user to avoid flooding.

Some word have a constant karma : pi, ChuckNorris?, c, e, euler, mole, ideas for more are welcome.

Changed 5 years ago by tobias382

(In [12]) Fixes #7 * Modified Quit plugin to use doQuit instead of disconnect * Added a note in the base Driver class for plugins not to use disconnect

Changed 5 years ago by tobias382

  • status changed from closed to reopened
  • resolution fixed deleted

Maybe add support for X > Y or X < Y assertions? Support complex cases like X > Y < Z. Answer could vary depending on the number of votes for one over the other.

If ratings are equal - X and Y are neck and neck. If X > Y - X is just past/ahead of/mopping the floor with Y.

Changed 5 years ago by tobias382

This plugin needs to be modified to use PDO in place of the standalone SQLite extension.

Changed 5 years ago by Seldaek

SQLite changed to PDO, still need to add >/< assertions

Changed 5 years ago by Seldaek

  • status changed from reopened to closed
  • resolution set to fixed

(In [109]) fixes #7 Adds assertions to Karma

Note: See TracTickets for help on using tickets.