Adds hugemoji
This commit is contained in:
+19
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user