You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

import random
import config
import discord
from discord.ext import commands
class Meme:
Meme commands.
def __init__(self, bot): = bot
def check_if_staff_or_ot(ctx):
is_ot = ( == "off-topic")
is_staff = any( in config.staff_role_ids for r in
return (is_ot or is_staff)
def c_to_f(self, c):
"""this is where we take memes too far"""
return 9.0 / 5.0 * c + 32
def c_to_k(self, c):
"""this is where we take memes REALLY far"""
return c + 273.15
@commands.command(hidden=True, name="warm")
async def warm_member(self, ctx, user: discord.Member):
"""Warms a user :3"""
celsius = random.randint(0, 100)
fahrenheit = self.c_to_f(celsius)
kelvin = self.c_to_k(celsius)
await ctx.send(f"{user.mention} warmed."
f" User is now {celsius}°C ({fahrenheit}°F, {kelvin}K).")
@commands.command(hidden=True, name="bam")
async def bam_member(self, ctx, user: discord.Member):
"""Bams a user owo"""
await ctx.send(f"{} is ̶n͢ow b̕&̡.̷ 👍̡")
async def memebercount(self, ctx):
"""Checks memeber count, as requested by dvdfreitag"""
await ctx.send("There's like, uhhhhh a bunch")
async def frolics(self, ctx):
await ctx.send("")
def setup(bot):