Skip to content
Snippets Groups Projects
Commit 09b688e7 authored by Bruce Cowan's avatar Bruce Cowan
Browse files

Add justforfun

parents
No related branches found
No related tags found
No related merge requests found
[Core]
name = JustForFun
module = justforfun
[Documentation]
description = This is just for fun
[Python]
version = 3
from errbot import BotPlugin
class Justforfun(BotPlugin):
"""
This is just for fun
"""
def callback_mention(self, message, mentioned_people):
""" Listens for rude or nice things about the bot """
if self.bot_identifier not in mentioned_people:
return
cmp_message = message.body.casefold()
if 'thank' in cmp_message:
self.send(message.to, "you're welcome")
if 'silly' or 'bad' in cmp_message:
self.send(message.to, "sorry")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment