<commit_before>class Program
{
    private static DiscordBotClient _client;
    static void Main(string[] args)
    {
        var client = new DiscordClient();
        
        //Log some info to console
		client.LogMessage += (s, e) => Console.WriteLine($"[{e.Severity}] {e.Source}: {e.Message}");
        
        //Echo any message received, provided it didn't come from us
        client.MessageCreated += async (s, e) =>
        {
            if (!e.Message.IsAuthor)
                await client.SendMessage(e.Message.ChannelId, e.Message.Text);
        };
        
        //Convert our sync method to an async one and blocks this function until the client disconnects
        client.Run(async () =>
        {
            //Connect to the Discord server usinotng our email and password
            await client.Connect("<EMAIL>", "<PASSWORD>");
            
            //If we are not a member of any server, use our invite code
            if (!client.Servers.Any())
                await client.AcceptInvite("aaabbbcccdddeee");
        });
    }
}<commit_msg>Updated example so that it works on 0.8.1<commit_after>class Program
    {
        private static DiscordClient _client;

        static void Main(string[] args)
        {
            //This creates a new client, You can think of it as the bots own Discord window.
            var client = new DiscordClient();

            //Log some info to console
            client.LogMessage += (s, e) => Console.WriteLine($"[{e.Severity}] {e.Source}: {e.Message}");

            //Echo any message received, provided it didn't come from us
            client.MessageReceived += async (s, e) =>
            {
            	//if I am not the author
                if (!e.Message.IsAuthor)
                //Send a message back to the same channel, with the same contents.
                    await client.SendMessage(e.Channel, e.Message.Text);
            };

            //Convert our sync method to an async one and blocks this function until the client disconnects
            client.Run(async () =>
            {
                //Connect to the Discord server using our email and password
                await client.Connect("<EMAIL>", "<PASSWORD>");

                //If we are not a member of any server, use our invite code
                if (!client.AllServers.Any())
                    await client.AcceptInvite(client.CreateInvite("aaabbbcccdddeee"));


            });
        }
    }
{'fraction_non_alphanumeric': 0.10089503661513426, 'fraction_numerical': 0.0012205044751830757, 'mean_word_length': 1.7691441441441442, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4602575', 'n_tokens_mistral': 649, 'n_tokens_neox': 626, 'n_words': 223}