riff/bots/Cube.cs

24 lines
478 B
C#

using riff;
public class Cube : IRCBot
{
public Cube(string host, int port, string nick, string realname) : base(host, port, nick, realname)
{
string[] channels = [
"#bots",
];
(string, Action<PRIVMSG>)[] commands = [
("echo", Echo)
];
HookCommands(commands);
JoinChannels(channels);
}
private void Echo(PRIVMSG privmsg)
{
SendPrivmsg(privmsg.Sender, privmsg.Body);
}
}