Fixed some flake8 stuff

This commit is contained in:
mrhanky 2017-05-28 13:27:40 +02:00
parent d921f0de7b
commit b47fd91f54
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8
2 changed files with 5 additions and 6 deletions

View File

@ -69,7 +69,7 @@ class Useless(Plugin):
@command @command
def kiss(self, mask: IrcString, channel: IrcString, args: DocOptDict): def kiss(self, mask: IrcString, channel: IrcString, args: DocOptDict):
"""Kisses a user """Kisses a user
%%kiss <nick> %%kiss <nick>
""" """
return fmt('(づ。◕‿‿◕。)づ{color}{red}。。・゜゜・。。・゜❤{reset} {nick} ' return fmt('(づ。◕‿‿◕。)づ{color}{red}。。・゜゜・。。・゜❤{reset} {nick} '
@ -80,7 +80,7 @@ class Useless(Plugin):
def hug(self, mask: IrcString, channel: IrcString, def hug(self, mask: IrcString, channel: IrcString,
args: DocOptDict) -> str: args: DocOptDict) -> str:
"""Hugs a user """Hugs a user
%%hug <nick> %%hug <nick>
""" """
return fmt('{color}{red}♥♡❤♡♥{reset} {nick} {color}{red}♥♡❤♡♥', return fmt('{color}{red}♥♡❤♡♥{reset} {nick} {color}{red}♥♡❤♡♥',
@ -89,7 +89,7 @@ class Useless(Plugin):
@command @command
def hack(self, mask: IrcString, channel: IrcString, args: DocOptDict): def hack(self, mask: IrcString, channel: IrcString, args: DocOptDict):
"""Hacks (a user) """Hacks (a user)
%%hack [<nick>] %%hack [<nick>]
""" """
nick = args.get('<nick>') or '' nick = args.get('<nick>') or ''
@ -100,7 +100,7 @@ class Useless(Plugin):
@command @command
def gay(self, mask: IrcString, channel: IrcString, args: DocOptDict): def gay(self, mask: IrcString, channel: IrcString, args: DocOptDict):
"""Make someone gay (alias to rainbow) """Make someone gay (alias to rainbow)
%%gay <word>... %%gay <word>...
""" """
return self.rainbow(mask, channel, args) return self.rainbow(mask, channel, args)
@ -108,7 +108,7 @@ class Useless(Plugin):
@command @command
def rainbow(self, mask: IrcString, channel: IrcString, args: DocOptDict): def rainbow(self, mask: IrcString, channel: IrcString, args: DocOptDict):
"""Colorize a word in rainbow colors """Colorize a word in rainbow colors
%%rainbow <word>... %%rainbow <word>...
""" """
last = 0 last = 0

View File

@ -7,7 +7,6 @@ from irc3.plugins.command import command
from irc3.utils import IrcString from irc3.utils import IrcString
from . import Plugin from . import Plugin
from ..utils import pp
@irc3.plugin @irc3.plugin