Changed QuickChats.cs to not reveal full file path
This commit is contained in:
1 parent
65a6a45808
commit
716ca9bf5e
1 file changed
+11
-1
@@ -96,7 +96,7 @@ namespace StarsiegeBot
|
|||||||
if (File.Exists($"./qc/{chat.soundFile}"))
|
if (File.Exists($"./qc/{chat.soundFile}"))
|
||||||
{
|
{
|
||||||
FileStream sound = new FileStream($"./qc/{chat.soundFile}", FileMode.Open);
|
FileStream sound = new FileStream($"./qc/{chat.soundFile}", FileMode.Open);
|
||||||
msg.WithFile(sound);
|
msg.WithFile(chat.soundFile, sound);
|
||||||
await ctx.RespondAsync(msg);
|
await ctx.RespondAsync(msg);
|
||||||
sound.Close();
|
sound.Close();
|
||||||
}
|
}
|
||||||
@@ -105,6 +105,16 @@ namespace StarsiegeBot
|
|||||||
await ctx.RespondAsync(msg);
|
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
|
public class Quickchats
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user