def ask(self, ctx, *, question : str=""):
"""Answers any question you might have"""
random.seed(question)
for check in self.questions:
if re.search(check["regex"], question):
clip = await self.get_clip(f"dota:{random.choice(check['responses'])}", ctx)
await ctx.send(clip.text)
try:
await self.play_clip(clip, ctx)
except AudioPlayerNotFoundError:
pass # Not needed for this
return
print("didnt match anything for ask")
评论列表
文章目录