Skip to content

Commit

Permalink
fix callouts casing
Browse files Browse the repository at this point in the history
  • Loading branch information
zenlor committed Jan 13, 2024
1 parent 0019d10 commit bec3228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func Handler(p *fastjson.Value) (*telegram.WebhookResponse, error) {
case KindCallout:
callout := &db.Callout{
GID: gid,
Callout: inc.Abraxas,
Callout: strings.ToLower(inc.Abraxas),
}

if err := db.SelectOneCallout(ctx, callout); err != nil {
Expand Down Expand Up @@ -334,7 +334,7 @@ func Handler(p *fastjson.Value) (*telegram.WebhookResponse, error) {
if inc.RememberKind == KindCalloutCmd {
c := &db.Callout{
GID: gid,
Callout: inc.RememberAbraxas,
Callout: strings.ToLower(inc.RememberAbraxas),
Text: inc.RememberRest,
}

Expand Down

0 comments on commit bec3228

Please sign in to comment.