def find_gym(self, gym):
s = Search(using=self.client, index="marker").query("match", title={'query': gym, 'fuzziness': 2, 'slop': 1})
response = s.execute()
if response.hits.total == 0:
await self.bot.say("I couldn't find that gym")
return None, None
hit = response[0]
monacle_gym = await self.get_monacle_gym(hit)
return hit, monacle_gym
评论列表
文章目录