Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
BotCake is a BotBits extension that removes the need to maintain a reference to BotBitsClient across your application.
With BotCake, you put your code in BotBase classes. BotBase classes automatically load EventListeners / Commands and no longer require .Of(bot) to access BotBits APIs.
class MyBot : BotBase
{
HelloWorld helloWorld = new HelloWorld();
}
class HelloWorld : BotBase
{
[EventListener]
void On(JoinCompleteEvent e)
{
Chat.Say("hello world!");
}
}
Put your configuration in a separate file and never think about it again.
Program.cs
class Program
{
static void Main()
{
CakeSetup.WithBot(bot => new MyBot()) // Set MyBot as your main class
.WithEmail("email", "pass") // Login
.CreateJoinRoom("roomId"); // Join a room
}
}
I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.
Offline
Pages: 1
[ Started around 1734492293.604 - Generated in 0.018 seconds, 10 queries executed - Memory usage: 1.36 MiB (Peak: 1.44 MiB) ]