commit 62cd7b329e6756a9bf03b781b36087377480579b Author: nefrace Date: Thu Jan 19 23:12:55 2023 +0300 initial diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b230f81 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "nechotron"] + path = nechotron + url = https://git.nefrace.ru/nefrace/nechotron.git diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..8ad8715 --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module godette + +go 1.19 + +require ( + github.com/NicoNex/echotron/v3 v3.22.0 + github.com/google/uuid v1.3.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e7b48f2 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +github.com/NicoNex/echotron/v3 v3.22.0 h1:2ymJcjKqtZ/rfD5CveR2VKqQob7JmRgJmoLOJ3sim/4= +github.com/NicoNex/echotron/v3 v3.22.0/go.mod h1:LpP5IyHw0y+DZUZMBgXEDAF9O8feXrQu7w7nlJzzoZI= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= diff --git a/godette b/godette new file mode 100755 index 0000000..09135fc Binary files /dev/null and b/godette differ diff --git a/main.go b/main.go new file mode 100644 index 0000000..474ed09 --- /dev/null +++ b/main.go @@ -0,0 +1,11 @@ +package main + +import ( + "godette/nechotron" + "log" +) + +func main() { + neko := nechotron.NewTron("1698825178:AAHy4Er7z768CmYy9M5drJOMQO2S-QnwdTI", nil) + log.Fatal(neko.DispatchPoll()) +} diff --git a/nechotron b/nechotron new file mode 160000 index 0000000..af8982b --- /dev/null +++ b/nechotron @@ -0,0 +1 @@ +Subproject commit af8982be2db3515656e614ee194fa4f10c9b7b91