Nestor

Mon petit bot Discord
Log | Files | Refs

commit 1948c07f97b9e11d7e152f41bb328f423f26f701
parent b480e6f9438aefab7296eb14a557e967bdc4ec3a
Author: Doshirae <doshirae@doshirae.fr>
Date:   Wed, 10 Oct 2018 12:33:47 +0200

Latex command : removed file deletion

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

diff --git a/Nestor.rb b/Nestor.rb @@ -191,7 +191,6 @@ 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') - `rm output.png` end # }}} diff --git a/commandes.rb b/commandes.rb @@ -107,7 +107,6 @@ end def download_file(file) system(%Q(wget -O latex.png "http://rtex.probablyaweb.site/api/v2/#{file}")) convert_file("latex.png") - File.delete("latex.png") end def convert_file(file)