Told VS to do a Code Cleanup.

This commit is contained in:
Chris Darnell committed 2021-04-30 18:31:30 -07:00
1 parent 50c5bd0caa
commit bf94bffb77
18 files changed
+138 -282

No files matched your search

+6 -6
View File
@@ -1,17 +1,17 @@
using System;
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using Newtonsoft.Json;
namespace StarsiegeBot
{
class NotFacts : BaseCommandModule
{
private List<string> notfacts;
private readonly List<string> notfacts;
public NotFacts()
{
@@ -31,7 +31,7 @@ namespace StarsiegeBot
await ctx.RespondAsync(notfacts[notFactID]);
return;
}
catch(Exception)
catch (Exception)
{
await ctx.RespondAsync(notfacts[Program.rnd.Next(0, notfacts.Count)]);
}
+7 -7
View File
@@ -1,17 +1,17 @@
using System;
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using Newtonsoft.Json;
namespace StarsiegeBot
{
class SnappleFacts : BaseCommandModule
{
private List<string> facts;
private readonly List<string> facts;
public SnappleFacts()
{
@@ -21,7 +21,7 @@ namespace StarsiegeBot
}
[Command("snapple"), Description("Get a Snapple \"Real Fact\".")]
public async Task Snapplefact(CommandContext ctx, [Description("[Optional] A Snapple Fact ID")]int snapId = -1)
public async Task Snapplefact(CommandContext ctx, [Description("[Optional] A Snapple Fact ID")] int snapId = -1)
{
await ctx.TriggerTypingAsync();
@@ -31,7 +31,7 @@ namespace StarsiegeBot
await ctx.RespondAsync(facts[snapId]);
return;
}
catch(Exception)
catch (Exception)
{
await ctx.RespondAsync(facts[Program.rnd.Next(0, facts.Count)]);
}