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