Changed QuickChats.cs to not reveal full file path

This commit is contained in:
Chris Darnell committed 2021-04-16 20:57:10 -07:00
1 parent 65a6a45808
commit 716ca9bf5e
1 file changed
+11 -1
+11 -1
View File
@@ -96,7 +96,7 @@ namespace StarsiegeBot
if (File.Exists($"./qc/{chat.soundFile}"))
{
FileStream sound = new FileStream($"./qc/{chat.soundFile}", FileMode.Open);
msg.WithFile(sound);
msg.WithFile(chat.soundFile, sound);
await ctx.RespondAsync(msg);
sound.Close();
}
@@ -105,6 +105,16 @@ namespace StarsiegeBot
await ctx.RespondAsync(msg);
}
}
[Command("search"), Aliases("s")]
public async Task SearchQuickChats(CommandContext ctx, [RemainingText] string toSearch)
{
await ctx.TriggerTypingAsync();
for (int i = 0; i < Quickchats.Count; i++)
{
}
}
}
public class Quickchats
{