Added seppuku and aliased it with anhero + sudoku

This commit is contained in:
mrhanky 2017-08-22 15:29:18 +02:00
parent cc279c39e0
commit 5e16d8c4b0
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -266,21 +266,29 @@ class Useless(DatabasePlugin):
nick = args.get('<nick>', mask.nick)
self.bot.action(target, 'fuckt {0} und tötet {0} anschließend.'.format(nick, nick))
@command
def anhero(self, mask: IrcString, target: IrcString, args: DocOptDict):
@command(aliases=['anhero', 'sudoku'])
def seppuku(self, mask: IrcString, target: IrcString, args: DocOptDict):
"""Kicks a nick
%%anhero
%%seppuku
"""
self.bot.kick(target, mask.nick, 'Sayonara bonzai-chan...')
@command
def sudoku(self, mask: IrcString, target: IrcString, args: DocOptDict):
"""Kicks a nick
%%sudoku
"""
self.anhero(mask, target, args)
# @command
# def anhero(self, mask: IrcString, target: IrcString, args: DocOptDict):
# """Kicks a nick
#
# %%anhero
# """
# self.bot.kick(target, mask.nick, 'Sayonara bonzai-chan...')
#
# @command
# def sudoku(self, mask: IrcString, target: IrcString, args: DocOptDict):
# """Kicks a nick
#
# %%sudoku
# """
# self.anhero(mask, target, args)
@command
def hack(self, mask: IrcString, target: IrcString, args: DocOptDict):