sopel/modules/willilike.py

20 lines
503 B
Python
Raw Permalink Normal View History

2017-11-22 19:26:40 -05:00
#! /usr/bin/env python3
#-*- coding:utf-8 -*-
"""
Will I like this?
"""
import module
@module.commands('willilike')
@module.example('.willilike Banished Quest')
def echo(bot, trigger):
"""An advanced AI that will determine if you like something."""
if trigger.group(2):
bot.reply("No.")
@module.commands('upvote')
@module.example('.willilike Banished Quest')
def upvote(bot, trigger):
"""An advanced AI that will determine if you like something."""
bot.say(trigger.nick + " upvoted this post!")