Browse Source

Delete debug console outputs

Tigran 4 năm trước cách đây
mục cha
commit
8e72fe5db7

+ 1 - 0
MafiaTelegramBot/DataBase/EntityDao/UserDao.cs

@@ -1,3 +1,4 @@
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Threading.Tasks;

+ 0 - 1
MafiaTelegramBot/Game/GameRooms/GameRoom.Timer.cs

@@ -49,7 +49,6 @@ namespace MafiaTelegramBot.Game.GameRooms
             }
             catch (Exception)
             {
-                await Console.Out.WriteLineAsync("Cant delete room!");
             }
             
         }

+ 0 - 1
MafiaTelegramBot/Models/Bot.cs

@@ -157,7 +157,6 @@ namespace MafiaTelegramBot.Models
 
         public static async Task AnswerPreCheckoutQuery(string preCheckoutQueryId)
         {
-            Console.WriteLine(preCheckoutQueryId);
             var token = new CancellationToken();
             await Get().AnswerPreCheckoutQueryAsync(preCheckoutQueryId, token);
             Console.WriteLine(token.IsCancellationRequested);

+ 0 - 1
MafiaTelegramBot/Models/Commands/Command.cs

@@ -29,7 +29,6 @@ namespace MafiaTelegramBot.Models.Commands
         {
             var chatId = update.Message.Chat.Id;
             var userId = update.Message.From.Id;
-            Console.WriteLine($"{userId} {update.Message.Text}");
             await Bot.Get().SendChatActionAsync(chatId, ChatAction.Typing);
             
             if (!await UserDao.UserExists(userId)) await Bot.RegisterNewUser(update);

+ 0 - 1
MafiaTelegramBot/Models/Inlines/Query.cs

@@ -24,7 +24,6 @@ namespace MafiaTelegramBot.Models.Inlines
             await Bot.Get().SendChatActionAsync(chatId, ChatAction.Typing);
             var data = update.CallbackQuery.Data;
             var userId = long.Parse(data.Split('|')[1]);
-            Console.WriteLine($"{userId} {data}");
             var user = await UserDao.GetPlayerById(userId);
             user.SetActive();
             if (user.IsPlaying)