Skip to content

blam23/BashBot

Repository files navigation

BashBot

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:

Events

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;
}

Modifying the Source

If you want better control, you're better off just modifying the source directly!

License

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.

About

A simple C# bot for Toribash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages