diff --git a/cmd/test/cmd.go b/cmd/test/cmd.go index 4f78c11..f2f606a 100644 --- a/cmd/test/cmd.go +++ b/cmd/test/cmd.go @@ -1,18 +1,18 @@ package main import ( - "vultras.su/core/tg" + "surdeus.su/core/tg" "os" ) -var UsageAction = tg.Func(func(c tg.Context){ +var UsageAction = tg.Func(func(c tg.Context) { c.Sendf( "There is no such command %q", c.CallbackUpdate().Message.Command(), ) }) -var PreStartAction = tg.Func(func(c tg.Context){ +var PreStartAction = tg.Func(func(c tg.Context) { c.Sendf("Please, use /start ") }) @@ -25,7 +25,7 @@ var BotCommands = []tg.Command{ "info", "info desc", ).WithAction(tg.Func(func(c tg.Context) { - c.SendfHTML(`cockcock die`) + c.SendfHTML(`cockcock die`) })), tg.NewCommand("hello", "sends the 'Hello, World!' message back"). WithAction(tg.Func(func(c tg.Context) { @@ -84,4 +84,3 @@ var BotCommands = []tg.Command{ ) })), } - diff --git a/cmd/test/incdec.go b/cmd/test/incdec.go index 29a5b66..a8c4fa5 100644 --- a/cmd/test/incdec.go +++ b/cmd/test/incdec.go @@ -1,7 +1,7 @@ package main import ( - "vultras.su/core/tg" + "surdeus.su/core/tg" "fmt" ) @@ -63,4 +63,3 @@ var IncDecWidget = tg.RenderFunc(func(c tg.Context) tg.UI { ), } }) - diff --git a/cmd/test/keyboard.go b/cmd/test/keyboard.go index 56dbff8..fa5f60e 100644 --- a/cmd/test/keyboard.go +++ b/cmd/test/keyboard.go @@ -1,7 +1,7 @@ package main import ( - "vultras.su/core/tg" + "surdeus.su/core/tg" ) var HomeButton = tg.Buttonf("Home").Go("/") diff --git a/cmd/test/location.go b/cmd/test/location.go index b2dd43c..a03eeea 100644 --- a/cmd/test/location.go +++ b/cmd/test/location.go @@ -1,7 +1,7 @@ package main import ( - "vultras.su/core/tg" + "surdeus.su/core/tg" ) const ( diff --git a/cmd/test/main.go b/cmd/test/main.go index 047615f..e5b7c37 100644 --- a/cmd/test/main.go +++ b/cmd/test/main.go @@ -4,7 +4,7 @@ import ( "log" "os" - "vultras.su/core/tg" + "surdeus.su/core/tg" ) type BotData struct { @@ -74,7 +74,7 @@ func main() { log.Panic(err) } bot = bot.SetBehaviour(beh) - //SetDebug(true) + //SetDebug(true) bot.SetData(&BotData{ Name: "Jay", diff --git a/cmd/test/mutate.go b/cmd/test/mutate.go index 50afce3..84c6eb1 100644 --- a/cmd/test/mutate.go +++ b/cmd/test/mutate.go @@ -1,7 +1,7 @@ package main import ( - "vultras.su/core/tg" + "surdeus.su/core/tg" "strings" ) @@ -44,10 +44,10 @@ func (w *MutateMessageCompo) Filter(u tg.Update) bool { } const ( - UpperCasePath tg.Path = "upper-case" - LowerCasePath = "lower-case" - EscapePath = "escape" - MutateMessagesPath = "mutate-messages" + UpperCasePath tg.Path = "upper-case" + LowerCasePath = "lower-case" + EscapePath = "escape" + MutateMessagesPath = "mutate-messages" ) var MutateMessagesWidget = tg.RenderFunc(func(c tg.Context) tg.UI { @@ -97,4 +97,3 @@ var MutateMessagesEscapeWidget = tg.RenderFunc(func(c tg.Context) tg.UI { NewMutateMessageCompo(tg.Escape2), } }) - diff --git a/cmd/test/panel.go b/cmd/test/panel.go index 164ba02..0156431 100644 --- a/cmd/test/panel.go +++ b/cmd/test/panel.go @@ -1,7 +1,7 @@ package main import ( - "vultras.su/core/tg" + "surdeus.su/core/tg" ) const ( @@ -10,8 +10,8 @@ const ( var PanelWidget = tg.RenderFunc(func(c tg.Context) tg.UI { var ( - n = 0 - ln = 4 + n = 0 + ln = 4 panel *tg.PanelCompo ) diff --git a/cmd/test/start.go b/cmd/test/start.go index 9174914..0dc5389 100644 --- a/cmd/test/start.go +++ b/cmd/test/start.go @@ -1,13 +1,14 @@ package main import ( - "vultras.su/core/tg" + "surdeus.su/core/tg" "fmt" ) const ( StartAbsPath tg.Path = "/" ) + var StartWidget = tg.RenderFunc(func(c tg.Context) tg.UI { return tg.UI{ tg.Messagef( diff --git a/go.mod b/go.mod index e6f1efe..f6244f8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module vultras.su/core/tg +module surdeus.su/core/tg go 1.20