mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
rename github account
This commit is contained in:
parent
2860df87b9
commit
97eb05aef1
2
LICENSE
2
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"+
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/lyx0/nourybot
|
||||
module github.com/nouryxd/nourybot
|
||||
|
||||
go 1.20
|
||||
|
||||
|
|
|
@ -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!"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/lyx0/nourybot/pkg/common"
|
||||
"github.com/nouryxd/nourybot/pkg/common"
|
||||
)
|
||||
|
||||
type xkcdResponse struct {
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{ define "footer" }}
|
||||
Source: <a href="https://github.com/lyx0/nourybot">github</a>
|
||||
Source: <a href="https://github.com/nouryxd/nourybot">github</a>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue