20 lines
503 B
Python
20 lines
503 B
Python
# -*- coding: utf-8 -*-
|
|
from irc3.plugins.command import command
|
|
import irc3
|
|
|
|
@irc3.plugin
|
|
class Plugin:
|
|
|
|
def __init__(self, bot):
|
|
self.bot = bot
|
|
|
|
@command(permission='view')
|
|
def b33p(self, mask, target, args):
|
|
"""b33p an irc b0t, it should b00p back
|
|
%%b33p <dubstep>...
|
|
"""
|
|
robostep='{}: b00p'.format(mask.nick)
|
|
roooboot = ''.join(args['<dubstep>'])
|
|
if roooboot == self.bot.nick:
|
|
self.bot.privmsg(target,robostep)
|