You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be a pretty cool addition. Imagine the following:
user | ~qadd topic=What do you think about QuotePlugin?
qbot | [quote] quote added to 'topic'
user | ~qshow topic
qbot | [quote] topic: What do you think about QuotePlugin?
user | ~qrm topic=What do you think about QuotePlugin?
qbot | [quote] quote removed from 'topic'
user | ~qsearch topic=QuotePlugin
qbot | [quote] topic (quoteplugin): What do you think about QuotePlugin? [1 result]
This could be implemented in the same basic way as the karma plugin using the shelve module.
A basic API with those four functions would be sufficient I think. There are some implementation details that are discussable though:
Should the qrm function also work with partial quotes (i.e. deleting the best match for the quote entered by the user)?
I think the quote keys ('topic' in this example) should be case-insensitive, any disadvantages?
qsearch queries should probably be case-insensitive too for ease of use. Imagine typing ~qsearch topic=quoteplugin and not getting results because the quotes say 'QuotePlugin' instead of 'quoteplugin', I would think that to be pretty annoying.
The text was updated successfully, but these errors were encountered:
This would be a pretty cool addition. Imagine the following:
This could be implemented in the same basic way as the karma plugin using the
shelve
module.A basic API with those four functions would be sufficient I think. There are some implementation details that are discussable though:
qrm
function also work with partial quotes (i.e. deleting the best match for the quote entered by the user)?qsearch
queries should probably be case-insensitive too for ease of use. Imagine typing~qsearch topic=quoteplugin
and not getting results because the quotes say 'QuotePlugin' instead of 'quoteplugin', I would think that to be pretty annoying.The text was updated successfully, but these errors were encountered: