diff --git a/channels/leaveduserchecker.go b/channels/leaveduserchecker.go index 3975ac4..72e6629 100644 --- a/channels/leaveduserchecker.go +++ b/channels/leaveduserchecker.go @@ -38,7 +38,6 @@ func CheckForLeavingUser(ticker *time.Ticker, quitChannel <-chan struct{}, group if group.Size < teleSize { group.Size = teleSize _, err = groupHelperService.UpdateGroup(group) - log.Println(err) continue } @@ -61,17 +60,12 @@ func checkGroupUser(group *models.Group, groupHelperService logic.GroupHelperSer users, err := groupHelperService.ListGroupUsers(group) - log.Println("users") - if err != nil { log.Println("Error while getting the users for group while checking for leaved user") log.Println(err) return } - log.Println("no err") - log.Println(len(users)) - for _, user := range users { <-throttle // rate limit our Service.Method RPCs @@ -79,20 +73,11 @@ func checkGroupUser(group *models.Group, groupHelperService logic.GroupHelperSer ChatID: group.GroupID, UserID: int(user.UserID), } - - log.Println(user.UserID) - member, _ := bot.GetChatMember(userConfig) - log.Println(member.User.FirstName) - log.Println(member.HasLeft()) - if !member.HasLeft() { continue } - - log.Println("User left") - leaveMessage := group.UserLeaveMessage leaveMessage = message.ReplaceMessage(leaveMessage, member.User) diff --git a/cli/commands/info.go b/cli/commands/info.go index 56ea62a..788e147 100644 --- a/cli/commands/info.go +++ b/cli/commands/info.go @@ -30,7 +30,7 @@ func (i infoCommand) ExecuteCommand(bot *tgbotapi.BotAPI, update *tgbotapi.Updat "General Information to this Bot\n" + "===============================\n" + "Developer: @Alphyron\n" + - "Version: 2.2.4\n" + + "Version: 2.2.5\n" + "Git: [Gitea Repository](https://git.dragon-labs.de/alphyron/group_assistant)\n" + "==============================="