Nestor

Mon petit bot Discord
Log | Files | Refs

commit 9607957c7fe33682501274c4129023a85d683dad
parent f4de044b5b9edb57d7678f81191db8a5590b866d
Author: Doshirae <doshirae@doshirae.fr>
Date:   Wed, 10 Oct 2018 12:50:24 +0200

Latex command : put back the deletion of files

Diffstat:
Nestor.rb | 1+
commandes.rb | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Nestor.rb b/Nestor.rb @@ -191,6 +191,7 @@ end bot.command(:latex, description: "Renvoie une image avec du LaTeX [EXPERIMENTAL, n'utiliser que du latex, pas d'unicode]", usage: "!latex <latex>") do |event, *latex| latex(latex) event.channel.send_file File.new('output.png') + File.delete "output.png" end # }}} diff --git a/commandes.rb b/commandes.rb @@ -107,6 +107,7 @@ end def download_file(file) %x(wget -O latex.png "http://rtex.probablyaweb.site/api/v2/#{file}") convert_file("latex.png") + File.delete("latex.png") end def convert_file(file)