Update README.md

This commit is contained in:
FlorianDahn 2022-01-05 14:22:21 +01:00
parent 2b914f6f58
commit 09d7164385

View File

@ -154,7 +154,7 @@ var bb = BotBaseBuilder
.NoProxy() .NoProxy()
.CustomCommands(a => .CustomCommands(a =>
{ {
a.AddStartCommand("Starts the bot") a.Start("Starts the bot")
}) })
.NoSerialization() .NoSerialization()
@ -272,10 +272,10 @@ var bb = BotBaseBuilder
.NoProxy() .NoProxy()
.CustomCommands(a => .CustomCommands(a =>
{ {
a.AddStartCommand("Starts the bot"); a.Start("Starts the bot");
a.Add(new BotCommand() { Command = "form1", Description = "Opens test form 1" }); a.Add("form1","Opens test form 1" );
a.Add(new BotCommand() { Command = "form2", Description = "Opens test form 2" }); a.Add("form2", "Opens test form 2" );
a.Add(new BotCommand() { Command = "params", Description = "Returns all send parameters as a message." }); a.Add("params", "Returns all send parameters as a message." );
}) })
@ -995,7 +995,7 @@ var bb = BotBaseBuilder
.NoProxy() .NoProxy()
.CustomCommands(a => .CustomCommands(a =>
{ {
a.AddStartCommand("Starts the bot"); a.Start("Starts the bot");
}) })
.UseSimpleJSON(AppContext.BaseDirectory + "config\\states.json") .UseSimpleJSON(AppContext.BaseDirectory + "config\\states.json")
.UseEnglish() .UseEnglish()
@ -1020,7 +1020,7 @@ var bb = BotBaseBuilder
.NoProxy() .NoProxy()
.CustomCommands(a => .CustomCommands(a =>
{ {
a.AddStartCommand("Starts the bot"); a.Start("Starts the bot");
}) })
.UseJSON(AppContext.BaseDirectory + "config\\states.json") .UseJSON(AppContext.BaseDirectory + "config\\states.json")
.UseEnglish() .UseEnglish()
@ -1046,7 +1046,7 @@ var bb = BotBaseBuilder
.NoProxy() .NoProxy()
.CustomCommands(a => .CustomCommands(a =>
{ {
a.AddStartCommand("Starts the bot"); a.Start("Starts the bot");
}) })
.UseXML(AppContext.BaseDirectory + "config\\states.xml") .UseXML(AppContext.BaseDirectory + "config\\states.xml")
.UseEnglish() .UseEnglish()