Skip to content

Commit 402e0b4

Browse files
committed
Adding help to spaceparking module
1 parent b2daf3f commit 402e0b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spaceparking.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import willie
44

55
@willie.module.commands('parking')
6+
@willie.module.example('.parking','parking')
67
def parking(bot, trigger):
8+
"""Returns the current parking code if set"""
79
f = open('parkingcodefile', 'r')
810
parkingcode = f.read()
911
if (parkingcode == ""):
@@ -12,7 +14,9 @@ def parking(bot, trigger):
1214
bot.say('Parking code is currently ' + parkingcode)
1315

1416
@willie.module.commands('setparking')
17+
@willie.module.example('.setparking','setparking')
1518
def setparking(bot, trigger):
19+
"""Sets the parking code with the provided argument"""
1620
parkingcode = trigger.group(2)
1721
f = open('parkingcodefile', 'w')
1822
if parkingcode is None:

0 commit comments

Comments
 (0)