riff/bots/Cube.cs

26 lines
473 B
C#

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