private Task Client_Ready(ReadyEventArgs e) { e.Client.DebugLogger.LogMessage(LogLevel.Info, "ZAYN", "Cliente está pronto para processar eventos.", DateTime.Now); #if DEBUG string projetoRaiz = Path.GetFullPath(Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, @"..\..\..\..\")) + "BotCore.json"; #else string projetoRaiz = Path.GetFullPath(Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, @"../../../../")) + "BotCore.json"; #endif Bot = BotCore.LoadFromFile(projetoRaiz); if (Bot == null) { Bot = new BotCore(); } #if DEBUG Bot.VersaoRevisao++; Bot.SaveToFile(projetoRaiz); #endif Client.UpdateStatusAsync(new DiscordActivity($"z!ajuda", ActivityType.Playing), UserStatus.Online); return(Task.CompletedTask); }