Skip to content

Commit 6610169

Browse files
committed
feat: add = and == aliases for + and ++ for quicker voting
1 parent 4b08675 commit 6610169

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

Commands/CommandsService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ public CommandsService()
1919
ChatCommandApi.RegisterLocalChatCommand<DoubleUpvoteCommand>();
2020
ChatCommandApi.RegisterLocalChatCommand<NeutralVoteCommand>();
2121
ChatCommandApi.RegisterLocalChatCommand<NeutralVoteAltCommand>();
22+
23+
ChatCommandApi.RegisterLocalChatCommandAlias<UpvoteCommand>(UpvoteCommand.Alias);
24+
ChatCommandApi.RegisterLocalChatCommandAlias<DoubleUpvoteCommand>(DoubleUpvoteCommand.Alias);
2225
}
2326
}

Commands/Voting/DoubleUpvoteCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace TNRD.Zeepkist.GTR.Commands.Voting;
88

99
public class DoubleUpvoteCommand : ILocalChatCommand
1010
{
11+
public const string Alias = "==";
12+
1113
private readonly VotingService _votingService;
1214

1315
public string Prefix => string.Empty;

Commands/Voting/UpvoteCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace TNRD.Zeepkist.GTR.Commands.Voting;
88

99
public class UpvoteCommand : ILocalChatCommand
1010
{
11+
public const string Alias = "=";
12+
1113
private readonly VotingService _votingService;
1214

1315
public string Prefix => string.Empty;

0 commit comments

Comments
 (0)