Skip to content

Commit d4af4e8

Browse files
committed
Remove coroutine decorators from hook functions that don't need it
1 parent b9f7317 commit d4af4e8

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

plugins/attacks.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
import codecs
32
import json
43
import os
@@ -52,7 +51,6 @@ def load_attacks(bot):
5251
presents = json.load(f)
5352

5453

55-
@asyncio.coroutine
5654
@hook.command
5755
def lart(text, conn, nick, action, is_nick_valid):
5856
"""<user> - LARTs <user>"""
@@ -71,7 +69,6 @@ def lart(text, conn, nick, action, is_nick_valid):
7169
action(phrase.format(user=target))
7270

7371

74-
@asyncio.coroutine
7572
@hook.command("flirt", "sexup", "jackmeoff")
7673
def flirt(text, conn, nick, message, is_nick_valid):
7774
"""<user> - flirts with <user>"""
@@ -87,7 +84,6 @@ def flirt(text, conn, nick, message, is_nick_valid):
8784
message('{}, {}'.format(target, random.choice(flirts)))
8885

8986

90-
@asyncio.coroutine
9187
@hook.command("kill", "end")
9288
def kill(text, conn, nick, action, is_nick_valid):
9389
"""<user> - kills <user>"""
@@ -106,7 +102,6 @@ def kill(text, conn, nick, action, is_nick_valid):
106102
action(generator.generate_string())
107103

108104

109-
@asyncio.coroutine
110105
@hook.command
111106
def slap(text, action, nick, conn, is_nick_valid):
112107
"""<user> -- Makes the bot slap <user>."""
@@ -128,7 +123,6 @@ def slap(text, action, nick, conn, is_nick_valid):
128123
action(generator.generate_string())
129124

130125

131-
@asyncio.coroutine
132126
@hook.command
133127
def compliment(text, nick, conn, is_nick_valid, message):
134128
"""<user> -- Makes the bot compliment <user>."""
@@ -181,7 +175,6 @@ def nk(message):
181175
message(slogan)
182176

183177

184-
@asyncio.coroutine
185178
@hook.command()
186179
def insult(text, conn, nick, notice, message, is_nick_valid):
187180
"""<user> - insults <user>
@@ -202,7 +195,6 @@ def insult(text, conn, nick, notice, message, is_nick_valid):
202195
message("{}, {}".format(target, random.choice(insults)))
203196

204197

205-
@asyncio.coroutine
206198
@hook.command("present", "gift")
207199
def present(text, conn, nick, action, is_nick_valid):
208200
"""<user> - gives gift to <user>"""

0 commit comments

Comments
 (0)