summaryrefslogtreecommitdiffstats
path: root/bot/bonjour.go
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2015-11-21 12:51:43 +0100
committerRobert Gerus <arachnist@i.am-a.cat>2015-11-29 17:14:40 +0100
commit7dee9b445f279eeccb2168b7278d58fef654dd01 (patch)
tree258dd04c81dd1dc9328b2bc7862da4d97b94214b /bot/bonjour.go
parent0d055fdb496756ebf5dc2325cdb1694b41249b37 (diff)
downloadgorepost-7dee9b445f279eeccb2168b7278d58fef654dd01.tar.gz
gorepost-7dee9b445f279eeccb2168b7278d58fef654dd01.tar.bz2
gorepost-7dee9b445f279eeccb2168b7278d58fef654dd01.tar.xz
gorepost-7dee9b445f279eeccb2168b7278d58fef654dd01.zip
Fix url building in bonjour.go
Diffstat (limited to 'bot/bonjour.go')
-rw-r--r--bot/bonjour.go2
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 {