forked from Bi0force1/Bio-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
funny.py
134 lines (113 loc) · 7.32 KB
/
funny.py
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Import required libraries
import discord
from discord.ext import commands
import os
import asyncio
import random
# set common variables
intents = discord.Intents.all()
client = commands.Bot(command_prefix="!", intents=intents)
class Funny(commands.Cog):
def __init__(self, client):
self.client = client
# Water / Hydration
@client.command()
async def water(self, ctx):
response = [
"Hydrate before you Die-drate!!!",
"Enjoy a nice glass of water!!!",
"Don't stay thirsty, have some water!!!",
"I could go for a swim!!!",
"Time to refill your water!!!",
"You look thirsty...",
"HYDRATION!!!" ]
await ctx.send(f"{random.choice(response)}")
# Goat Facts
@client.command()
async def goat(self, ctx):
response = [
("In 1966 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>"),
"In 1967 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1968 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1969 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1970 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1971 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1972 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1973 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1974 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1975 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1976 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1977 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1978 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1979 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1980 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1981 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1982 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1983 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1984 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1985 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1986 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1987 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1988 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1989 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1990 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1991 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1992 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1993 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1994 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1995 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1996 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1997 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 1998 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 1999 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2000 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2001 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2002 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2003 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2004 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2005 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2006 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2007 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2008 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2009 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2010 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2011 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2012 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2013 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2014 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2015 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2016 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2017 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2018 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2019 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2020 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2021 the Gävlebocken was burned <a:gavlebocken_fire:1171975133603307570>",
"In 2022 the Gävlebocken survived!!! <:Gavlebocken:1171830684231401483>",
"In 2023 the Gävlebocken survived, but the birds ate all his straw!!! <:Gavlebocken:1171830684231401483>"
]
await ctx.send(f"{random.choice(response)}")
@client.command()
async def goatcam(self, ctx):
response = [ "The Gavlebocken webcam is currently disabled, but will return in December." ]
await ctx.send(f"{(response)}")
@client.command()
async def ilyft(self, ctx):
response = "You've got quite a nice set yourself!!!"
await ctx.send(f"{(response)}")
@client.command(name='dice')
async def roll(self, ctx, dice: str):
try:
rolls, limit = map(int, dice.split('d'))
except Exception as e:
await ctx.send('Format has to be in #d#')
return
results = [random.randint(1, limit) for _ in range(rolls)]
result_str = ', '.join(str(result) for result in results)
total = sum(results)
await ctx.send(f'{ctx.author.mention} rolled: {result_str}\nFor a total of: {total}')
@client.command()
async def coin(self, ctx: commands.Context):
outcome = random.choice(["Heads", "Tails"])
await ctx.send(f'{ctx.author.mention} flipped a coin and got **{outcome}**!')
async def setup(client):
await client.add_cog(Funny(client))