This commit is contained in:
Noah 2024-06-03 22:40:17 +02:00
parent 3f3e75a5be
commit cf0ce42636
6 changed files with 2 additions and 8 deletions

View file

@ -12,12 +12,10 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )
func GetGP(update tgbotapi.Update, bot *tgbotapi.BotAPI) { 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) { 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") log.Debug().Int64("chat", update.Message.Chat.ID).Ints64("enabledChats", config.BotConfig.GayPoints.EnabledChats).Msg("Not getting Gaypoints, Chat not enabled")

View file

@ -12,7 +12,6 @@ var gpSelectChat *sql.Stmt
var gpSet *sql.Stmt var gpSet *sql.Stmt
func sqlGetAllGP(chatid int64) (gaypoints []gaypointShortDetails) { func sqlGetAllGP(chatid int64) (gaypoints []gaypointShortDetails) {
rows, err := gpSelectChat.Query(chatid) rows, err := gpSelectChat.Query(chatid)
if err != nil { if err != nil {

View file

@ -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") log.Info().Int("ID", reminder.updateID).Int64("chat", reminder.chatID).Int64("user", reminder.userID).Int64("time", reminder.notifyTime).Msg("Added new Reminder")
return return
} }
func NotifyHandler(bot *tgbotapi.BotAPI) { func NotifyHandler(bot *tgbotapi.BotAPI) {

View file

@ -7,7 +7,6 @@ import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
) )
func Balonlyl(update tgbotapi.Update, bot *tgbotapi.BotAPI) { func Balonlyl(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
message := tgbotapi.MessageConfig{ message := tgbotapi.MessageConfig{

View file

@ -23,7 +23,6 @@ func RunServer() {
log.Panic().Err(err).Msg("Failed to start webserver") log.Panic().Err(err).Msg("Failed to start webserver")
} }
} }
/*func handle204(w http.ResponseWriter, r *http.Request) { /*func handle204(w http.ResponseWriter, r *http.Request) {