aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-06-04 13:35:44 -0400
committerGitHub <noreply@github.com>2019-06-04 13:35:44 -0400
commit654f273baaaba63bf73fd46a65ecd1440c4758fe (patch)
tree00db6f9b02cc8f6e8cff51a22819e34b582b9c6b /web
parent7ce978fdecebdf623700fd8c5f882846f1a610ea (diff)
downloadx-654f273baaaba63bf73fd46a65ecd1440c4758fe.tar.xz
x-654f273baaaba63bf73fd46a65ecd1440c4758fe.zip
[minor] move to within.website/x (#14)
* move to within.website/x * Update user_agent.go * cmd/within.website: add bot info page
Diffstat (limited to 'web')
-rw-r--r--web/discordwebhook/webhook.go2
-rw-r--r--web/switchcounter/switchc.go2
-rw-r--r--web/tokipana/tokipana.go2
-rw-r--r--web/tokiponatokens/toki_pona.go2
-rw-r--r--web/user_agent.go2
5 files changed, 5 insertions, 5 deletions
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 {