Added in a way to have the bot message me (its owner.) Added in a sub-command on DeathMessage.
This commit is contained in:
1 parent
b94573353d
commit
5ca7e5272f
3 files changed
+20
-4
No files matched your search
@@ -19,6 +19,7 @@ using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace StarsiegeBot
|
||||
{
|
||||
|
||||
[Group("deathmessage"), Aliases("dm")]
|
||||
[Description("Gives a random death message. Or interacts with the death messages.")]
|
||||
class DeathMessages : BaseCommandModule
|
||||
@@ -61,7 +62,7 @@ namespace StarsiegeBot
|
||||
}
|
||||
}
|
||||
|
||||
[Command("count")]
|
||||
[Command("inventory"), Aliases("count")]
|
||||
[Description("Gets the total of each type of death message")]
|
||||
public async Task DeathMessageCount(CommandContext ctx)
|
||||
{
|
||||
@@ -69,6 +70,15 @@ namespace StarsiegeBot
|
||||
await ctx.RespondAsync($"\r\nActive: {ActiveDeathMessages.Length}\r\nPassive: {PassiveDeathMessages.Length}\r\nGeneric: {GenericDeathMessages.Length}");
|
||||
}
|
||||
|
||||
[Command("Add")]
|
||||
public async Task DeathMessageNew(CommandContext ctx, [RemainingText] string str)
|
||||
{
|
||||
await ctx.TriggerTypingAsync();
|
||||
await Program.notify.SendMessageAsync($"{ctx.Message.Author.Username} wantes to add the death messages. ```{str}```");
|
||||
await ctx.RespondAsync("Your request has been added to the pending queue of requests.");
|
||||
}
|
||||
|
||||
|
||||
[Command("script")]
|
||||
[Description("Gets a script file for all the death messages on the bot.")]
|
||||
public async Task DeathMessagesScript(CommandContext ctx)
|
||||
|
||||
@@ -35,7 +35,6 @@ namespace StarsiegeBot
|
||||
json = sr.ReadToEnd();
|
||||
Dictionary<string, Quickchats> tempQC = JsonConvert.DeserializeObject<Dictionary<string, Quickchats>>(json);
|
||||
Quickchats = Enumerable.ToList(tempQC.Values);
|
||||
|
||||
}
|
||||
|
||||
[Command("script")]
|
||||
|
||||
Reference in new issue
Block a user