diff options
| author | Mel <einebeere@gmail.com> | 2022-04-02 02:42:12 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-04-03 23:50:05 +0200 |
| commit | dfeef2aad6fb25eadc13c12e1caea7160bfe6c3e (patch) | |
| tree | 23638e02600e7e17aa81c09afc8a6aff5c93a79e /pkg/bot | |
| parent | 7040cd50ae9a1408d1bb7a7c23b961f48d864143 (diff) | |
| download | jinx-dfeef2aad6fb25eadc13c12e1caea7160bfe6c3e.tar.zst jinx-dfeef2aad6fb25eadc13c12e1caea7160bfe6c3e.zip | |
Contact Discord through WS
Diffstat (limited to 'pkg/bot')
| -rw-r--r-- | pkg/bot/bot.go | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/pkg/bot/bot.go b/pkg/bot/bot.go index 28c506c..264e328 100644 --- a/pkg/bot/bot.go +++ b/pkg/bot/bot.go @@ -1,7 +1,24 @@ package bot -import "fmt" +import ( + "fmt" + "jinx/pkg/discord" +) -func Greet() { - fmt.Println("hello, world!") -} +const TOKEN = "123567890123456789012345678901234567890" + +func Start() error { + fmt.Println("hi..!") + + client := discord.NewClient(TOKEN) + + fmt.Println("connecting..") + + err := client.Connect() + + if err != nil { + return err + } + + return nil +} \ No newline at end of file |
