aboutsummaryrefslogtreecommitdiff
path: root/pkg/bot
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/bot')
-rw-r--r--pkg/bot/bot.go25
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