Nestor

Mon petit bot Discord
Log | Files | Refs

commit 3e0ee912c0aa0ae9e3c9fb4a314be240d8697fb9
parent 9607957c7fe33682501274c4129023a85d683dad
Author: Doshirae <doshirae@doshirae.fr>
Date:   Wed, 10 Oct 2018 12:52:45 +0200

Latex command : put back the deletion of files

Diffstat:
Nestor.rb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Nestor.rb b/Nestor.rb @@ -191,7 +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" + %x(rm output.png) end # }}}