コード例 #1
0
        public static async Task Launch(string credsPath)
        {
            await CredentialsKeeper.ReadCreds(credsPath);

            SetCreds();

            Task.Run(() => BindHandlers());

            await Task.Delay(-1);
        }
コード例 #2
0
        // Method to start the bot (May not be needed due to async main() method)
        public async Task Launch(string credsPath, string usernamePath)
        {
            await CredentialsKeeper.ReadCreds(credsPath);

            await UsernameReader.ReadUsernames(usernamePath);

            SetCreds();

            StartApi();

            await Task.Delay(-1);
        }