Skip to content

Commit a61f2e7

Browse files
committed
Semi-added account commands
1 parent 12f700a commit a61f2e7

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
lines changed

Hanekawa.Bot/Commands/Metas/Commands.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
namespace Hanekawa.Bot.Commands.Metas;
22

3-
public abstract class SlashGroupName
3+
public static class SlashGroupName
44
{
55
public const string Greet = "greet";
66
public const string Administration = "administration";
77
public const string Club = "club";
88
public const string Level = "level";
99
}
1010

11-
public abstract class Admin
11+
public static class Account
12+
{
13+
public const string Rank = "rank";
14+
public const string Wallet = "wallet";
15+
public const string Profile = "profile";
16+
}
17+
18+
public static class Admin
1219
{
1320
public const string Ban = "ban";
1421
public const string Unban = "unban";
@@ -22,7 +29,7 @@ public abstract class Admin
2229
public const string Prune = "prune";
2330
}
2431

25-
public abstract class Club
32+
public static class Club
2633
{
2734
public const string Create = "create";
2835
public const string Delete = "delete";
@@ -32,7 +39,7 @@ public abstract class Club
3239
public const string Info = "info";
3340
}
3441

35-
public abstract class Greet
42+
public static class Greet
3643
{
3744
public const string Channel = "channel";
3845
public const string Message = "message";
@@ -42,7 +49,7 @@ public abstract class Greet
4249
public const string ImageToggle = "image";
4350
}
4451

45-
public abstract class LevelName
52+
public static class LevelName
4653
{
4754
public const string Add = "add";
4855
public const string Remove = "remove";
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using Disqord;
2+
using Disqord.Bot.Commands.Application;
3+
using Disqord.Bot.Commands.Interaction;
4+
using Qmmands;
5+
6+
namespace Hanekawa.Bot.Commands.Slash.Account;
7+
8+
[Name("Account")]
9+
public class AccountCommands : DiscordApplicationModuleBase
10+
{
11+
[SlashCommand(Metas.Account.Rank)]
12+
[Description("Shows the rank of a user")]
13+
public Task<DiscordInteractionResponseCommandResult> RankAsync(IMember user)
14+
{
15+
throw new NotImplementedException();
16+
}
17+
18+
[SlashCommand(Metas.Account.Wallet)]
19+
[Description("Shows the wallet of a user")]
20+
public Task<DiscordInteractionResponseCommandResult> WalletAsync()
21+
{
22+
throw new NotImplementedException();
23+
}
24+
25+
[SlashCommand(Metas.Account.Profile)]
26+
[Description("Shows the profile of a user")]
27+
public Task<DiscordInteractionResponseCommandResult> ProfileAsync()
28+
{
29+
throw new NotImplementedException();
30+
}
31+
}

Hanekawa.Bot/Hanekawa.Bot.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
</ItemGroup>
3939

4040
<ItemGroup>
41-
<Folder Include="Commands\Slash\Account\" />
4241
<Folder Include="Commands\Slash\Advertise\" />
4342
<Folder Include="Commands\Slash\AutoMessage\" />
4443
<Folder Include="Commands\Slash\Board\" />

0 commit comments

Comments
 (0)