mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-07 06:59:37 +02:00
Fix bot haning when sending alerts
This commit is contained in:
parent
0f90b3525e
commit
95e02d9a64
29 changed files with 217 additions and 80 deletions
|
@ -1,7 +1,7 @@
|
|||
using HomeBot.ACL;
|
||||
using HomeBot.ModuleLoader;
|
||||
using HomeBot.Modules.OttoLinux;
|
||||
using HomeBot.Telegram;
|
||||
using SoUnBot.AccessControl;
|
||||
using SoUnBot.ModuleLoader;
|
||||
using SoUnBot.Modules.OttoLinux;
|
||||
using SoUnBot.Telegram;
|
||||
using Telegram.Bot.Types;
|
||||
|
||||
string dataPath = Environment.GetEnvironmentVariable("DATA_PATH") ?? "BotData";
|
||||
|
@ -18,7 +18,7 @@ if (!long.TryParse(tgAdminId, out tgAdminLong))
|
|||
return;
|
||||
}
|
||||
|
||||
var acl = new ACM(aclPath, tgAdminLong);
|
||||
var acl = new AccessManager(aclPath, tgAdminLong);
|
||||
var moduleLoader = new ModuleLoader();
|
||||
|
||||
try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue