-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfun.py
More file actions
80 lines (55 loc) · 3.33 KB
/
fun.py
File metadata and controls
80 lines (55 loc) · 3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import discord
from discord.ext import commands
import random
class BAfun(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name="8ball")
async def _ball(self, ctx, *, question):
': Ask me a question'
question = question
answers = random.randint(1, 20)
if question == "":
return
elif answers == 1:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` It is certain```""")
elif answers == 2:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` It is decidedly so```""")
elif answers == 3:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Without a doubt```""")
elif answers == 4:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Yes definitely```""")
elif answers == 5:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` You may rely on it```""")
elif answers == 6:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` As i see it, yes```""")
elif answers == 7:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Most likely```""")
elif answers == 8:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Outlook good```""")
elif answers == 9:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Yes```""")
elif answers == 10:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Signs point to yes```""")
elif answers == 11:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Reply hazy try again```""")
elif answers == 12:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Ask again later```""")
elif answers == 13:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Better not to tell you now```""")
elif answers == 14:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Cannot predict now```""")
elif answers == 15:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Concentrate and ask again```""")
elif answers == 16:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Don't count on it```""")
elif answers == 17:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` My reply is no```""")
elif answers == 18:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` My sources say no```""")
elif answers == 19:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Outlook not so good```""")
elif answers == 20:
await ctx.send(f"""\U0001f3b1 Question by {ctx.author.name}: {question}``` Very doubtful```""")
def setup(bot):
bot.add_cog(BAfun(bot))