diff --git a/bot.go b/bot.go index 2f133f5..ec71386 100644 --- a/bot.go +++ b/bot.go @@ -29,7 +29,7 @@ func bot() { continue } - log.Info().Int64("ChatID",update.Message.Chat.ID).Int64("UserID",update.Message.From.ID).Str("Text", update.Message.Text).Msg("Recieved Message") + log.Info().Int64("ChatID", update.Message.Chat.ID).Int64("UserID", update.Message.From.ID).Str("Text", update.Message.Text).Msg("Recieved Message") if update.Message.IsCommand() { commands.Commands(update, bot) diff --git a/commands/gaypoints/gaypoints.go b/commands/gaypoints/gaypoints.go index a4f5660..f6e6506 100644 --- a/commands/gaypoints/gaypoints.go +++ b/commands/gaypoints/gaypoints.go @@ -12,11 +12,9 @@ import ( "github.com/rs/zerolog/log" ) - func GetGP(update tgbotapi.Update, bot *tgbotapi.BotAPI) { - log.Trace().Int64("ChatID",update.Message.Chat.ID).Msg(("Getting Gaypoints")) - + log.Trace().Int64("ChatID", update.Message.Chat.ID).Msg(("Getting Gaypoints")) if !commonlogic.ContainsInt64(config.BotConfig.GayPoints.EnabledChats, update.Message.Chat.ID) { log.Debug().Int64("chat", update.Message.Chat.ID).Ints64("enabledChats", config.BotConfig.GayPoints.EnabledChats).Msg("Not getting Gaypoints, Chat not enabled") diff --git a/commands/gaypoints/sql.go b/commands/gaypoints/sql.go index f0f66ae..5e5f2e3 100644 --- a/commands/gaypoints/sql.go +++ b/commands/gaypoints/sql.go @@ -12,7 +12,6 @@ var gpSelectChat *sql.Stmt var gpSet *sql.Stmt - func sqlGetAllGP(chatid int64) (gaypoints []gaypointShortDetails) { rows, err := gpSelectChat.Query(chatid) if err != nil { diff --git a/commands/notify/notify.go b/commands/notify/notify.go index f16ed44..ff8ea4f 100644 --- a/commands/notify/notify.go +++ b/commands/notify/notify.go @@ -94,7 +94,6 @@ func Reminder(update tgbotapi.Update, bot *tgbotapi.BotAPI) { log.Info().Int("ID", reminder.updateID).Int64("chat", reminder.chatID).Int64("user", reminder.userID).Int64("time", reminder.notifyTime).Msg("Added new Reminder") return - } func NotifyHandler(bot *tgbotapi.BotAPI) { diff --git a/text/balonlyl/balonlyl.go b/text/balonlyl/balonlyl.go index 3a01b27..04b0f2e 100644 --- a/text/balonlyl/balonlyl.go +++ b/text/balonlyl/balonlyl.go @@ -7,7 +7,6 @@ import ( tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5" ) - func Balonlyl(update tgbotapi.Update, bot *tgbotapi.BotAPI) { message := tgbotapi.MessageConfig{ diff --git a/webserver/webserver.go b/webserver/webserver.go index 11e841a..7d556a0 100644 --- a/webserver/webserver.go +++ b/webserver/webserver.go @@ -23,7 +23,6 @@ func RunServer() { log.Panic().Err(err).Msg("Failed to start webserver") } - } /*func handle204(w http.ResponseWriter, r *http.Request) {