]> git.openfl.eu Git - twitch-chat.git/commitdiff
rename module to include fl-gui.name
authorFl_GUI <flor.guilini@hotmail.com>
Sat, 18 May 2024 15:22:27 +0000 (17:22 +0200)
committerFl_GUI <flor.guilini@hotmail.com>
Sat, 18 May 2024 15:22:27 +0000 (17:22 +0200)
26 files changed:
go.mod
twitch/core/auth.go
twitch/core/capabilities.go
twitch/core/clearchat/message.go
twitch/core/clearmsg/message.go
twitch/core/connection.go
twitch/core/globaluserstate/message.go
twitch/core/hosttarget/message.go
twitch/core/join.go
twitch/core/messages/auth.go
twitch/core/messages/capability.go
twitch/core/messages/join.go
twitch/core/messages/messages.go
twitch/core/messages/ping.go
twitch/core/notice/message.go
twitch/core/pingpong.go
twitch/core/privmsg/message.go
twitch/core/reconnect/message.go
twitch/core/roomstate/message.go
twitch/core/usernotice/message.go
twitch/core/userstate/message.go
twitch/core/whisper/message.go
x/corechatclient/main.go
x/generate/message/clearchat/message.go [deleted file]
x/generate/message/generateMessage.go
x/generate/message/main.go

diff --git a/go.mod b/go.mod
index 667ca6e40e273a172553294790cab7546596f8e7..3e46365061b94f15bcc531c4fbdfd647cc29c59c 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -1,5 +1,5 @@
-module twitchchat
+module fl-gui.name/twitchchat
 
 go 1.22.3
 
-require golang.org/x/net v0.25.0 // indirect
+require golang.org/x/net v0.25.0
index edde3fff04c9bf584a1ca77127bd484a34afc911..22b238b31f08b2ea4b986e37cea5b5efbcd47f34 100644 (file)
@@ -2,9 +2,10 @@ package core
 
 import (
        "errors"
-       "twitchchat/twitch/core/commands"
-       "twitchchat/twitch/core/messages"
-       "twitchchat/twitch/core/notice"
+
+       "fl-gui.name/twitchchat/twitch/core/commands"
+       "fl-gui.name/twitchchat/twitch/core/messages"
+       "fl-gui.name/twitchchat/twitch/core/notice"
 )
 
 // see https://dev.twitch.tv/docs/irc/authenticate-bot/#sending-the-pass-and-nick-messages.
index 4d9b6b5666ca68115b57407e4156ca03ca068755..50d259c8fa9d2cc91144ec45a0126edb7db72a66 100644 (file)
@@ -3,7 +3,8 @@ package core
 import (
        "fmt"
        "strings"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
 )
 
 const (
index 1aac42c59243c70a97e986dca3bd21ec63798430..37324ac80fa2a5612d1feae884cb0f53cc47d044 100644 (file)
@@ -4,7 +4,8 @@ package clearchat
 
 import (
        "strings"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
 )
 
 type Clearchat struct {
index 29629674b5708f423e693bb2c579821fc53cb57d..bd6bee8608d7829a51dea51fcfca1e363d02a18e 100644 (file)
@@ -4,7 +4,8 @@ package clearmsg
 
 import (
        "strings"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
 )
 
 type Clearmsg struct {
index 149b6805ca6552efb3315680d5ab82ec2695bb39..be6f60868e2525fbcfe1e41dde255f53ae1ad616 100644 (file)
@@ -4,8 +4,9 @@ import (
        "bufio"
        "fmt"
        "io"
-       "twitchchat/irc"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/irc"
+       "fl-gui.name/twitchchat/twitch/core/messages"
 
        "golang.org/x/net/websocket"
 )
index 8c985e4bd5af1e2877cc8bc694219ad44d18bcb2..6c5f5f92225d95879696b33c9fb5d4a5eb2d5e7e 100644 (file)
@@ -2,7 +2,7 @@
 
 package globaluserstate
 
-import "twitchchat/twitch/core/messages"
+import "fl-gui.name/twitchchat/twitch/core/messages"
 
 type Globaluserstate struct {
        messages.Message
index a020ba7a71077b14d4aa5adc0170cace45b5228e..83f85fbe4e81f953c7dcfcb52066ca411925cdf8 100644 (file)
@@ -4,7 +4,8 @@ package hosttarget
 
 import (
        "strings"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
 )
 
 type Hosttarget struct {
index 1edc257f18633d9c51d201195a80f221540b85dd..22d7603e5e9d39d59c0974611d69153cdce8de20 100644 (file)
@@ -2,8 +2,9 @@ package core
 
 import (
        "fmt"
-       "twitchchat/twitch/core/messages"
-       "twitchchat/twitch/core/notice"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
+       "fl-gui.name/twitchchat/twitch/core/notice"
 )
 
 type ChannelMembers map[string][]string
index 775f93818bcc4be9d383ac6fdd0378231f47329f..43246d465a97d6f5a15f71d4c4ede5c45bad17e4 100644 (file)
@@ -2,8 +2,9 @@ package messages
 
 import (
        "fmt"
-       "twitchchat/irc"
-       "twitchchat/twitch/core/commands"
+
+       "fl-gui.name/twitchchat/irc"
+       "fl-gui.name/twitchchat/twitch/core/commands"
 )
 
 func Pass(nickname string) Message {
index 7898fff7f342955dba8714eaecaefaee8c537ada..320b5c1a86de5e3de3696e7a2e70d2e7f95ba2d5 100644 (file)
@@ -1,8 +1,8 @@
 package messages
 
 import (
-       "twitchchat/irc"
-       "twitchchat/twitch/core/commands"
+       "fl-gui.name/twitchchat/irc"
+       "fl-gui.name/twitchchat/twitch/core/commands"
 )
 
 func Capability(capability string) Message {
index bbc816576a1b88dcc773b4cf07ba6fd15ffb0cc0..3457adc19c788d917d8153bfb6747d4692b2770b 100644 (file)
@@ -2,8 +2,9 @@ package messages
 
 import (
        "strings"
-       "twitchchat/irc"
-       "twitchchat/twitch/core/commands"
+
+       "fl-gui.name/twitchchat/irc"
+       "fl-gui.name/twitchchat/twitch/core/commands"
 )
 
 func Join(channels ...string) Message {
index cdfd06eeed70b1b88d315a70c42f4bf2b83b0ac5..78532257c7142ffc83944e19c8531005809d9144 100644 (file)
@@ -1,6 +1,6 @@
 package messages
 
-import "twitchchat/irc"
+import "fl-gui.name/twitchchat/irc"
 
 type Message irc.Message
 
index b48bc1371762c5174dd0b98bf4c94764a9014d6f..8b88a67c58234902ce7f895a41e764ddbd8d0999 100644 (file)
@@ -1,8 +1,8 @@
 package messages
 
 import (
-       "twitchchat/irc"
-       "twitchchat/twitch/core/commands"
+       "fl-gui.name/twitchchat/irc"
+       "fl-gui.name/twitchchat/twitch/core/commands"
 )
 
 func IsPing(m Message) bool {
index 7ae9435a6b0edfb5725cd6bb1ff5a612103a4082..c0a4f4671c1d4e27efe5abfd905dd68f33ed8508 100644 (file)
@@ -4,7 +4,8 @@ package notice
 
 import (
        "strings"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
 )
 
 type Notice struct {
index 3a4dde85d922cdd88ac09e1a6e23fd32320211a6..04427c96bef52b9b44234629671fab262a41e42d 100644 (file)
@@ -1,6 +1,6 @@
 package core
 
-import "twitchchat/twitch/core/messages"
+import "fl-gui.name/twitchchat/twitch/core/messages"
 
 // Intercept received ping messages and respond to them with an appropriate pong
 func (c *Conn) PingPong(msgs <-chan messages.Message) <-chan messages.Message {
index 03d84c278210f1e46e31f14ff3a00586b87a45b4..1cf0771f0b5f2438152305eae1a0515dd4acc294 100644 (file)
@@ -4,7 +4,8 @@ package privmsg
 
 import (
        "strings"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
 )
 
 type Privmsg struct {
index 632c90b82ad14cb90d7a5c363c63e2dd6cae943a..22fd7ea7d1e8175f2346bce029f840826d09fb64 100644 (file)
@@ -2,7 +2,7 @@
 
 package reconnect
 
-import "twitchchat/twitch/core/messages"
+import "fl-gui.name/twitchchat/twitch/core/messages"
 
 type Reconnect struct {
        messages.Message
index 61997b447397626492a6e0b9fa5a7da7559fcf14..e291e689733fcf79bf72c3f03fc3c4b483ea4a58 100644 (file)
@@ -2,7 +2,7 @@
 
 package roomstate
 
-import "twitchchat/twitch/core/messages"
+import "fl-gui.name/twitchchat/twitch/core/messages"
 
 type Roomstate struct {
        messages.Message
index 0a981cb594e102e0cf749948952c1056a0062426..784f112ca2e06000e8c32b5f0acc33509750741d 100644 (file)
@@ -4,7 +4,8 @@ package usernotice
 
 import (
        "strings"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
 )
 
 type Usernotice struct {
index 975ecab758f12b7bace4c47d1b09bffc57e85c4c..69609108a946d02ebc70bd0f6ce4192fbc8eca81 100644 (file)
@@ -2,7 +2,7 @@
 
 package userstate
 
-import "twitchchat/twitch/core/messages"
+import "fl-gui.name/twitchchat/twitch/core/messages"
 
 type Userstate struct {
        messages.Message
index 9ed16a50f534aaab59708b99f876e30697aabef4..7bb368acce1ebe8ac2e2e373bde8dc5a2a324317 100644 (file)
@@ -4,7 +4,8 @@ package whisper
 
 import (
        "strings"
-       "twitchchat/twitch/core/messages"
+
+       "fl-gui.name/twitchchat/twitch/core/messages"
 )
 
 type Whisper struct {
index 56055e9470a908b96cef870b824e5a2251c4f476..11606431db2600270f678af42ca9b7eb68c304bd 100644 (file)
@@ -5,9 +5,10 @@ import (
        "flag"
        "fmt"
        "strings"
-       "twitchchat/twitch/core"
-       "twitchchat/twitch/core/messages"
-       "twitchchat/twitch/core/privmsg"
+
+       "fl-gui.name/twitchchat/twitch/core"
+       "fl-gui.name/twitchchat/twitch/core/messages"
+       "fl-gui.name/twitchchat/twitch/core/privmsg"
 )
 
 var channel = flag.String("channel", "fl_gui", "channel to read")
diff --git a/x/generate/message/clearchat/message.go b/x/generate/message/clearchat/message.go
deleted file mode 100644 (file)
index 1856896..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-// generated by /tmp/go-build2868507172/b001/exe/message
-
-package clearchat
-
-import (
-       "strings"
-       "twitchchat/irc"
-)
-
-type Clearchat struct {
-       irc.Message
-}
-
-func IsClearchat(m irc.Message) bool { return string(m.Command) == "CLEARCHAT" }
-
-func (m Clearchat) Channel() string { return m.Params.Params[0][1:] }
-
-func (m Clearchat) User() string { return strings.Split(m.Params.Trailing, " ")[0][0:] }
-
-func (m Clearchat) Duration() string {
-       for _, t := range m.Tags {
-               if t.Key == "ban-duration" {
-                       return t.Value
-               }
-       }
-       return ""
-}
-
-func (m Clearchat) RoomId() string {
-       for _, t := range m.Tags {
-               if t.Key == "room-id" {
-                       return t.Value
-               }
-       }
-       return ""
-}
-
-func (m Clearchat) UserId() string {
-       for _, t := range m.Tags {
-               if t.Key == "target-user-id" {
-                       return t.Value
-               }
-       }
-       return ""
-}
-
-func (m Clearchat) Timestamp() string {
-       for _, t := range m.Tags {
-               if t.Key == "tmi-sent-ts" {
-                       return t.Value
-               }
-       }
-       return ""
-}
index 46500f8b764ca7736359e4c6c51fbf676311b141..bb995875c2c0ea437f62478d0beb41cc42393301 100644 (file)
@@ -5,7 +5,8 @@ import (
        "io"
        "os"
        "strings"
-       "twitchchat/irc"
+
+       "fl-gui.name/twitchchat/irc"
 )
 
 func generateMessage(msg irc.Message, w io.Writer) (n int, err error) {
index 6c76020427330115a2b99a6511c89d768e3988cd..eca2cadb3b1b5f511bad1a8fedd6f1bc436eb905 100644 (file)
@@ -7,7 +7,8 @@ import (
        "io/fs"
        "os"
        "path"
-       "twitchchat/irc"
+
+       "fl-gui.name/twitchchat/irc"
 )
 
 var prototype = flag.String("proto", "", "The prototype of the tags + message as a valid IRC message")