From 654f273baaaba63bf73fd46a65ecd1440c4758fe Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 4 Jun 2019 13:35:44 -0400 Subject: [minor] move to within.website/x (#14) * move to within.website/x * Update user_agent.go * cmd/within.website: add bot info page --- web/discordwebhook/webhook.go | 2 +- web/switchcounter/switchc.go | 2 +- web/tokipana/tokipana.go | 2 +- web/tokiponatokens/toki_pona.go | 2 +- web/user_agent.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'web') diff --git a/web/discordwebhook/webhook.go b/web/discordwebhook/webhook.go index 91df381..c09b89c 100644 --- a/web/discordwebhook/webhook.go +++ b/web/discordwebhook/webhook.go @@ -6,7 +6,7 @@ import ( "encoding/json" "net/http" - "github.com/Xe/x/web" + "within.website/x/web" ) // Webhook is the parent structure fired off to Discord. diff --git a/web/switchcounter/switchc.go b/web/switchcounter/switchc.go index f40929f..7acbe43 100644 --- a/web/switchcounter/switchc.go +++ b/web/switchcounter/switchc.go @@ -7,7 +7,7 @@ import ( "net/http" "time" - "github.com/Xe/x/web" + "within.website/x/web" ) type arg struct { diff --git a/web/tokipana/tokipana.go b/web/tokipana/tokipana.go index b5871ee..c8049e7 100644 --- a/web/tokipana/tokipana.go +++ b/web/tokipana/tokipana.go @@ -5,7 +5,7 @@ import ( "net/http" "net/url" - "github.com/Xe/x/web" + "within.website/x/web" ) // The API URL. diff --git a/web/tokiponatokens/toki_pona.go b/web/tokiponatokens/toki_pona.go index c3e3fe3..d322f67 100644 --- a/web/tokiponatokens/toki_pona.go +++ b/web/tokiponatokens/toki_pona.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "github.com/Xe/x/web" + "within.website/x/web" ) // Part is an individual part of a sentence. diff --git a/web/user_agent.go b/web/user_agent.go index 99885a4..249f6b7 100644 --- a/web/user_agent.go +++ b/web/user_agent.go @@ -27,7 +27,7 @@ func init() { // GenUserAgent creates a unique User-Agent string for outgoing HTTP requests. func GenUserAgent() string { - return fmt.Sprintf("github.com-Xe-x (%s/%s/%s; %s; +https://github.com/Xe/x/blob/master/web/x.md) Alive (%s; sandflake) Hostname/%s Started (%s)", runtime.Version(), runtime.GOOS, runtime.GOARCH, os.Args[0], startID.String(), hostname, started.Format(time.RFC3339)) + return fmt.Sprintf("github.com-Xe-x (%s/%s/%s; %s; +https://within.website/.x.botinfo) Alive (%s; sandflake) Hostname/%s Started (%s)", runtime.Version(), runtime.GOOS, runtime.GOARCH, os.Args[0], startID.String(), hostname, started.Format(time.RFC3339)) } type userAgentTransport struct { -- cgit v1.2.3