about summary refs log tree commit diff
path: root/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-04-23 23:39:17 +0200
committerRory& <root@rory.gay>2025-04-23 23:39:56 +0200
commit50f8db5284c344512ecf010bbe58857b69c5535f (patch)
tree176041be5a0e2f7a96e34c8a877d8cc16b6f81e0 /Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs
parentUpdate devtestbot to use bot utils (diff)
downloadLibMatrix-50f8db5284c344512ecf010bbe58857b69c5535f.tar.xz
Allow early return in SyncHelper, trim access token if path used, fix shutdown of command listener
Diffstat (limited to 'Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs')
-rw-r--r--Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs b/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs

index 4947394..56ceb65 100644 --- a/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs +++ b/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs
@@ -32,7 +32,7 @@ public class BotInstaller(IServiceCollection services) { if (!string.IsNullOrWhiteSpace(config.AccessTokenPath)) { var token = File.ReadAllText(config.AccessTokenPath); - config.AccessToken = token; + config.AccessToken = token.Trim(); } var hs = hsProvider.GetAuthenticatedWithToken(config.Homeserver, config.AccessToken).Result;