|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
import random
|
|
|
|
|
|
|
|
|
|
from irc.client import NickMask
|
|
|
|
|
|
|
|
|
|
from edmond.plugin import Plugin
|
|
|
|
|
from edmond.utils import proc
|
|
|
|
|
|
|
|
|
@ -27,6 +29,7 @@ class MiscReactionsPlugin(Plugin):
|
|
|
|
|
"ooo",
|
|
|
|
|
"detector",
|
|
|
|
|
"repeat_letters",
|
|
|
|
|
"nudge",
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
def __init__(self, bot):
|
|
|
|
@ -162,3 +165,11 @@ class MiscReactionsPlugin(Plugin):
|
|
|
|
|
question_mark = self.config["question_mark"]
|
|
|
|
|
reply = f"{word}{question_mark}"
|
|
|
|
|
self.bot.say(event.target, reply)
|
|
|
|
|
|
|
|
|
|
def react_with_nudge(self, event):
|
|
|
|
|
"""Nudge the last person who talked (unsure how or why)."""
|
|
|
|
|
nick = NickMask(event.source).nick
|
|
|
|
|
reply = self.config.get("nudging")
|
|
|
|
|
if reply is None:
|
|
|
|
|
return
|
|
|
|
|
self.bot.say(event.target, reply.format(target=nick))
|
|
|
|
|