private void Client_OnMessageReceived(object sender, OnMessageReceivedArgs e)
{
// Message variables
String messageSender = e.ChatMessage.DisplayName.ToLower();
String channel = e.ChatMessage.Channel.ToLower();
form1.twitchLog($"{messageSender} sent a message in {channel}'s stream!");
// Sends intro message
if (introMessageDict[channel].ContainsKey(messageSender))
{
if (introMessageDict[channel][messageSender] == true)
{
if (messageSender == "XXX" || messageSender == "XXX")
{
client.SendMessage(channel, $"𝙇𝙞𝙤𝙣 𝙂𝙖𝙣𝙜! 𝙎𝙝𝙤𝙬 {messageSender} 𝙨𝙤𝙢𝙚 𝙡𝙤𝙫𝙚! https://www.youtube.com/{messageSender}");
introMessageDict[channel][messageSender] = false;
}
else if (messageSender == "XXX")
{
client.SendMessage(channel, $"𝙇𝙞𝙤𝙣 𝙂𝙖𝙣𝙜! 𝙎𝙝𝙤𝙬 {messageSender} 𝙨𝙤𝙢𝙚 𝙡𝙤𝙫𝙚! https://www.youtube.com/@XXX");
introMessageDict[channel][messageSender] = false;
}
else
{
client.SendMessage(channel, $"𝙇𝙞𝙤𝙣 𝙂𝙖𝙣𝙜! 𝙎𝙝𝙤𝙬 {messageSender} 𝙨𝙤𝙢𝙚 𝙡𝙤𝙫𝙚! https://www.twitch.tv/{messageSender}");
introMessageDict[channel][messageSender] = false;
}
}
}
}