Пример #1
0
		public static void printConsole(String line, Bot bot, ConsoleColor color = ConsoleColor.White, bool isDebug = false) {
			Console.ForegroundColor = color;
			if (isDebug && isDebugMode) {
				Console.WriteLine("(" + bot.getBotId() + ") [DEBUG] " + line);
			} else if (!isDebug) {
				Console.WriteLine("(" + bot.getBotId() + ")         " + line);
				bot.sql.update("INSERT INTO botLogs (botid, message, color) VALUES ('" + bot.getBotId() + "', '" + line + "', '" + ((int) color) + "')");
			}
			Console.ForegroundColor = ConsoleColor.White;
		}