-
Notifications
You must be signed in to change notification settings - Fork 0
Start Bot
Назар edited this page Sep 11, 2018
·
4 revisions
Bot = new Bot(
key: "Your key",
name: "botname",
nameString: "String name of bot", //Expaple: Goloros, Rapira, Sistence, etc.
usernameofcreator:"yourusername", //Can be null
modules: new List<IModule> { //Some of ur modules
new SaveLoadModule(60,30*60),
new Statistic(),
}
);
Yes, some modules have their own commands.
Bot.SynkCommands.Add(Bot.GetModule<LikeDislikeModule>().Command);
Bot.SynkCommands.Add(new Pes7BotCrator.Commands.Help());
Bot.SynkCommands.Add(Bot.GetModule<Statistic>().CommandHelp);
Bot.SynkCommands.Add(Bot.GetModule<Statistic>().CommandRuntime);
Bot.Start();