From 09d7164385bb484695e85a675df99b619da4a7c3 Mon Sep 17 00:00:00 2001 From: FlorianDahn Date: Wed, 5 Jan 2022 14:22:21 +0100 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4fb135b..89d134e 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ var bb = BotBaseBuilder .NoProxy() .CustomCommands(a => { - a.AddStartCommand("Starts the bot") + a.Start("Starts the bot") }) .NoSerialization() @@ -272,10 +272,10 @@ var bb = BotBaseBuilder .NoProxy() .CustomCommands(a => { - a.AddStartCommand("Starts the bot"); - a.Add(new BotCommand() { Command = "form1", Description = "Opens test form 1" }); - a.Add(new BotCommand() { Command = "form2", Description = "Opens test form 2" }); - a.Add(new BotCommand() { Command = "params", Description = "Returns all send parameters as a message." }); + a.Start("Starts the bot"); + a.Add("form1","Opens test form 1" ); + a.Add("form2", "Opens test form 2" ); + a.Add("params", "Returns all send parameters as a message." ); }) @@ -995,7 +995,7 @@ var bb = BotBaseBuilder .NoProxy() .CustomCommands(a => { - a.AddStartCommand("Starts the bot"); + a.Start("Starts the bot"); }) .UseSimpleJSON(AppContext.BaseDirectory + "config\\states.json") .UseEnglish() @@ -1020,7 +1020,7 @@ var bb = BotBaseBuilder .NoProxy() .CustomCommands(a => { - a.AddStartCommand("Starts the bot"); + a.Start("Starts the bot"); }) .UseJSON(AppContext.BaseDirectory + "config\\states.json") .UseEnglish() @@ -1046,7 +1046,7 @@ var bb = BotBaseBuilder .NoProxy() .CustomCommands(a => { - a.AddStartCommand("Starts the bot"); + a.Start("Starts the bot"); }) .UseXML(AppContext.BaseDirectory + "config\\states.xml") .UseEnglish()