Slight modifications to NotFacts and Snapple
This commit is contained in:
1 parent
c55c8c061e
commit
cd921285c9
3 files changed
+19
-5
No files matched your search
@@ -30,17 +30,17 @@ namespace StarsiegeBot
|
|||||||
if (!IsEnabled)
|
if (!IsEnabled)
|
||||||
return;
|
return;
|
||||||
await ctx.TriggerTypingAsync();
|
await ctx.TriggerTypingAsync();
|
||||||
|
string output;
|
||||||
notFactID--;
|
notFactID--;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await ctx.RespondAsync(notfacts[notFactID]);
|
output = notfacts[notFactID];
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
await ctx.RespondAsync(notfacts[Program.rnd.Next(0, notfacts.Count)]);
|
output = notfacts[Program.rnd.Next(0, notfacts.Count)];
|
||||||
}
|
}
|
||||||
|
await ctx.RespondAsync(StartEmbed(output));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("count"), Aliases("c"), Description("Get a count of the NotFacts")]
|
[Command("count"), Aliases("c"), Description("Get a count of the NotFacts")]
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ namespace StarsiegeBot
|
|||||||
{
|
{
|
||||||
// attempt to get the desired fact.
|
// attempt to get the desired fact.
|
||||||
output = facts[snapId];
|
output = facts[snapId];
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,6 +22,21 @@
|
|||||||
<None Update="Code Organization.txt">
|
<None Update="Code Organization.txt">
|
||||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
<None Update="Json\deathmessages.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Json\functions.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Json\guildsettings.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Json\questions.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Json\quickchats.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
Reference in new issue
Block a user