Adds hugemoji

This commit is contained in:
Mark Hoekveen
2018-08-22 16:58:11 +02:00
parent 3353e24d5d
commit cfe318935b
+19
View File
@@ -3,6 +3,7 @@ import discord
import sys, os import sys, os
import praw import praw
import random import random
import re
from discord.ext import commands from discord.ext import commands
from sympy import latex, symbols, preview, Symbol #for LaTeX images 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? def __check(self, ctx): #Todo: Is dit het porno kanaal?
return True 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() @commands.command()
@asyncio.coroutine @asyncio.coroutine
def tex(self, ctx, *, arg): def tex(self, ctx, *, arg):