/usr/share/pyshared/gplugs/alchemy/karma.py is in gozerbot 0.99.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 | # plugs/karma.py
#
#
""" karma plugin """
__copyright__ = 'this file is in the public domain'
__depending__ = ['fans', 'quote']
from gozerbot.tests import tests
from gozerbot.commands import cmnds
from gozerbot.examples import examples
from gozerbot.redispatcher import rebefore
from gozerbot.datadir import datadir
from gozerbot.generic import handle_exception, rlog, lockdec
from gozerbot.utils.statdict import Statdict
from gozerbot.aliases import aliases
from gozerbot.plughelp import plughelp
from gozerbot.config import config
import thread, pickle, time, os
from gozerbot.database.alchemy import Base, create_all, engine, query, Session, dblocked
from datetime import datetime
from time import localtime
from sqlalchemy import Column, String, Integer, Text, DateTime, ForeignKey, Sequence
import sqlalchemy as sa
class Karma(Base):
__tablename__ = 'karma'
__table_args__ = {'useexisting': True}
item = Column('item', String(255), primary_key=True)
value = Column('value', Integer, nullable=False)
def __init__(self, item, value):
self.item = item
self.value = value
class WhyKarma(Base):
__tablename__ = 'whykarma'
__table_args__ = {'useexisting': True}
item = Column('item', String(255), nullable=False)
updown = Column('updown', String(10), nullable=False)
why = Column('why', Text, nullable=False)
__mapper_args__ = {'primary_key':[item,updown,why]}
def __init__(self, item, updown, why):
self.item = item
self.updown = updown
self.why = why
class WhoKarma(Base):
__tablename__ = 'whokarma'
__table_args__ = {'useexisting': True}
item = Column('item', String(255), nullable=False)
nick = Column('nick', String(255), nullable=False)
updown = Column('updown', String(10), nullable=False)
__mapper_args__ = {'primary_key': [item, nick, updown]}
def __init__(self, item, nick, updown):
self.item = item
self.nick = nick
self.updown = updown
## UPGRADE PART
def upgrade():
teller = 0
oldfile = datadir + os.sep + 'old'
dbdir = datadir + os.sep + 'db' + os.sep + 'karma.db'
if os.path.exists(dbdir):
try:
from gozerbot.database.db import Db
db = Db(dbtype='sqlite')
db.connect('db/karma.db')
result = db.execute(""" SELECT * FROM karma """)
if result:
for i in result:
karma.add(i[0], i[1])
teller += 1
result = db.execute(""" SELECT * FROM whokarma """)
if result:
for i in result:
if i[2] == 'up':
karma.setwhoup(i[0], i[1])
else:
karma.setwhodown(i[0], i[1])
result = db.execute(""" SELECT * FROM whykarma """)
if result:
for i in result:
karma.addwhy(*i)
except Exception, ex:
handle_exception()
return teller
try:
from gozerbot.utils.generic import dosed
from gozerbot.database.db import Db
from gozerbot.compat.karma import Karma
oldkarma = Karma(oldfile)
if not oldkarma:
return
k = oldkarma
got = []
rlog(10, 'karma', 'upgrading karma items')
for i,j in k.karma.iteritems():
if i in got:
continue
else:
got.append(i)
try:
karma.add(i,j)
teller += 1
except sa.exc.IntegrityError, ex:
#if 'not unique' in str(ex):
# continue
raise
rlog(10, 'karma', 'upgrading reasonup')
for i,j in k.reasonup.iteritems():
for z in j:
karma.addwhy(i, 'up', z)
rlog(10, 'karma', 'upgrading reasondown')
for i,j in k.reasondown.iteritems():
for z in j:
karma.addwhy(i, 'down', z)
rlog(10, 'karma', 'upgrading whodown')
for i,j in k.whodown.iteritems():
for z in j:
karma.setwhodown(i, z)
rlog(10, 'karma', 'upgrading whoup')
for i,j in k.whoup.iteritems():
for z in j:
karma.setwhoup(i, z)
except Exception, ex:
handle_exception()
rlog(10, 'karma', 'failed to upgrade: %s' % str(ex))
return
rlog(10, 'karma', 'upgraded %s karma items' % str(teller))
# END UPGRADE PART
plughelp.add('karma', 'maintain karma of items .. use ++ to raise karma by 1 \
or use -- to lower by 1 .. reason might be given after a "#"')
class KarmaDb(object):
""" karma object """
def save(self):
pass
def size(self):
""" return number of items """
count = query(sa.func.count(Karma.item)).first()[0]
return count
@dblocked
def add(self, item, value):
item = item.lower()
if Session.query(Karma).filter(Karma.item==item).count():
rlog(10, 'karma', '%s item is already in database' % item)
return
#Session.begin()
k = Karma(item=item, value=value)
Session.add(k)
#Session.commit()
#Session.close()
return 1
def get(self, item):
""" get karma of item """
item = item.lower()
karma = query(Karma).filter(Karma.item==item).first()
if karma:
return karma.value
@dblocked
def delete(self, item):
""" delete karma item """
item = item.lower()
whokarma = Session.query(WhoKarma).filter(WhoKarma.item==item).all()
whykarma = Session.query(WhyKarma).filter(WhyKarma.item==item).all()
#Session.begin()
for w in whokarma + whykarma:
Session.delete(w)
karma = Session.query(Karma).filter(Karma.item==item).first()
if karma:
Session.delete(karma)
#Session.commit()
#Session.close()
return 1
@dblocked
def addwhy(self, item, updown, reason):
""" add why of karma up/down """
#Session.begin()
item = item.lower()
whykarma = WhyKarma(item, updown, reason)
Session.add(whykarma)
#Session.commit()
#Session.close()
@dblocked
def upitem(self, item, reason=None):
""" up a karma item with/without reason """
item = item.lower()
karma = Session.query(Karma).filter(Karma.item==item).first()
#Session.begin()
if not karma:
karma = Karma(item, 0)
Session.add(karma)
karma.value = karma.value + 1
if reason:
whykarma = WhyKarma(item, 'up', reason.strip())
Session.add(whykarma)
#Session.commit()
#Session.close()
@dblocked
def down(self, item, reason=None):
""" lower a karma item with/without reason """
item = item.lower()
karma = Session.query(Karma).filter(Karma.item==item).first()
#Session.begin()
if not karma:
karma = Karma(item, 0)
Session.add(karma)
karma.value = karma.value - 1
if reason:
whykarma = WhyKarma(item, 'down', reason.strip())
Session.add(whykarma)
#Session.commit()
#Session.close()
def whykarmaup(self, item):
""" get why of karma ups """
item = item.lower()
karma = query(WhyKarma).filter(WhyKarma.item==item).filter(WhyKarma.updown=='up')
if karma:
return [k.why for k in karma]
def whykarmadown(self, item):
""" get why of karma downs """
item = item.lower()
karma = query(WhyKarma).filter(WhyKarma.item==item).filter(WhyKarma.updown=='down')
if karma:
return [k.why for k in karma]
@dblocked
def setwhoup(self, item, nick):
""" set who upped a karma item """
#Session.begin()
item = item.lower()
nick = nick.lower()
wk = WhoKarma(item, nick, 'up')
Session.add(wk)
#Session.commit()
#Session.close()
@dblocked
def setwhodown(self, item, nick):
""" set who lowered a karma item """
#Session.begin()
item = item.lower()
nick = nick.lower()
wk = WhoKarma(item, nick, 'down')
Session.add(wk)
#Session.commit()
#Session.close()
def getwhoup(self, item):
""" get list of who upped a karma item """
item = item.lower()
karma = query(WhoKarma).filter(WhoKarma.item==item).filter(WhoKarma.updown=='up').all()
if karma:
return [k.nick for k in karma]
def getwhodown(self, item):
""" get list of who downed a karma item """
item = item.lower()
karma = query(WhoKarma).filter(WhoKarma.item==item).filter(WhoKarma.updown=='down').all()
if karma:
return [k.nick for k in karma]
def search(self, item):
""" search for matching karma item """
item = item.lower()
karma = query(Karma).filter(Karma.item.like('%%%s%%' % item))
if karma:
return karma
def good(self, limit=10):
""" show top 10 of karma items """
statdict = Statdict()
karma = query(Karma).all()
if not karma:
return []
for i in karma:
if i.item.startswith('quote '):
continue
statdict.upitem(i.item, i.value)
return statdict.top(limit=limit)
def bad(self, limit=10):
""" show lowest 10 of negative karma items """
statdict = Statdict()
karma = query(Karma).all()
if not karma:
return []
for i in karma:
if i.item.startswith('quote '):
continue
statdict.upitem(i.item, i.value)
return statdict.down(limit=limit)
def quotegood(self, limit=10):
""" show top 10 of karma items """
statdict = Statdict()
karma = query(Karma).all()
if not karma:
return []
for i in karma:
if not i.item.startswith('quote '):
continue
statdict.upitem(i.item, i.value)
return statdict.top(limit=limit)
def quotebad(self, limit=10):
""" show lowest 10 of negative karma items """
statdict = Statdict()
karma = query(Karma).all()
if not karma:
return []
for i in karma:
if not i.item.startswith('quote '):
continue
statdict.upitem(i.item, i.value)
return statdict.down(limit=limit)
def whatup(self, nick):
""" show what items are upped by nick """
nick = nick.lower()
statdict = Statdict()
whokarma = query(WhoKarma).filter(WhoKarma.nick==nick).filter(WhoKarma.updown=='up')
if not whokarma:
return []
for i in whokarma:
statdict.upitem(i.item)
return statdict.top()
def whatdown(self, nick):
""" show what items are upped by nick """
nick = nick.lower()
statdict = Statdict()
whokarma = query(WhoKarma).filter(WhoKarma.nick==nick).filter(WhoKarma.updown=='down')
if not whokarma:
return []
for i in whokarma:
statdict.upitem(i.item)
return statdict.top()
karma = KarmaDb()
create_all('karma')
assert(karma)
ratelimited = []
limiterlock = thread.allocate_lock()
limlock = lockdec(limiterlock)
nolimiter = False
def size():
""" return number of kamra items """
return karma.size()
def search(what, queue):
rlog(10, 'karma', 'searched for %s' % what)
result = karma.search(what)
for i in result:
queue.put_nowait("%s has karma %s" % (i.item, i.value))
@limlock
def ratelimit(bot, ievent):
""" karma rate limiter """
if nolimiter:
return 1
waittime = 30
limit = 2
try:
name = ievent.userhost
# Create a state for this user and his/her karma-state if necessary
if not bot.state.has_key(name):
bot.state[name] = {}
if not bot.state[name].has_key('karma'):
bot.state[name]['karma'] = {'count': 0, 'time': time.time() }
# If the waittime has elapsed, reset the counter
if time.time() > (bot.state[name]['karma']['time'] + waittime):
bot.state[name]['karma']['count'] = 0
# Update counter
bot.state[name]['karma']['count'] += 1
# If counter is too high, limit :)
if bot.state[name]['karma']['count'] > limit:
if name in ratelimited:
return 0
ievent.reply("karma limit reached, you'll have to wait %s \
seconds" % int((bot.state[name]['karma']['time'] + waittime) - time.time()))
ratelimited.append(name)
return 0
# Update time
bot.state[name]['karma']['time'] = time.time()
# Ratelimiting passed :)
try:
ratelimited.remove(name)
except ValueError:
pass
return 1
except Exception, ex:
handle_exception(ievent)
def handle_karmaget(bot, ievent):
""" karma-get <item> .. show karma of item """
if not ievent.rest:
ievent.missing('<item>')
return
else:
item = ievent.rest
result = karma.get(item)
if result:
ievent.reply("%s has karma %s" % (item, str(result)))
else:
ievent.reply("%s has no karma yet" % item)
cmnds.add('karma-get', handle_karmaget, ['USER', 'WEB', 'ANONKARMA', 'CLOUD'])
examples.add('karma-get', 'karma-get <item> .. show karma of <item>', \
'karma-get dunker')
aliases.data['karma'] = 'karma-get'
def nolimit():
global nolimiter
nolimiter = True
def dolimit():
global nolimiter
nolimiter = False
tests.start(nolimit).add('gozerbot++').add('karma-get gozerbot', 'gozerbot has karma (\d+)').end(dolimit)
def handle_karmadel(bot, ievent):
""" karma-del <item> .. delete karma item """
if not ievent.rest:
ievent.missing('<item>')
return
item = ievent.rest
result = karma.delete(item)
if result:
ievent.reply("%s deleted" % item)
else:
ievent.reply("can't delete %s" % item)
cmnds.add('karma-del', handle_karmadel, ['OPER'])
examples.add('karma-del', 'karma-del <item> .. delete karma item', \
'karma-del dunker')
tests.add('boozer--').add('karma-del boozer', 'boozer deleted')
def handle_karmaup(bot, ievent):
""" <item>++ ['#' <reason>] .. increase karma of item with optional \
reason """
if not ratelimit(bot, ievent):
return
(item, reason) = ievent.groups
item = item.strip().lower()
if not item:
return
karma.upitem(item, reason=reason)
karma.setwhoup(item, ievent.nick)
ievent.reply('karma of '+ item + ' is now ' + str(karma.get(item)))
rebefore.add(8, '^(.+)\+\+\s+#(.*)$', handle_karmaup, ['USER', 'KARMA', \
'ANONKARMA'], allowqueue=False)
examples.add('++', "<item>++ ['#' <reason>] .. higher karma of item with 1 \
(use optional reason)", '1) gozerbot++ 2) gozerbot++ # top bot')
tests.add('gozerbot++', 'karma of gozerbot is now (\d+)')
tests.add('gozerbot++ # top bot', 'karma of gozerbot is now (\d+)')
def handle_karmaup2(bot, ievent):
""" increase karma without reason """
ievent.groups += [None, ]
handle_karmaup(bot, ievent)
rebefore.add(9, '^(.+)\+\+$', handle_karmaup2, ['USER', 'ANONKARMA'], \
allowqueue=False)
def handle_karmadown(bot, ievent):
""" <item>-- ['#' <reason> .. decrease karma item with reason """
if not ratelimit(bot, ievent):
return
(item, reason) = ievent.groups
item = item.strip().lower()
if not item:
return
karma.down(item, reason=reason)
karma.setwhodown(item, ievent.nick)
ievent.reply('karma of ' + item + ' is now ' + str(karma.get(item)))
rebefore.add(8, '^(.+)\-\-\s+#(.*)$', handle_karmadown, ['USER', 'KARMA', \
'ANONKARMA'], allowqueue=False)
examples.add('--', "<item>-- ['#' <reason>] .. lower karma of item with 1 \
(use optional reason)", '1) gozerbot-- 2) gozerbot-- # bad bot')
tests.add('miep--', 'karma of miep is now (-\d+)')
tests.add('miep-- # top bot', 'karma of miep is now (-\d+)')
def handle_karmadown2(bot, ievent):
""" decrease karma item without reason """
ievent.groups += [None, ]
handle_karmadown(bot, ievent)
rebefore.add(9, '^(.+)\-\-$', handle_karmadown2, ['USER', 'KARMA', \
'ANONKARMA'], allowqueue=False)
def handle_karmawhyup(bot, ievent):
""" karma-whyup <item> .. show why karma of item has been increased """
if not ievent.rest:
ievent.missing('<item>')
return
item = ievent.rest
result = karma.whykarmaup(item)
if result:
ievent.reply('whykarmaup of %s: ' % item, result, dot=True)
else:
ievent.reply('%s has no reason for karmaup yet' % item)
cmnds.add('karma-whyup', handle_karmawhyup, ['USER', 'WEB', \
'ANONKARMA'])
examples.add('karma-whyup', 'karma-whyup <item> .. show the reason why \
karma of <item> was raised', 'karma-whyup gozerbot')
aliases.data['wku'] = 'karma-whyup'
tests.add('gozerbot++ # top bot').add('karma-whyup gozerbot', 'top bot')
def handle_whykarmadown(bot, ievent):
""" karma-whydown <item> .. show why karma of item has been decreased """
if not ievent.rest:
ievent.missing('<item>')
return
item = ievent.rest
result = karma.whykarmadown(item)
if result:
ievent.reply('whykarmadown of %s: ' % item, result, dot=True)
else:
ievent.reply('%s has no reason for karmadown yet' % item)
cmnds.add('karma-whydown', handle_whykarmadown, ['USER', 'WEB', \
'ANONKARMA'])
examples.add('karma-whydown', 'karma-whydown <item> .. show the reason why \
karma of <item> was lowered', 'karma-whydown gozerbot')
aliases.data['wkd'] = 'karma-whydown'
tests.add('miep-- # kut bot').add('karma-whydown miep', 'kut bot')
def handle_karmagood(bot, ievent):
""" karma-good .. show top 10 karma items """
result = karma.good(limit=10)
if result:
res = []
for i in result:
if i[1] > 0:
res.append("%s=%s" % (i[0], i[1]))
ievent.reply('goodness: ', res, dot=True)
else:
ievent.reply('karma void')
cmnds.add('karma-good', handle_karmagood, ['USER', 'WEB', 'ANONKARMA', 'CLOUD'])
examples.add('karma-good', 'show top 10 karma', 'karma-good')
aliases.data['good'] = 'karma-good'
tests.add('gozerbot++').add('karma-good', 'gozerbot')
def handle_karmabad(bot, ievent):
""" karma-bad .. show 10 most negative karma items """
result = karma.bad(limit=10)
if result:
res = []
for i in result:
if i[1] < 0:
res.append("%s=%s" % (i[0], i[1]))
ievent.reply('badness: ', res, dot=True)
else:
ievent.reply('karma void')
cmnds.add('karma-bad', handle_karmabad, ['USER', 'WEB', 'ANONKARMA', 'CLOUD'])
examples.add('karma-bad', 'show lowest top 10 karma', 'karma-bad')
aliases.data['bad'] = 'karma-bad'
tests.add('miep--').add('karma-bad', 'miep')
def handle_whokarmaup(bot, ievent):
""" karma-whoup <item> .. show who increased a karma item """
if not ievent.rest:
ievent.missing('<item>')
return
item = ievent.rest
result = karma.getwhoup(item)
if result:
ievent.reply("whokarmaup of %s: " % item, result, dot=True)
else:
ievent.reply('no whokarmaup data available for %s' % item)
cmnds.add('karma-whoup', handle_whokarmaup, ['USER', 'WEB', \
'ANONKARMA', 'CLOUD'])
examples.add('karma-whoup', 'karma-whoup <item> .. show who raised the \
karma of <item>', 'karma-whoup gozerbot')
tests.add('gozerbot++').add('karma-whoup gozerbot', '{{ me }}')
def handle_whokarmadown(bot, ievent):
""" karma-whodown <item> .. show who decreased a karma item """
if not ievent.rest:
ievent.missing('<item>')
return
item = ievent.rest
result = karma.getwhodown(item)
if result:
ievent.reply("whokarmadown of %s: " % item, result, dot=True)
else:
ievent.reply('no whokarmadown data available for %s' % item)
cmnds.add('karma-whodown', handle_whokarmadown, ['USER', 'WEB', \
'ANONKARMA', 'CLOUD'])
examples.add('karma-whodown', 'karma-whodown <item> .. show who lowered \
the karma of <item>', 'karma-whodown gozerbot')
tests.add('miep--').add('karma-whodown miep', '{{ me }}')
def handle_karmasearch(bot, ievent):
""" karma-search <txt> .. search for karma items """
what = ievent.rest
if not what:
ievent.missing('<txt>')
return
result = karma.search(what)
if result:
res = []
for i in result:
res.append("%s (%s)" % (i.item, i.value))
ievent.reply("karma items matching %s: " % what, res, dot=True)
else:
ievent.reply('no karma items matching %s found' % what)
cmnds.add('karma-search', handle_karmasearch, ['USER', 'WEB', \
'ANONKARMA', 'CLOUD'])
examples.add('karma-search', 'karma-search <txt> .. search karma' , \
'karma-search gozerbot')
tests.add('gozerbot++').add('karma-search gozer', 'gozerbot')
def handle_karmawhatup(bot, ievent):
""" show what karma items have been upped by nick """
try:
nick = ievent.args[0]
except IndexError:
ievent.missing('<nick>')
return
result = karma.whatup(nick)
if result:
res = []
for i in result:
res.append("%s (%s)" % i)
ievent.reply("karma items upped by %s: " % nick, res, dot=True)
else:
ievent.reply('no karma items upped by %s' % nick)
cmnds.add('karma-whatup', handle_karmawhatup, ['USER', 'WEB', \
'ANONKARMA', 'CLOUD'])
examples.add('karma-whatup', 'karma-whatup <nick> .. show what karma items \
<nick> has upped' , 'karma-whatup dunker')
tests.add('gozerbot++').add('karma-whatup {{ me }}', 'gozerbot')
def handle_karmawhatdown(bot, ievent):
""" show what karma items have been lowered by nick """
try:
nick = ievent.args[0]
except IndexError:
ievent.missing('<nick>')
return
result = karma.whatdown(nick)
if result:
res = []
for i in result:
res.append("%s (%s)" % i)
ievent.reply("karma items downed by %s: " % nick, res, dot=True)
else:
ievent.reply('no karma items downed by %s' % nick)
cmnds.add('karma-whatdown', handle_karmawhatdown, ['USER', 'WEB', \
'ANONKARMA', 'CLOUD'])
examples.add('karma-whatdown', 'karma-whatdown <nick> .. show what karma \
items <nick> has downed' , 'karma-whatdown dunker')
tests.add('miep--').add('karma-whatdown {{ me }}', 'miep')
|