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

2
bot.go
View file

@ -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)

View file

@ -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")

View file

@ -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 {

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")
return
}
func NotifyHandler(bot *tgbotapi.BotAPI) {

View file

@ -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{

View file

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