diff options
| author | Mel <einebeere@gmail.com> | 2022-04-04 00:18:04 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-04-04 00:18:04 +0200 |
| commit | b80bda2da026086523f1de8f460637a376c53bf2 (patch) | |
| tree | f9b31f2e42582e72b4a0859eb0abc7aad1a02c50 /pkg | |
| parent | 4cbe353d824d5064ee6f72f4693ee3c759b50e0a (diff) | |
| download | jinx-b80bda2da026086523f1de8f460637a376c53bf2.tar.zst jinx-b80bda2da026086523f1de8f460637a376c53bf2.zip | |
Grab bot token from enviroment variables
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/bot/bot.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/bot/bot.go b/pkg/bot/bot.go index a0c0808..71eb0e9 100644 --- a/pkg/bot/bot.go +++ b/pkg/bot/bot.go @@ -6,12 +6,10 @@ import ( "jinx/pkg/discord" ) -const TOKEN = "123567890123456789012345678901234567890" - -func Start() error { +func Start(token string) error { fmt.Println("hi..!") - client := discord.NewClient(TOKEN) + client := discord.NewClient(token) ctx, cancel := context.WithCancel(context.Background()) defer cancel() |
