From 97eb05aef1d682985368921d00840f9ab1971f87 Mon Sep 17 00:00:00 2001
From: lyx0 <66651385+lyx0@users.noreply.github.com>
Date: Sun, 31 Mar 2024 20:57:16 +0200
Subject: [PATCH] rename github account
---
LICENSE | 2 +-
cmd/nourybot/command.go | 2 +-
cmd/nourybot/commands.go | 8 ++++----
cmd/nourybot/main.go | 4 ++--
cmd/nourybot/router.go | 6 +++---
cmd/nourybot/timer.go | 2 +-
cmd/nourybot/user.go | 4 ++--
go.mod | 2 +-
pkg/commands/coinflip.go | 2 +-
pkg/commands/ping.go | 4 ++--
pkg/commands/preview.go | 2 +-
pkg/commands/xkcd.go | 2 +-
web/templates/footer.partial.gohtml | 2 +-
13 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/LICENSE b/LICENSE
index c428445..11f861c 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2023 lyx0
+Copyright (c) 2023 nouryxd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/cmd/nourybot/command.go b/cmd/nourybot/command.go
index d92983d..4630742 100644
--- a/cmd/nourybot/command.go
+++ b/cmd/nourybot/command.go
@@ -7,7 +7,7 @@ import (
"github.com/gempir/go-twitch-irc/v4"
"github.com/google/uuid"
- "github.com/lyx0/nourybot/internal/data"
+ "github.com/nouryxd/nourybot/internal/data"
)
// AddCommand splits a message into two parts and passes on the name and text
diff --git a/cmd/nourybot/commands.go b/cmd/nourybot/commands.go
index ab19904..f8384c1 100644
--- a/cmd/nourybot/commands.go
+++ b/cmd/nourybot/commands.go
@@ -6,10 +6,10 @@ import (
"strings"
"github.com/gempir/go-twitch-irc/v4"
- "github.com/lyx0/nourybot/pkg/commands"
- "github.com/lyx0/nourybot/pkg/common"
- "github.com/lyx0/nourybot/pkg/lastfm"
- "github.com/lyx0/nourybot/pkg/owm"
+ "github.com/nouryxd/nourybot/pkg/commands"
+ "github.com/nouryxd/nourybot/pkg/common"
+ "github.com/nouryxd/nourybot/pkg/lastfm"
+ "github.com/nouryxd/nourybot/pkg/owm"
)
// handleCommand takes in a twitch.PrivateMessage and then routes the message
diff --git a/cmd/nourybot/main.go b/cmd/nourybot/main.go
index 58db135..91a8d39 100644
--- a/cmd/nourybot/main.go
+++ b/cmd/nourybot/main.go
@@ -13,8 +13,8 @@ import (
"github.com/jakecoffman/cron"
"github.com/joho/godotenv"
_ "github.com/lib/pq"
- "github.com/lyx0/nourybot/internal/data"
- "github.com/lyx0/nourybot/pkg/common"
+ "github.com/nouryxd/nourybot/internal/data"
+ "github.com/nouryxd/nourybot/pkg/common"
"github.com/nicklaw5/helix/v2"
"go.uber.org/zap"
diff --git a/cmd/nourybot/router.go b/cmd/nourybot/router.go
index fb8a383..784e536 100644
--- a/cmd/nourybot/router.go
+++ b/cmd/nourybot/router.go
@@ -12,8 +12,8 @@ import (
"sort"
"github.com/julienschmidt/httprouter"
- "github.com/lyx0/nourybot/internal/data"
- "github.com/lyx0/nourybot/pkg/common"
+ "github.com/nouryxd/nourybot/internal/data"
+ "github.com/nouryxd/nourybot/pkg/common"
"github.com/nicklaw5/helix/v2"
)
@@ -357,7 +357,7 @@ func (app *application) channelCommandsRoute(w http.ResponseWriter, r *http.Requ
func (app *application) statusPageRoute(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
commit := common.GetVersion()
started := common.GetUptime().Format("2006-1-2 15:4:5")
- commitLink := fmt.Sprintf("https://github.com/lyx0/nourybot/commit/%v", common.GetVersionPure())
+ commitLink := fmt.Sprintf("https://github.com/nouryxd/nourybot/commit/%v", common.GetVersionPure())
fmt.Print(w, fmt.Sprint(
"started: \t"+started+"\n"+
diff --git a/cmd/nourybot/timer.go b/cmd/nourybot/timer.go
index 5ce63d6..b92d9fe 100644
--- a/cmd/nourybot/timer.go
+++ b/cmd/nourybot/timer.go
@@ -7,7 +7,7 @@ import (
"github.com/gempir/go-twitch-irc/v4"
"github.com/google/uuid"
- "github.com/lyx0/nourybot/internal/data"
+ "github.com/nouryxd/nourybot/internal/data"
)
// AddTimer slices the message into relevant parts, adding the values onto a
diff --git a/cmd/nourybot/user.go b/cmd/nourybot/user.go
index 4326a43..4347411 100644
--- a/cmd/nourybot/user.go
+++ b/cmd/nourybot/user.go
@@ -5,8 +5,8 @@ import (
"strconv"
"github.com/gempir/go-twitch-irc/v4"
- "github.com/lyx0/nourybot/pkg/lastfm"
- "github.com/lyx0/nourybot/pkg/owm"
+ "github.com/nouryxd/nourybot/pkg/lastfm"
+ "github.com/nouryxd/nourybot/pkg/owm"
)
// InitUser is called on each command usage and checks if the user that sent the command
diff --git a/go.mod b/go.mod
index 16fbc7e..1ac8336 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/lyx0/nourybot
+module github.com/nouryxd/nourybot
go 1.20
diff --git a/pkg/commands/coinflip.go b/pkg/commands/coinflip.go
index d52fdb1..4010819 100644
--- a/pkg/commands/coinflip.go
+++ b/pkg/commands/coinflip.go
@@ -1,7 +1,7 @@
package commands
import (
- "github.com/lyx0/nourybot/pkg/common"
+ "github.com/nouryxd/nourybot/pkg/common"
)
// Coinflip returns either "Heads!" or "Tails!"
diff --git a/pkg/commands/ping.go b/pkg/commands/ping.go
index a473a7b..14103e3 100644
--- a/pkg/commands/ping.go
+++ b/pkg/commands/ping.go
@@ -3,8 +3,8 @@ package commands
import (
"fmt"
- "github.com/lyx0/nourybot/pkg/common"
- "github.com/lyx0/nourybot/pkg/humanize"
+ "github.com/nouryxd/nourybot/pkg/common"
+ "github.com/nouryxd/nourybot/pkg/humanize"
)
// Ping returns information about the bot.
diff --git a/pkg/commands/preview.go b/pkg/commands/preview.go
index 8b992de..0f54d42 100644
--- a/pkg/commands/preview.go
+++ b/pkg/commands/preview.go
@@ -3,7 +3,7 @@ package commands
import (
"fmt"
- "github.com/lyx0/nourybot/pkg/common"
+ "github.com/nouryxd/nourybot/pkg/common"
)
// Preview returns a link to an almost live image of a given twitch stream
diff --git a/pkg/commands/xkcd.go b/pkg/commands/xkcd.go
index 82de4d9..e5ced83 100644
--- a/pkg/commands/xkcd.go
+++ b/pkg/commands/xkcd.go
@@ -6,7 +6,7 @@ import (
"io"
"net/http"
- "github.com/lyx0/nourybot/pkg/common"
+ "github.com/nouryxd/nourybot/pkg/common"
)
type xkcdResponse struct {
diff --git a/web/templates/footer.partial.gohtml b/web/templates/footer.partial.gohtml
index 0e772f5..5e6b6f9 100644
--- a/web/templates/footer.partial.gohtml
+++ b/web/templates/footer.partial.gohtml
@@ -1,3 +1,3 @@
{{ define "footer" }}
-Source: github
+Source: github
{{ end }}