Nestor

Mon petit bot Discord
Log | Files | Refs

commit 7a6ad2a6cd48cd8ad910964465e2dfcac8721416
parent a25958e5cc27b09165a27c78a32a9f1b54fe52f0
Author: Doshirae <doshirae@doshirae.fr>
Date:   Wed,  4 Apr 2018 18:11:53 +0200

Sanitized the dl feature : oops, failed the name of a variable

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

diff --git a/Nestor.rb b/Nestor.rb @@ -120,7 +120,7 @@ bot.command(:xkcd, description: "Renvoie une page XKCD") do |event, num| end # <== -bot.command(:dl) do |event, img| +bot.command(:dl) do |event, uri| require "net/http" if idx = uri =~ /jpe?g|png|gif$/ ext = uri[idx..-1]