Ejemplo n.º 1
0
        public static async Task ClientOnReady(DiscordClient client, ReadyEventArgs e)
        {
            client.Logger.LogInformation(BotLoggerEvents.Bot, "SoT", $"Sea Of Thieves Bot, version {Bot.BotSettings.Version}");
            client.Logger.LogInformation(BotLoggerEvents.Bot, "Made by Actis and VanguardFx"); // и еще немного ЧСВ

            var guild = client.Guilds[Bot.BotSettings.Guild];

            var member = await guild.GetMemberAsync(client.CurrentUser.Id);

            await member.ModifyAsync(x => x.Nickname = $"SeaOfThieves {Bot.BotSettings.Version}");

            Bot.ShipNamesStats = FastShipStats.LoadFromFile("generated/stats/ship_names.csv");
        }