static void Main(string[] args) { if (RawDebug) { bot.PostReceived += Bot_PostReceived; } bot.InvalidPostReceived += Bot_InvalidPostReceived; bot.OnMessage += Bot_OnMessage; bot.OnFollow += Bot_OnFollow; bot.OnUnFollow += Bot_OnUnFollow; bot.OnTweet += Bot_OnTweet; bot.OnRetweet += Bot_OnRetweet; bot.OnQuote += Bot_OnQuote; bot.OnComment += Bot_OnComment; bot.OnMention += Bot_OnMention; bot.OnLike += Bot_OnLike; bot.StartReceivingAsync(); while (true) { Console.ReadLine(); Console.Clear(); } }
static void Main(string[] args) { Console.WriteLine("Starting the bot..."); bot.OnMessage += Bot_OnMessage; bot.StartReceivingAsync(); bot.WaitForShutdown(); }