Skip to content

Commit

Permalink
Merge pull request #42 from Augugrumi/Fix_room_req
Browse files Browse the repository at this point in the history
Substitute find with replace
  • Loading branch information
Polpetta authored Feb 22, 2018
2 parents 9c4813b + 7c3e9c0 commit a31498d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

setup(
name='torrearchimedebot',
version='0.3.6',
version='0.3.7',
description='A useful bot for Torre Archimede schedule',
license="GPL3",
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion torrearchimedebot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"""

__author__ = "Augugrumi Team"
__version__ = "0.3.6"
__version__ = "0.3.7"
__license__ = "GPL3"


Expand Down
2 changes: 1 addition & 1 deletion torrearchimedebot/bot/handlers/info_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self):
self.github = "https://github.com/Augugrumi/TorreArchimedeBot"
self.url_donation = "http://paypal.me/DavidePolonio"
self.author = "Augugrumi Team"
self.version = "0.3.6"
self.version = "0.3.7"

def handleMessage(self):

Expand Down
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:update.message.text.find('@TorreArchimedeBot')]
messageRoom = update.message.text[1:].replace('@TorreArchimedeBot','')
for r in retrieve_rooms():
if r.upper() == messageRoom.upper():
roomId = r
Expand Down

0 comments on commit a31498d

Please sign in to comment.