diff options
-rw-r--r-- | bot/bonjour.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/bonjour.go b/bot/bonjour.go index d23ebf9..cb87a34 100644 --- a/bot/bonjour.go +++ b/bot/bonjour.go @@ -21,7 +21,7 @@ func bonjour(output chan irc.Message, msg irc.Message) { return } - img, err := httpGetXpath("http://www.bonjourmadame.fr/page/"+string(rand.Intn(2370)+1), "//div[@class='photo post']//img/@src") + img, err := httpGetXpath("http://www.bonjourmadame.fr/page/"+fmt.Sprintf("%d", rand.Intn(2370)+1), "//div[@class='photo post']//img/@src") if err != nil { rmsg = fmt.Sprint("error:", err) } else { |