Told VS to do a Code Cleanup.
This commit is contained in:
1 parent
50c5bd0caa
commit
bf94bffb77
18 files changed
+138
-282
No files matched your search
@@ -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)]);
|
||||
}
|
||||
|
||||
@@ -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)]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user