Updating example projects for use of SingleThread/ThreadPool
This commit is contained in:
parent
75064fd64c
commit
3aff0aa94b
@ -25,6 +25,7 @@ namespace DependencyInjection
|
|||||||
.NoCommands()
|
.NoCommands()
|
||||||
.NoSerialization()
|
.NoSerialization()
|
||||||
.DefaultLanguage()
|
.DefaultLanguage()
|
||||||
|
.UseSingleThread()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
await bot.Start();
|
await bot.Start();
|
||||||
|
|||||||
@ -18,6 +18,7 @@ var bot = BotBaseBuilder.Create()
|
|||||||
.NoCommands()
|
.NoCommands()
|
||||||
.NoSerialization()
|
.NoSerialization()
|
||||||
.DefaultLanguage()
|
.DefaultLanguage()
|
||||||
|
.UseSingleThread()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
await bot.Start();
|
await bot.Start();
|
||||||
|
|||||||
@ -21,6 +21,7 @@ namespace InlineAndReplyCombination
|
|||||||
.DefaultCommands()
|
.DefaultCommands()
|
||||||
.UseJSON(Path.Combine(Directory.GetCurrentDirectory(), "states.json"))
|
.UseJSON(Path.Combine(Directory.GetCurrentDirectory(), "states.json"))
|
||||||
.UseEnglish()
|
.UseEnglish()
|
||||||
|
.UseSingleThread()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user