mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -05:00
Fixed 8ball
This commit is contained in:
parent
1026c8188b
commit
92d30dcb19
@ -99,11 +99,12 @@ class General:
|
|||||||
await self.bot.say("Choose rock, paper or scissors.")
|
await self.bot.say("Choose rock, paper or scissors.")
|
||||||
|
|
||||||
@commands.command(name="8", aliases=["8ball"])
|
@commands.command(name="8", aliases=["8ball"])
|
||||||
async def _8ball(self, question : str):
|
async def _8ball(self, *question):
|
||||||
"""Ask 8 ball a question
|
"""Ask 8 ball a question
|
||||||
|
|
||||||
Question must end with a question mark.
|
Question must end with a question mark.
|
||||||
"""
|
"""
|
||||||
|
question = " ".join(question)
|
||||||
if question.endswith("?") and question != "?":
|
if question.endswith("?") and question != "?":
|
||||||
return await self.bot.say("```" + randchoice(self.ball) + "```")
|
return await self.bot.say("```" + randchoice(self.ball) + "```")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user