From ecce827aab1c746ff9995731fcbf6fc39b22c863 Mon Sep 17 00:00:00 2001 From: James Gayfer Date: Tue, 24 Oct 2017 11:14:20 -0700 Subject: [PATCH] change characters for PC account searching --- cogs/destiny.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cogs/destiny.py b/cogs/destiny.py index 99b70fa..1f5a354 100644 --- a/cogs/destiny.py +++ b/cogs/destiny.py @@ -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()