Skip to content

Instantly share code, notes, and snippets.

@pjmagee
Created May 25, 2012 22:38
Show Gist options
  • Save pjmagee/2790959 to your computer and use it in GitHub Desktop.
Save pjmagee/2790959 to your computer and use it in GitHub Desktop.
protected override void OnChannelMessageReceived(IrcChannel channel, IrcMessageEventArgs e)
{
if(e.Source is IrcUser)
{
if(e.Text.ToLower().StartsWith("!weather"))
{
//handleWeather(channel, e);
}
if(e.Text.ToLower().StartsWith("!google"))
{
//handleSearch(channel, e);
}
if(e.Text.ToLower().StartsWith("!yt") || e.Text.ToLower().StartsWith("!youtube"))
{
//handleYouTube(channel, e);
}
if(e.Text.ToLower().StartsWith("!urban"))
{
HandleUrban(channel, e);
}
if(e.Text.ToLower().StartsWith("!wiki"))
{
//handleWiki(channel, e);
}
if(e.Text.ToLower().StartsWith("!rss"))
{
//handleRSS(channel, e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment