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