bot: add color change command

This commit is contained in:
Ske
2019-05-11 23:56:56 +02:00
parent 12e14c420c
commit cf2598baa5
4 changed files with 34 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ namespace PluralKit.Bot.Commands
public async Task New([Remainder] string systemName = null)
{
if (ContextEntity != null) throw Errors.NotOwnSystemError;
if (Context.SenderSystem != null) throw Errors.NoSystemError;
if (Context.SenderSystem != null) throw Errors.ExistingSystemError;
var system = await Systems.Create(systemName);
await Systems.Link(system, Context.User.Id);