Skip to content

Commit

Permalink
Merge pull request #41 from Augugrumi/40-parsingError
Browse files Browse the repository at this point in the history
Fix #40 - Remove string after '@'
  • Loading branch information
mzanella authored Feb 21, 2018
2 parents 6da42e1 + 9c5719f commit 9c4813b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torrearchimedebot/bot/telegram_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def start(self, bot, update):
def roomSchedule(self, bot, update):
self.commonOperation(bot, update)
roomId = ""
messageRoom = update.message.text[1:]
messageRoom = update.message.text[1:update.message.text.find('@TorreArchimedeBot')]
for r in retrieve_rooms():
if r.upper() == messageRoom.upper():
roomId = r
Expand Down

0 comments on commit 9c4813b

Please sign in to comment.