From b80bda2da026086523f1de8f460637a376c53bf2 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 4 Apr 2022 00:18:04 +0200 Subject: Grab bot token from enviroment variables --- pkg/bot/bot.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pkg') 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() -- cgit 1.4.1