Skip to content

Commit 80e2b95

Browse files
committed
fixed string bug; removed unused code
1 parent 0f243dc commit 80e2b95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

raspiBot.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
BOT_ADMIN = '[email protected]'
3434

3535
GPIO.setmode(GPIO.BOARD) # or GPIO.setmode(GPIO.BCM)
36-
SERVO_LEFT = 1
37-
SERVO_RIGHT = 2
3836
############################################################################################################################
3937

4038
class RaspiBot(GtalkRobot):
@@ -104,7 +102,7 @@ def command_003_read(self, user, message, args):
104102
pin_num = args[1]
105103
GPIO.setup(int(pin_num), GPIO.IN)
106104
pin_value = GPIO.input(int(pin_num))
107-
self.replyMessage(user, "\nPin read: "+ pin_num + " value: " + pin_value + " at: "+time.strftime("%Y-%m-%d %a %H:%M:%S", time.gmtime()))
105+
self.replyMessage(user, "\nPin read: "+ pin_num + " value: " + str(pin_value) + " at: "+time.strftime("%Y-%m-%d %a %H:%M:%S", time.gmtime()))
108106

109107
#This executes the shell command argument after 'shell' or 'bash'
110108
def command_003_shell(self, user, message, args):

0 commit comments

Comments
 (0)