Skip to content

Commit 1c0684c

Browse files
committed
Fix docstring formats
1 parent fdd4985 commit 1c0684c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

plugins/jokes.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,44 +43,44 @@ def load_jokes(bot):
4343

4444
@hook.command()
4545
def yomomma(text):
46-
"""input <nick>, tells a yo momma joke to <nick>"""
46+
"""<nick> - tells a yo momma joke to <nick>"""
4747
target = text.strip()
4848
return '{}, {}'.format(target, random.choice(yo_momma).lower())
4949

5050

5151
@hook.command(autohelp=False)
5252
def doit(message):
53-
"""prints a do it line, example: mathmaticians do with a pencil"""
53+
"""- prints a do it line, example: mathmaticians do with a pencil"""
5454
message(random.choice(do_it))
5555

5656

5757
@hook.command(autohelp=False)
5858
def pun(message):
59-
"""Come on everyone loves puns right?"""
59+
"""- Come on everyone loves puns right?"""
6060
message(random.choice(pun))
6161

6262

6363
@hook.command(autohelp=False)
6464
def confucious(message):
65-
"""confucious say man standing on toilet is high on pot."""
65+
"""- confucious say man standing on toilet is high on pot."""
6666
message('Confucious say {}'.format(random.choice(confucious).lower()))
6767

6868

6969
@hook.command(autohelp=False)
7070
def dadjoke(message):
71-
"""love em or hate em, bring on the dad jokes."""
71+
"""- love em or hate em, bring on the dad jokes."""
7272
message(random.choice(one_liner))
7373

7474

7575
@hook.command(autohelp=False)
7676
def wisdom(message):
77-
"""words of wisdom from various bathroom stalls."""
77+
"""- words of wisdom from various bathroom stalls."""
7878
message(random.choice(wisdom))
7979

8080

8181
@hook.command(autohelp=False)
8282
def bookpun(message):
83-
"""Suggests a pun of a book title/author."""
83+
"""- Suggests a pun of a book title/author."""
8484
# suggestions = ["Why not try", "You should read", "You gotta check out"]
8585
book = random.choice(book_puns)
8686
title = book.split(':')[0].strip()
@@ -90,7 +90,7 @@ def bookpun(message):
9090

9191
@hook.command("boobs", "boobies")
9292
def boobies(text):
93-
"""prints boobies!"""
93+
"""- prints boobies!"""
9494
boob = "\u2299"
9595
out = text.strip()
9696
out = out.replace('o', boob).replace('O', boob).replace('0', boob)
@@ -101,7 +101,7 @@ def boobies(text):
101101

102102
@hook.command("awesome", "iscool", "cool")
103103
def awesome(text):
104-
"""Prints a webpage to show <nick> how awesome they are."""
104+
"""- Prints a webpage to show <nick> how awesome they are."""
105105
nick_re = re.compile("^[A-Za-z0-9_|.\-\]\[]*$", re.I)
106106
link = 'http://is-awesome.cool/{}'
107107
nick = text.split(' ')[0]
@@ -115,7 +115,7 @@ def awesome(text):
115115

116116
@hook.command(autohelp=False)
117117
def triforce(message):
118-
"""returns a triforce!"""
118+
"""- returns a triforce!"""
119119
top = ["\u00a0\u25b2", "\u00a0\u00a0\u25b2", "\u25b2", "\u00a0\u25b2"]
120120
bottom = ["\u25b2\u00a0\u25b2", "\u25b2 \u25b2", "\u25b2\u25b2"]
121121
message(random.choice(top))
@@ -124,7 +124,7 @@ def triforce(message):
124124

125125
@hook.command("kero", "kerowhack")
126126
def kero(text):
127-
"""Returns the text input the way kerouac5 would say it."""
127+
"""- Returns the text input the way kerouac5 would say it."""
128128
keror = random.choice(kero_sayings).upper()
129129
if keror == "???? WTF IS":
130130
out = keror + " " + text.upper()
@@ -135,5 +135,5 @@ def kero(text):
135135

136136
@hook.command(autohelp=False)
137137
def lawyerjoke(message):
138-
"""returns a lawyer joke, so lawyers know how much we hate them"""
138+
"""- returns a lawyer joke, so lawyers know how much we hate them"""
139139
message(random.choice(lawyerjoke))

0 commit comments

Comments
 (0)