Skip to content

Commit

Permalink
Merge pull request #53 from wneessen/0.3.1-maintenance-release
Browse files Browse the repository at this point in the history
v0.3.1: Maintenance release
  • Loading branch information
wneessen authored Apr 17, 2023
2 parents b19fe2e + aff903c commit 85b2b4d
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 8 deletions.
1 change: 1 addition & 0 deletions bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/bwmarrin/discordgo"
"github.com/rs/zerolog"

"github.com/wneessen/arrgo/config"
"github.com/wneessen/arrgo/crypto"
"github.com/wneessen/arrgo/model"
Expand Down
1 change: 1 addition & 0 deletions bot/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
_ "github.com/golang-migrate/migrate/v4/database/postgres"
_ "github.com/golang-migrate/migrate/v4/source/file"
_ "github.com/lib/pq"

"github.com/wneessen/arrgo/config"
"github.com/wneessen/arrgo/model"
)
Expand Down
1 change: 1 addition & 0 deletions bot/handler_guildcreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/bwmarrin/discordgo"

"github.com/wneessen/arrgo/config"
"github.com/wneessen/arrgo/crypto"
"github.com/wneessen/arrgo/model"
Expand Down
1 change: 1 addition & 0 deletions bot/handler_guilddelete.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"

"github.com/bwmarrin/discordgo"

"github.com/wneessen/arrgo/model"
)

Expand Down
5 changes: 3 additions & 2 deletions bot/handler_presenceupdate_playsot.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"time"

"github.com/bwmarrin/discordgo"
"github.com/wneessen/arrgo/model"
"golang.org/x/text/language"
"golang.org/x/text/message"

"github.com/wneessen/arrgo/model"
)

// UserPlaySoT receives PRESENCE_UPDATE from each server and handles if the user starts playing SoT
Expand Down Expand Up @@ -230,7 +231,7 @@ func (b *Bot) UserPlaySoT(_ *discordgo.Session, ev *discordgo.PresenceUpdate) {
})
}

if len(ef) > 0 {
if len(ef) > 1 {
du, err := b.Session.User(u.UserID)
if err != nil {
ll.Warn().Msgf("failed to retrieve user information from Discord: %s", err)
Expand Down
1 change: 1 addition & 0 deletions bot/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"time"

"github.com/bwmarrin/discordgo"

"github.com/wneessen/arrgo/model"
)

Expand Down
1 change: 1 addition & 0 deletions bot/sc_handler_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"strings"

"github.com/bwmarrin/discordgo"

"github.com/wneessen/arrgo/model"
)

Expand Down
3 changes: 2 additions & 1 deletion bot/sc_handler_rarethief_traderoutes.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import (
"time"

"github.com/bwmarrin/discordgo"
"github.com/wneessen/arrgo/model"
"golang.org/x/text/cases"
"golang.org/x/text/language"

"github.com/wneessen/arrgo/model"
)

// RTTraderoute represents the JSON structure of the rarethief.com traderoute API response
Expand Down
1 change: 1 addition & 0 deletions bot/sc_handler_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/bwmarrin/discordgo"

"github.com/wneessen/arrgo/config"
"github.com/wneessen/arrgo/crypto"
"github.com/wneessen/arrgo/model"
Expand Down
3 changes: 2 additions & 1 deletion bot/sc_handler_sot_dailydeeds.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
"time"

"github.com/bwmarrin/discordgo"
"github.com/wneessen/arrgo/model"
"golang.org/x/text/cases"
"golang.org/x/text/language"

"github.com/wneessen/arrgo/model"
)

// SoTEventHubJSON is the nested struct from the Sea of Thieves event hub response
Expand Down
1 change: 1 addition & 0 deletions bot/sc_handler_sot_flameheart.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"strings"

"github.com/bwmarrin/discordgo"

"github.com/wneessen/arrgo/crypto"
"github.com/wneessen/arrgo/model"
)
Expand Down
1 change: 1 addition & 0 deletions bot/sc_handler_sot_setrat.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"

"github.com/bwmarrin/discordgo"

"github.com/wneessen/arrgo/model"
)

Expand Down
5 changes: 3 additions & 2 deletions bot/sc_handler_sot_userstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import (
"time"

"github.com/bwmarrin/discordgo"
"github.com/wneessen/arrgo/crypto"
"github.com/wneessen/arrgo/model"
"golang.org/x/text/language"
"golang.org/x/text/message"

"github.com/wneessen/arrgo/crypto"
"github.com/wneessen/arrgo/model"
)

// SoTUserOverview represents the JSON structure of the Sea of Thieves user overview API response
Expand Down
1 change: 1 addition & 0 deletions bot/slashcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"time"

"github.com/bwmarrin/discordgo"

"github.com/wneessen/arrgo/crypto"
)

Expand Down
2 changes: 1 addition & 1 deletion bot/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package bot

const Version = "0.3.0"
const Version = "0.3.1"
1 change: 1 addition & 0 deletions cmd/arrgo/arrgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"time"

"github.com/rs/zerolog"

"github.com/wneessen/arrgo/bot"
"github.com/wneessen/arrgo/config"
)
Expand Down
2 changes: 1 addition & 1 deletion model/deed.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
const (
RewardGold RewardType = "gold"
RewardDoubloons RewardType = "doubloons"
RewardUnknown RewardType = "unknown"
// RewardUnknown RewardType = "unknown"
)

// DeedModel wraps the connection pool.
Expand Down

0 comments on commit 85b2b4d

Please sign in to comment.