From 9bdb7d3bec04e1bfdfe60282e86f7409c2e40867 Mon Sep 17 00:00:00 2001 From: Vidhan Bhatt Date: Tue, 25 Jan 2022 23:34:59 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=92=A5=20change=20package=20name?= =?UTF-8?q?=20to=20discordle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit package name is changed! --- bot.go | 2 +- cmd/bot/main.go | 4 ++-- command.go | 2 +- game.go | 6 +++--- handler.go | 2 +- utils.go | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bot.go b/bot.go index 6396f67..6a8cfde 100644 --- a/bot.go +++ b/bot.go @@ -1,4 +1,4 @@ -package bot +package discordle import ( "os" diff --git a/cmd/bot/main.go b/cmd/bot/main.go index c350190..d10ee0c 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -9,7 +9,7 @@ import ( "github.com/joho/godotenv" "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "github.com/vidhanio/wordle/bot" + "github.com/vidhanio/discordle" ) func main() { @@ -58,7 +58,7 @@ func main() { log.Debug().Msg("Done reading word lists.") log.Debug().Msg("Starting bot...") - bot, err := bot.New( + bot, err := discordle.New( commonWords, validWords, 6, diff --git a/command.go b/command.go index e8662c8..fbe449c 100644 --- a/command.go +++ b/command.go @@ -1,4 +1,4 @@ -package bot +package discordle import ( "github.com/bwmarrin/discordgo" diff --git a/game.go b/game.go index 1f13670..7c0ece0 100644 --- a/game.go +++ b/game.go @@ -1,4 +1,4 @@ -package bot +package discordle import ( "fmt" @@ -80,7 +80,7 @@ func (wg *wordleGame) embed() *discordgo.MessageEmbed { if wg.Won() { embed.Title = "Wordle - Won" - embed.Color = 0x57F287 + embed.Color = wordleGreen } else if wg.Cancelled() || wg.Lost() { if wg.Cancelled() { embed.Title = "Wordle - Cancelled" @@ -88,7 +88,7 @@ func (wg *wordleGame) embed() *discordgo.MessageEmbed { embed.Title = "Wordle - Lost" } - embed.Color = 0xED4245 + embed.Color = wordleRed builder := strings.Builder{} diff --git a/handler.go b/handler.go index f72fc97..c6f5398 100644 --- a/handler.go +++ b/handler.go @@ -1,4 +1,4 @@ -package bot +package discordle import ( "regexp" diff --git a/utils.go b/utils.go index 7f2bff6..2729af5 100644 --- a/utils.go +++ b/utils.go @@ -1,4 +1,4 @@ -package bot +package discordle import ( "github.com/bwmarrin/discordgo" @@ -9,7 +9,7 @@ const ephemeralFlag = 1 << 6 const ( wordleGreen = 0x7AB457 - wordleYellow = 0xF2E8B3 + wordleYellow = 0xFDCD56 wordleBlack = 0x293137 wordleRed = 0xDF2640 )