From 599d7b3d3439b2e3560fb54525fd6d4a3fd4a6d1 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sat, 19 Feb 2022 05:40:19 +0100 Subject: [PATCH 1/3] change administator twitch name --- cmd/main.go | 4 ++-- pkg/db/listchannel.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index bd3935a..d9501db 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -55,10 +55,10 @@ func main() { db.InitialJoin(nb) } else if *runMode == "dev" { - log.Info("[DEV]: Joining nouryxd and nourybot.") + log.Info("[DEV]: Joining whereismymnd and nourybot.") // Development, only join my two channels - nb.TwitchClient.Join("nouryxd", "nourybot") + nb.TwitchClient.Join("whereismymnd", "nourybot") nb.Send("nourybot", "[DEV] Badabing Badaboom Pepepains") } diff --git a/pkg/db/listchannel.go b/pkg/db/listchannel.go index 4122bdb..ea074ad 100644 --- a/pkg/db/listchannel.go +++ b/pkg/db/listchannel.go @@ -33,5 +33,5 @@ func ListChannel(nb *bot.Bot) { channelList += ch.Name + " " } - nb.TwitchClient.Whisper("nouryxd", channelList) + nb.TwitchClient.Whisper("whereismymnd", channelList) } From 682a33b0fe12d9dbc973c8bc5987ddd902ff39f6 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sat, 19 Feb 2022 05:57:45 +0100 Subject: [PATCH 2/3] update .env.example --- .env.example | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index a128ba4..68c60af 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,25 @@ TWITCH_USER=forsen TWITCH_PASS=oauth:asdhjadsjksajkhdjhksadjkias BOT_USER_ID=133769 -MONGO_URI=mongodb+srv://coolurihere \ No newline at end of file +MONGO_URI=mongodb+srv://coolurihere + + +BOT_USERNAME=forsen +BOT_USER_ID=133769 +BOT_PASS=oauth:cool123oauthstringhere + +# Administrator is the super user for which all commands should work for. +# Put the name you login with as the ADMIN_LOGIN and the Twitch UserID for that account as the ADMIN_USERID +# If you don't know your Twitch UserID follow this: +# go to https://twitch.tv/nourybot and write "()uid [username]" in the chat and my bot should +# respond with the UserID +ADMIN_LOGIN=pajlada +ADMIN_USERID=11148817 + +# Create new application here https://dev.twitch.tv/console/apps and +# fill in the Client ID and Client Secret you get. +CLIENT_ID=hashdashjudsadhashd +CLIENT_SECRET=asdoaijsdiouasioudasiuo + + + From 197924a1f1949444c755ffaf0327b737dded5285 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sat, 19 Feb 2022 06:01:35 +0100 Subject: [PATCH 3/3] fix tests --- pkg/api/ivr/userid_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/ivr/userid_test.go b/pkg/api/ivr/userid_test.go index 2f2f060..1f20fc9 100644 --- a/pkg/api/ivr/userid_test.go +++ b/pkg/api/ivr/userid_test.go @@ -4,7 +4,7 @@ import "testing" func TestUserid(t *testing.T) { t.Run("returns a link to a users profile picture", func(t *testing.T) { - request := Userid("nouryxd") + request := Userid("whereismymnd") response := "31437432" got := request