Skip to content

Commit

Permalink
rm all emojies
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuetler committed Mar 28, 2024
1 parent 19e15b4 commit 37f62da
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/controller/DiscordController.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import (
"bytes"
"database/sql"
"fmt"
"github.com/VSETH-GECO/bouncer/pkg/database"

"github.com/bwmarrin/discordgo"
"github.com/olekukonko/tablewriter"
log "github.com/sirupsen/logrus"

"github.com/VSETH-GECO/bouncer/pkg/database"
)

type DiscordController struct {
Expand Down Expand Up @@ -75,9 +77,9 @@ func (dc *DiscordController) GetDiscordUserCard(searchString string, buttonsEnab
var online string
var loggedIn string
if len(user.Sessions) > 0 && !user.Sessions[0].EndDate.Valid {
online = ""
online = "(y)"
} else {
online = ""
online = "(x)"
}

loginVlan, err := dc.db.CheckUserSignedInNoTx(user.Mac)
Expand All @@ -86,9 +88,9 @@ func (dc *DiscordController) GetDiscordUserCard(searchString string, buttonsEnab
return nil, err
}
if loginVlan > 0 {
loggedIn = ""
loggedIn = "(y)"
} else {
loggedIn = ""
loggedIn = "(x)"
}

if user.Hostname == "" {
Expand Down

0 comments on commit 37f62da

Please sign in to comment.