Skip to content

Commit b9f7317

Browse files
committed
Clean up nk command
1 parent 52d3e48 commit b9f7317

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

plugins/attacks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,10 @@ def strax(text, conn, message, nick, is_nick_valid):
175175

176176

177177
@hook.command(autohelp=False)
178-
def nk(chan, message):
178+
def nk(message):
179179
"""outputs a random North Korea propoganda slogan"""
180-
index = random.randint(0, len(north_korea) - 1)
181-
slogan = north_korea[index]
182-
message(slogan, chan)
180+
slogan = random.choice(north_korea)
181+
message(slogan)
183182

184183

185184
@asyncio.coroutine

0 commit comments

Comments
 (0)