From b08933b9f1f4a961b0290ceb27e81238d7a6ab2c Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Sun, 4 Dec 2022 16:31:04 +0100 Subject: [PATCH] Verwijder tex Gebruikt niemand, en vergt 10 gigabyte installs om lokaal te testen --- General.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/General.py b/General.py index 628e199..d433f05 100644 --- a/General.py +++ b/General.py @@ -45,24 +45,6 @@ class General(commands.Cog): 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): - """Geeft een mooi LaTeX plaatje terug. - Bijvoorbeeld: - !tex Je moeder is lelijk! $a^b b^c \\rightarrow d$ - """ - preamble = "\\documentclass[10pt]{article}\\pagestyle{empty}\\usepackage[margin=1in]{geometry}\\usepackage{amsmath, amsfonts}\\begin{document}" #\\usepackage{CJKutf8}\\usepackage[T1]{fontenc}\\usepackage[english]{babel} - options = ["-T", "tight", "-z", "9", "--truecolor", "-D", "512"] - preview(r''+arg+'', viewer='file', filename='test.png', dvioptions=options, preamble=preamble) - #file = open('test.png', 'rb') - #yield from ctx.channel.send(file, filename ='test.png', content='') - try: - yield from ctx.message.delete() - except: - print("No permission to delete message") - yield from ctx.channel.send(ctx.author.mention, file=discord.File('test.png', 'tex.png')) - def get_aww_post(self): raww = self.r.subreddit('aww+catloaf+tuckedinkitties+babyelephantgifs+babybigcatgifs+blep+holdmynip+gingerkitty+cathighfive+catsstandingup+catsareassholes+eyebleach') listing = list(raww.top(time_filter='month'))