|
|
@ -1,4 +1,5 @@
|
|
|
|
import random
|
|
|
|
import random
|
|
|
|
|
|
|
|
import asyncio
|
|
|
|
from discord.ext import commands
|
|
|
|
from discord.ext import commands
|
|
|
|
from discord.ext.commands import BucketType, cooldown
|
|
|
|
from discord.ext.commands import BucketType, cooldown
|
|
|
|
|
|
|
|
|
|
|
@ -12,7 +13,13 @@ class Fun(commands.Cog):
|
|
|
|
@cooldown(1, 3, BucketType.channel)
|
|
|
|
@cooldown(1, 3, BucketType.channel)
|
|
|
|
async def _8ball(self, ctx, *, question):
|
|
|
|
async def _8ball(self, ctx, *, question):
|
|
|
|
channels = ["bot-commands"]
|
|
|
|
channels = ["bot-commands"]
|
|
|
|
if str(ctx.channel) in channels:
|
|
|
|
if str(ctx.channel) not in channels:
|
|
|
|
|
|
|
|
message = await ctx.send("Sorry! I only work in #bot-commands!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Let the user read the message for 2.5 seconds
|
|
|
|
|
|
|
|
await asyncio.sleep(2.5)
|
|
|
|
|
|
|
|
# Delete the message
|
|
|
|
|
|
|
|
await message.delete()
|
|
|
|
responses = [
|
|
|
|
responses = [
|
|
|
|
"Hamothy is preoccupied with catching a case",
|
|
|
|
"Hamothy is preoccupied with catching a case",
|
|
|
|
"The prophet Kate believes it will come true",
|
|
|
|
"The prophet Kate believes it will come true",
|
|
|
@ -69,6 +76,7 @@ class Fun(commands.Cog):
|
|
|
|
"Hamothy has used his godlike like powers to align the stars for you, it must be true",
|
|
|
|
"Hamothy has used his godlike like powers to align the stars for you, it must be true",
|
|
|
|
"Gabriel appears out of thin air and smites you",
|
|
|
|
"Gabriel appears out of thin air and smites you",
|
|
|
|
"Yes yes yes!!!",
|
|
|
|
"Yes yes yes!!!",
|
|
|
|
|
|
|
|
"No I don't care about your question, where is my podcast!??!?"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
await ctx.send(f'Question: {question}\nAnswer: {random.choice(responses)}')
|
|
|
|
await ctx.send(f'Question: {question}\nAnswer: {random.choice(responses)}')
|
|
|
|
|
|
|
|
|
|
|
|