about summary refs log tree commit diff
path: root/Bot
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-12-01 12:16:00 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2023-12-01 12:16:00 +0100
commitc4429a813c7ccccad5dac2f516880e2b2492dca5 (patch)
tree858179c4fe23b42a1a2e287449b70c63313f23c7 /Bot
parentModeration bot work (diff)
downloadLibMatrix.ExampleBot-c4429a813c7ccccad5dac2f516880e2b2492dca5.tar.xz
Cleanup, move ArcaneLibs to submodule instead of parent submodule
Diffstat (limited to '')
-rw-r--r--Bot/FileStorageProvider.cs2
-rw-r--r--Bot/Interfaces/ICommand.cs6
-rw-r--r--Bot/MRUBotConfiguration.cs4
3 files changed, 6 insertions, 6 deletions
diff --git a/Bot/FileStorageProvider.cs b/Bot/FileStorageProvider.cs

index 2dfcee5..935d53f 100644 --- a/Bot/FileStorageProvider.cs +++ b/Bot/FileStorageProvider.cs
@@ -19,7 +19,7 @@ public class FileStorageProvider : IStorageProvider { new Logger<FileStorageProvider>(new LoggerFactory()).LogInformation("test"); Console.WriteLine($"Initialised FileStorageProvider with path {targetPath}"); TargetPath = targetPath; - if(!Directory.Exists(targetPath)) { + if (!Directory.Exists(targetPath)) { Directory.CreateDirectory(targetPath); } } diff --git a/Bot/Interfaces/ICommand.cs b/Bot/Interfaces/ICommand.cs
index 393ddbb..2ba5a27 100644 --- a/Bot/Interfaces/ICommand.cs +++ b/Bot/Interfaces/ICommand.cs
@@ -1,4 +1,4 @@ -namespace LibMatrix.ExampleBot.Bot.Interfaces; +namespace LibMatrix.ExampleBot.Bot.Interfaces; public interface ICommand { public string Name { get; } @@ -7,6 +7,6 @@ public interface ICommand { public Task<bool> CanInvoke(CommandContext ctx) { return Task.FromResult(true); } - + public Task Invoke(CommandContext ctx); -} \ No newline at end of file +} diff --git a/Bot/MRUBotConfiguration.cs b/Bot/MRUBotConfiguration.cs
index c7620df..dcdfc4c 100644 --- a/Bot/MRUBotConfiguration.cs +++ b/Bot/MRUBotConfiguration.cs
@@ -1,6 +1,6 @@ using Microsoft.Extensions.Configuration; -namespace LibMatrix.ExampleBot.Bot; +namespace LibMatrix.ExampleBot.Bot; public class MRUBotConfiguration { public MRUBotConfiguration(IConfiguration config) { @@ -9,4 +9,4 @@ public class MRUBotConfiguration { public string Homeserver { get; set; } = ""; public string AccessToken { get; set; } = ""; public string Prefix { get; set; } -} \ No newline at end of file +}