Ejemplo n.º 1
0
 private static void onGiftedSubscription(object sender, OnGiftedSubscriptionArgs e)
 {
     client.SendMessage(client.JoinedChannels[0], $"Wow! {e.GiftedSubscription.Login} has gifted a subscription to {e.GiftedSubscription.MsgParamRecipientUserName}! Thank you so much for your generosity! You have been awarded 5000 points for being so kind :)");
     DatabaseHandler.ExecuteNonQuery($"INSERT IGNORE INTO users (username,points) values ('{e.GiftedSubscription.Login}', {5000}); UPDATE users SET points = points + {5000} WHERE username='******'");
 }