Removed extra spaces. Removed double \r\n across all code files.
This commit is contained in:
1 parent
91d6d1531b
commit
5bb1b43e81
19 files changed
+68
-389
No files matched your search
@@ -6,7 +6,6 @@ using DSharpPlus.Entities;
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StarsiegeBot
|
||||
{
|
||||
[Group("GroupRole"), Aliases("gr")]
|
||||
@@ -18,13 +17,10 @@ namespace StarsiegeBot
|
||||
{
|
||||
Console.WriteLine("Group Role Management Loaded.");
|
||||
}
|
||||
|
||||
[GroupCommand]
|
||||
public async Task ListGroups(CommandContext ctx)
|
||||
{
|
||||
await ctx.TriggerTypingAsync();
|
||||
}
|
||||
|
||||
[Command("add")]
|
||||
[Description("Work in progress. Does nothing yet.")]
|
||||
public async Task AddSelfRole(CommandContext ctx,
|
||||
@@ -32,15 +28,12 @@ namespace StarsiegeBot
|
||||
[Description("The price of the role for buyable roles. 0 for no cost. Free free to leave blank if not using Buyable roles.")] int price = 0,
|
||||
[Description("What group to put the role in. If not using groups, you can leave blank."), RemainingText] string groupName = null)
|
||||
{
|
||||
await ctx.TriggerTypingAsync();
|
||||
price = Math.Abs(price);
|
||||
|
||||
// Fix price.
|
||||
// Verify group exists.
|
||||
// Since we allow roles to be in several groups, dont have to verify that.
|
||||
//
|
||||
//
|
||||
string gId = ctx.Guild.Id.ToString();
|
||||
|
||||
if (GuildSettings[gId].SelfRoles.ContainsKey(groupName))
|
||||
{
|
||||
GuildSettings[gId].SelfRoles[groupName].Add(role.Id.ToString(), price);
|
||||
@@ -49,31 +42,23 @@ namespace StarsiegeBot
|
||||
else
|
||||
{
|
||||
// group not found, `Create it?` or `Cancel`?
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Command("delete")]
|
||||
[Description("Work in progress. Does nothing yet.")]
|
||||
public async Task DeleteSelfRole(CommandContext ctx,
|
||||
[Description("The role to delete.")] DiscordRole role,
|
||||
[Description("The group to remove the role from. If left blank, will remove from all groups."), RemainingText] string group = null)
|
||||
{
|
||||
await ctx.TriggerTypingAsync();
|
||||
// Verify role is in a group.
|
||||
// Verify group selected exists.
|
||||
// If group null, remove from all groups?
|
||||
}
|
||||
|
||||
[Command("Edit")]
|
||||
[Description("Work in progress. Does nothing yet.")]
|
||||
public async Task EditRole(CommandContext ctx, DiscordRole role, int newPrice = 0, [RemainingText] string newGroup = null)
|
||||
{
|
||||
await ctx.TriggerTypingAsync();
|
||||
}
|
||||
|
||||
|
||||
private DiscordEmbedBuilder StartEmbed(string desc)
|
||||
{
|
||||
DiscordEmbedBuilder embed = new DiscordEmbedBuilder
|
||||
|
||||
Reference in new issue
Block a user