Skip to content

Commit ed8ab78

Browse files
committed
updated karma plugin docstrings so that autogenerated documentation is consistent
1 parent 1484b07 commit ed8ab78

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

plugins/karma.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def db_init(db, conn_name):
2222

2323
@hook.command("pp", "addpoint")
2424
def addpoint(text, nick, chan, db, conn):
25-
""".addpoint or (.pp) <thing> adds a point to the <thing>"""
25+
"""<thing> - adds a point to the <thing>"""
2626
text = text.strip()
2727
db_init(db, conn.name)
2828
karma = db.execute("select score from karma where name = :name and chan = :chan and thing = :thing", {'name': nick, 'chan': chan, 'thing': text.lower()}).fetchone()
@@ -51,7 +51,7 @@ def re_addpt(match, nick, chan, db, conn, notice):
5151

5252
@hook.command("mm", "rmpoint")
5353
def rmpoint(text, nick, chan, db, conn):
54-
""".rmpoint or (.mm) <thing> subtracts a point from the <thing>"""
54+
"""<thing> - subtracts a point from the <thing>"""
5555
text = text.strip()
5656
db_init(db, conn.name)
5757
karma = db.execute("select score from karma where name = :name and chan = :chan and thing = :thing", {'name': nick, 'chan': chan, 'thing': text.lower()}).fetchone()
@@ -69,7 +69,7 @@ def rmpoint(text, nick, chan, db, conn):
6969

7070
@hook.command("pluspts", autohelp=False)
7171
def pluspts(nick, chan, db, conn):
72-
"""prints the things you have liked and their scores"""
72+
"""- prints the things you have liked and their scores"""
7373
db_init(db, conn.name)
7474
output = ""
7575
likes = db.execute("select thing, score from karma where name = :name and chan = :chan and score >= 0 order by score desc", {'name': nick, 'chan': chan}).fetchall()
@@ -80,7 +80,7 @@ def pluspts(nick, chan, db, conn):
8080

8181
@hook.command("minuspts", autohelp=False)
8282
def minuspts(nick, chan, db, conn):
83-
"""prints the things you have disliked and their scores"""
83+
"""- prints the things you have disliked and their scores"""
8484
db_init(db, conn.name)
8585
output = ""
8686
likes = db.execute("select thing, score from karma where name = :name and chan = :chan and score <= 0 order by score", {'name': nick, 'chan': chan}).fetchall()
@@ -102,7 +102,7 @@ def re_rmpt(match, nick, chan, db, conn, notice):
102102

103103
@hook.command("points", autohelp=False)
104104
def points(text, chan, db, conn):
105-
""".points <thing> will print the total points for <thing> in the channel."""
105+
"""<thing> - will print the total points for <thing> in the channel."""
106106
db_init(db, conn.name)
107107
score = 0
108108
karma = ""
@@ -131,7 +131,7 @@ def points(text, chan, db, conn):
131131

132132
@hook.command("topten", "pointstop", "loved", autohelp=False)
133133
def pointstop(text, chan, db, message, conn, notice):
134-
""".topten or .pointstop or .loved prints the top 10 things with the highest points in the channel. To see the top 10 items in all of the channels the bot sits in use .topten global."""
134+
"""- prints the top 10 things with the highest points in the channel. To see the top 10 items in all of the channels the bot sits in use .topten global."""
135135
db_init(db, conn.name)
136136
scores = []
137137
points = defaultdict(int)
@@ -162,7 +162,7 @@ def pointstop(text, chan, db, message, conn, notice):
162162

163163
@hook.command("bottomten", "pointsbottom", "hated", autohelp=False)
164164
def pointsbottom(text, chan, db, message, conn, notice):
165-
""".bottomten or .pointsbottom or .hated prints the top 10 things with the lowest points in the channel. To see the bottom 10 items in all of the channels the bot sits in use .bottomten global."""
165+
"""- prints the top 10 things with the lowest points in the channel. To see the bottom 10 items in all of the channels the bot sits in use .bottomten global."""
166166
db_init(db, conn.name)
167167
scores = []
168168
points = defaultdict(int)

0 commit comments

Comments
 (0)