Update readme with new BotBaseBuilder
This commit is contained in:
parent
2c58f86524
commit
e5d8e403a0
@ -158,6 +158,7 @@ var bb = BotBaseBuilder
|
|||||||
|
|
||||||
})
|
})
|
||||||
.NoSerialization()
|
.NoSerialization()
|
||||||
|
.UseEnglish()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
//Update bot commands to botfather
|
//Update bot commands to botfather
|
||||||
@ -279,6 +280,7 @@ var bb = BotBaseBuilder
|
|||||||
|
|
||||||
})
|
})
|
||||||
.NoSerialization()
|
.NoSerialization()
|
||||||
|
.UseEnglish()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
bb.BotCommand += async (s, en) =>
|
bb.BotCommand += async (s, en) =>
|
||||||
@ -996,6 +998,7 @@ var bb = BotBaseBuilder
|
|||||||
a.AddStartCommand("Starts the bot");
|
a.AddStartCommand("Starts the bot");
|
||||||
})
|
})
|
||||||
.UseSimpleJSON(AppContext.BaseDirectory + "config\\states.json")
|
.UseSimpleJSON(AppContext.BaseDirectory + "config\\states.json")
|
||||||
|
.UseEnglish()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
//Start your Bot
|
//Start your Bot
|
||||||
@ -1020,6 +1023,7 @@ var bb = BotBaseBuilder
|
|||||||
a.AddStartCommand("Starts the bot");
|
a.AddStartCommand("Starts the bot");
|
||||||
})
|
})
|
||||||
.UseJSON(AppContext.BaseDirectory + "config\\states.json")
|
.UseJSON(AppContext.BaseDirectory + "config\\states.json")
|
||||||
|
.UseEnglish()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
//Start your Bot
|
//Start your Bot
|
||||||
@ -1045,6 +1049,7 @@ var bb = BotBaseBuilder
|
|||||||
a.AddStartCommand("Starts the bot");
|
a.AddStartCommand("Starts the bot");
|
||||||
})
|
})
|
||||||
.UseXML(AppContext.BaseDirectory + "config\\states.xml")
|
.UseXML(AppContext.BaseDirectory + "config\\states.xml")
|
||||||
|
.UseEnglish()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
//Start your Bot
|
//Start your Bot
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user