Simple C# bot classes for Toribash.
If you wish to create a bot using this base, you are free to do so.
There are two ways to go about creating your own custom bot using this code:
You can subscribe to various events the bot has to offer, these are the CommandRecieved, ChatRecieved and BoutListUpdate events.
Bot = new Bot(login.Username, login.Password, login.Room.IP, login.Room.Port);
Bot.ChatRecieved += BotOnChatRecieved;
Bot.BoutListUpdate += BotOnBoutListUpdate;
private void BotOnChatRecieved(BashCommand line)
{
LbMain.Items.Add(BashColourStripper.Strip(line.Value));
}
private void BotOnBoutListUpdate(IEnumerable<BashBout> bouts)
{
LbUsers.ItemsSource = bouts;
}
If you want better control, you're better off just modifying the source directly!
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Verison 3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See https://www.gnu.org/licenses/gpl.html for the full license.