20 lines
503 B
Python
20 lines
503 B
Python
|
#! /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!")
|