rename github account

This commit is contained in:
lyx0 2024-03-31 20:57:16 +02:00
parent 2860df87b9
commit 97eb05aef1
13 changed files with 21 additions and 21 deletions

View file

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2023 lyx0 Copyright (c) 2023 nouryxd
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View file

@ -7,7 +7,7 @@ import (
"github.com/gempir/go-twitch-irc/v4" "github.com/gempir/go-twitch-irc/v4"
"github.com/google/uuid" "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 // AddCommand splits a message into two parts and passes on the name and text

View file

@ -6,10 +6,10 @@ import (
"strings" "strings"
"github.com/gempir/go-twitch-irc/v4" "github.com/gempir/go-twitch-irc/v4"
"github.com/lyx0/nourybot/pkg/commands" "github.com/nouryxd/nourybot/pkg/commands"
"github.com/lyx0/nourybot/pkg/common" "github.com/nouryxd/nourybot/pkg/common"
"github.com/lyx0/nourybot/pkg/lastfm" "github.com/nouryxd/nourybot/pkg/lastfm"
"github.com/lyx0/nourybot/pkg/owm" "github.com/nouryxd/nourybot/pkg/owm"
) )
// handleCommand takes in a twitch.PrivateMessage and then routes the message // handleCommand takes in a twitch.PrivateMessage and then routes the message

View file

@ -13,8 +13,8 @@ import (
"github.com/jakecoffman/cron" "github.com/jakecoffman/cron"
"github.com/joho/godotenv" "github.com/joho/godotenv"
_ "github.com/lib/pq" _ "github.com/lib/pq"
"github.com/lyx0/nourybot/internal/data" "github.com/nouryxd/nourybot/internal/data"
"github.com/lyx0/nourybot/pkg/common" "github.com/nouryxd/nourybot/pkg/common"
"github.com/nicklaw5/helix/v2" "github.com/nicklaw5/helix/v2"
"go.uber.org/zap" "go.uber.org/zap"

View file

@ -12,8 +12,8 @@ import (
"sort" "sort"
"github.com/julienschmidt/httprouter" "github.com/julienschmidt/httprouter"
"github.com/lyx0/nourybot/internal/data" "github.com/nouryxd/nourybot/internal/data"
"github.com/lyx0/nourybot/pkg/common" "github.com/nouryxd/nourybot/pkg/common"
"github.com/nicklaw5/helix/v2" "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) { func (app *application) statusPageRoute(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
commit := common.GetVersion() commit := common.GetVersion()
started := common.GetUptime().Format("2006-1-2 15:4:5") 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( fmt.Print(w, fmt.Sprint(
"started: \t"+started+"\n"+ "started: \t"+started+"\n"+

View file

@ -7,7 +7,7 @@ import (
"github.com/gempir/go-twitch-irc/v4" "github.com/gempir/go-twitch-irc/v4"
"github.com/google/uuid" "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 // AddTimer slices the message into relevant parts, adding the values onto a

View file

@ -5,8 +5,8 @@ import (
"strconv" "strconv"
"github.com/gempir/go-twitch-irc/v4" "github.com/gempir/go-twitch-irc/v4"
"github.com/lyx0/nourybot/pkg/lastfm" "github.com/nouryxd/nourybot/pkg/lastfm"
"github.com/lyx0/nourybot/pkg/owm" "github.com/nouryxd/nourybot/pkg/owm"
) )
// InitUser is called on each command usage and checks if the user that sent the command // InitUser is called on each command usage and checks if the user that sent the command

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/lyx0/nourybot module github.com/nouryxd/nourybot
go 1.20 go 1.20

View file

@ -1,7 +1,7 @@
package commands package commands
import ( import (
"github.com/lyx0/nourybot/pkg/common" "github.com/nouryxd/nourybot/pkg/common"
) )
// Coinflip returns either "Heads!" or "Tails!" // Coinflip returns either "Heads!" or "Tails!"

View file

@ -3,8 +3,8 @@ package commands
import ( import (
"fmt" "fmt"
"github.com/lyx0/nourybot/pkg/common" "github.com/nouryxd/nourybot/pkg/common"
"github.com/lyx0/nourybot/pkg/humanize" "github.com/nouryxd/nourybot/pkg/humanize"
) )
// Ping returns information about the bot. // Ping returns information about the bot.

View file

@ -3,7 +3,7 @@ package commands
import ( import (
"fmt" "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 // Preview returns a link to an almost live image of a given twitch stream

View file

@ -6,7 +6,7 @@ import (
"io" "io"
"net/http" "net/http"
"github.com/lyx0/nourybot/pkg/common" "github.com/nouryxd/nourybot/pkg/common"
) )
type xkcdResponse struct { type xkcdResponse struct {

View file

@ -1,3 +1,3 @@
{{ define "footer" }} {{ define "footer" }}
Source: <a href="https://github.com/lyx0/nourybot">github</a> Source: <a href="https://github.com/nouryxd/nourybot">github</a>
{{ end }} {{ end }}