Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
change characters for PC account searching
Browse files Browse the repository at this point in the history
  • Loading branch information
jgayfer committed Oct 24, 2017
1 parent 2055b4a commit ecce827
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cogs/destiny.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,13 @@ def check_reaction(reaction, user):
if not act:
return await manager.clear()

# Number sign won't work, need to replace it
if platform == 4:
act_name = act.content.replace('#', '%23')
print(act_name)

try:
res = await self.destiny.api.search_destiny_player(platform, act.content)
res = await self.destiny.api.search_destiny_player(platform, act_name)
except ValueError as e:
await manager.say("Invalid account name. If this seems wrong, please contact the developer.")
return await manager.clear()
Expand Down

0 comments on commit ecce827

Please sign in to comment.