From cfe318935b3dbf87cf733a19d3085d8ec29cdab8 Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Wed, 22 Aug 2018 16:58:11 +0200 Subject: [PATCH] Adds hugemoji --- General.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/General.py b/General.py index 24ccff4..d0690ad 100644 --- a/General.py +++ b/General.py @@ -3,6 +3,7 @@ import discord import sys, os import praw import random +import re from discord.ext import commands from sympy import latex, symbols, preview, Symbol #for LaTeX images @@ -23,6 +24,24 @@ class General(object): def __check(self, ctx): #Todo: Is dit het porno kanaal? return True + + @commands.command() + @asyncio.coroutine + def huge(self, ctx, *, arg): + """YUGE. Geeft een grote versie van de gegeven emoji terug. Werkt alleen voor custom emoji. + Bijvoorbeeld: + !huge :ancilla: + """ + id = re.search("\<\:([A-z]*)\:(\d*)\>", arg) + hugemoji = 'https://cdn.discordapp.com/emojis/' + id[2] + '.png' + em = discord.Embed(title=id[1], type='photo') + em.set_image(url=hugemoji) + try: + yield from ctx.message.delete() + except: + print("No permission to delete message") + yield from ctx.channel.send(ctx.author.mention, embed=em) + @commands.command() @asyncio.coroutine def tex(self, ctx, *, arg):