Skip to content

Commit 7cdd414

Browse files
committed
Fix incorrectly named arguments in hooks
1 parent d31c071 commit 7cdd414

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/bible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from cloudbot import hook
44

5-
@hook.command("bible", "passage", singlethreaded=True)
5+
@hook.command("bible", "passage", singlethread=True)
66
def bible(text):
77
"""Prints the specified passage from the Bible"""
88
passage = text.strip()

plugins/quran.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def smart_truncate(content, length=425, suffix='...\n'):
2020
return content[:length].rsplit(' ', 1)[0]+ suffix + content[:length].rsplit(' ', 1)[1] + smart_truncate(content[length:])
2121

2222

23-
@hook.command("quran", "verse", singlethreaded=True)
23+
@hook.command("quran", "verse", singlethread=True)
2424
def quran(text, message):
2525
"""Prints the specified Qur'anic verse(s) and its/their translation(s)"""
2626
api_url = "http://quranapi.azurewebsites.net/api/verse/"

0 commit comments

Comments
 (0)