2018-12-23 13:48:15 +00:00
|
|
|
import random
|
|
|
|
import discord
|
|
|
|
from discord.ext import commands
|
2018-12-26 07:18:05 +00:00
|
|
|
import math
|
2018-12-26 11:36:55 +00:00
|
|
|
from helpers.checks import check_if_staff_or_ot
|
2018-12-23 13:48:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Meme:
|
|
|
|
"""
|
|
|
|
Meme commands.
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, bot):
|
|
|
|
self.bot = bot
|
|
|
|
|
2018-12-23 21:12:06 +00:00
|
|
|
def c_to_f(self, c):
|
|
|
|
"""this is where we take memes too far"""
|
2018-12-26 07:18:05 +00:00
|
|
|
return math.floor(9.0 / 5.0 * c + 32)
|
2018-12-23 13:48:15 +00:00
|
|
|
|
2018-12-24 00:18:40 +00:00
|
|
|
def c_to_k(self, c):
|
|
|
|
"""this is where we take memes REALLY far"""
|
2018-12-26 07:18:05 +00:00
|
|
|
return math.floor(c + 273.15)
|
2018-12-24 00:18:40 +00:00
|
|
|
|
2018-12-23 13:48:15 +00:00
|
|
|
@commands.check(check_if_staff_or_ot)
|
|
|
|
@commands.command(hidden=True, name="warm")
|
|
|
|
async def warm_member(self, ctx, user: discord.Member):
|
|
|
|
"""Warms a user :3"""
|
2018-12-26 08:18:11 +00:00
|
|
|
celsius = random.randint(15, 100)
|
2018-12-24 00:18:40 +00:00
|
|
|
fahrenheit = self.c_to_f(celsius)
|
|
|
|
kelvin = self.c_to_k(celsius)
|
2018-12-23 13:48:15 +00:00
|
|
|
await ctx.send(f"{user.mention} warmed."
|
2018-12-26 07:15:50 +00:00
|
|
|
f" User is now {celsius}°C "
|
2018-12-26 07:18:05 +00:00
|
|
|
f"({fahrenheit}°F, {kelvin}K).")
|
2018-12-23 21:12:06 +00:00
|
|
|
|
2018-12-26 08:18:11 +00:00
|
|
|
@commands.check(check_if_staff_or_ot)
|
|
|
|
@commands.command(hidden=True, name="chill", aliases=["cold"])
|
|
|
|
async def chill_member(self, ctx, user: discord.Member):
|
|
|
|
"""Chills a user >:3"""
|
|
|
|
celsius = random.randint(-50, 15)
|
|
|
|
fahrenheit = self.c_to_f(celsius)
|
|
|
|
kelvin = self.c_to_k(celsius)
|
|
|
|
await ctx.send(f"{user.mention} chilled."
|
|
|
|
f" User is now {celsius}°C "
|
|
|
|
f"({fahrenheit}°F, {kelvin}K).")
|
|
|
|
|
|
|
|
@commands.check(check_if_staff_or_ot)
|
|
|
|
@commands.command(hidden=True)
|
|
|
|
async def yahaha(self, ctx):
|
|
|
|
"""secret command"""
|
|
|
|
await ctx.send(f"🍂 you found me 🍂")
|
|
|
|
|
2018-12-26 08:22:22 +00:00
|
|
|
@commands.check(check_if_staff_or_ot)
|
|
|
|
@commands.command(hidden=True)
|
|
|
|
async def bones(self, ctx):
|
|
|
|
await ctx.send("https://cdn.discordapp.com/emojis/"
|
|
|
|
"443501365843591169.png?v=1")
|
|
|
|
|
2018-12-23 21:12:06 +00:00
|
|
|
@commands.check(check_if_staff_or_ot)
|
|
|
|
@commands.command(hidden=True, name="bam")
|
|
|
|
async def bam_member(self, ctx, user: discord.Member):
|
|
|
|
"""Bams a user owo"""
|
|
|
|
await ctx.send(f"{self.bot.escape_message(user)} is ̶n͢ow b̕&̡.̷ 👍̡")
|
2018-12-23 13:48:15 +00:00
|
|
|
|
2018-12-23 14:28:44 +00:00
|
|
|
@commands.command(hidden=True)
|
|
|
|
async def memebercount(self, ctx):
|
|
|
|
"""Checks memeber count, as requested by dvdfreitag"""
|
|
|
|
await ctx.send("There's like, uhhhhh a bunch")
|
|
|
|
|
2018-12-23 13:48:15 +00:00
|
|
|
@commands.command(hidden=True)
|
|
|
|
async def frolics(self, ctx):
|
|
|
|
"""test"""
|
|
|
|
await ctx.send("https://www.youtube.com/watch?v=VmarNEsjpDI")
|
|
|
|
|
|
|
|
|
|
|
|
def setup(bot):
|
|
|
|
bot.add_cog(Meme(bot))
|