Skip to content

Commit

Permalink
fix: 💥 change package name to discordle
Browse files Browse the repository at this point in the history
package name is changed!
  • Loading branch information
vidhanio committed Jan 26, 2022
1 parent aa7b5fc commit 9bdb7d3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bot.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bot
package discordle

import (
"os"
Expand Down
4 changes: 2 additions & 2 deletions cmd/bot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bot
package discordle

import (
"github.com/bwmarrin/discordgo"
Expand Down
6 changes: 3 additions & 3 deletions game.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bot
package discordle

import (
"fmt"
Expand Down Expand Up @@ -80,15 +80,15 @@ 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"
} else {
embed.Title = "Wordle - Lost"
}

embed.Color = 0xED4245
embed.Color = wordleRed

builder := strings.Builder{}

Expand Down
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bot
package discordle

import (
"regexp"
Expand Down
4 changes: 2 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bot
package discordle

import (
"github.com/bwmarrin/discordgo"
Expand All @@ -9,7 +9,7 @@ const ephemeralFlag = 1 << 6

const (
wordleGreen = 0x7AB457
wordleYellow = 0xF2E8B3
wordleYellow = 0xFDCD56
wordleBlack = 0x293137
wordleRed = 0xDF2640
)
Expand Down

0 comments on commit 9bdb7d3

Please sign in to comment.