We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2daf3f commit 402e0b4Copy full SHA for 402e0b4
spaceparking.py
@@ -3,7 +3,9 @@
3
import willie
4
5
@willie.module.commands('parking')
6
+@willie.module.example('.parking','parking')
7
def parking(bot, trigger):
8
+ """Returns the current parking code if set"""
9
f = open('parkingcodefile', 'r')
10
parkingcode = f.read()
11
if (parkingcode == ""):
@@ -12,7 +14,9 @@ def parking(bot, trigger):
12
14
bot.say('Parking code is currently ' + parkingcode)
13
15
16
@willie.module.commands('setparking')
17
+@willie.module.example('.setparking','setparking')
18
def setparking(bot, trigger):
19
+ """Sets the parking code with the provided argument"""
20
parkingcode = trigger.group(2)
21
f = open('parkingcodefile', 'w')
22
if parkingcode is None:
0 commit comments