Skip to content

Commit

Permalink
say alternative; closes #20
Browse files Browse the repository at this point in the history
eval command remarks changed to properly show the |prefix| placeholder rather than the default prefix ($)
GreemDev committed Feb 8, 2019
1 parent 9c9e4fd commit 9634a0f
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Volte/Core/Commands/Modules/General/SayCommand.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Volte.Core.Data;
using Volte.Core.Extensions;
using Volte.Helpers;

@@ -12,5 +14,16 @@ public async Task Say([Remainder] string msg) {
await Context.CreateEmbed(msg).SendTo(Context.Channel);
await Context.Message.DeleteAsync();
}

[Command("SilentSay")]
[Summary("Runs the say command normally, but doesn't show the author in the embed.")]
[Remarks("Usage: |prefix|silentsay {msg}")]
public async Task SilentSay([Remainder]string msg) {
await new EmbedBuilder()
.WithColor(Config.GetSuccessColor())
.WithDescription(msg)
.SendTo(Context.Channel);
await Context.Message.DeleteAsync();
}
}
}
2 changes: 1 addition & 1 deletion Volte/Core/Commands/Modules/Owner/EvalCommand.cs
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ public partial class OwnerModule : VolteModule {

[Command("Eval")]
[Summary("Evaluates C# code.")]
[Remarks("Usage: $eval {code}")]
[Remarks("Usage: |prefix|eval {code}")]
[RequireBotOwner]
public async Task Eval([Remainder] string code) {
try {

0 comments on commit 9634a0f

Please sign in to comment.