Exemplo n.º 1
0
            public Task <Result> Execute(CommandMetadata data, SocketGuildUser shippieOne, SocketGuildUser shippieTwo)
            {
                var succesful = ParentPlugin.Sink(data.AuthorID, shippieOne.Id, shippieTwo.Id);

                if (succesful)
                {
                    return(TaskResult(true, "Succesfully sunk " + ParentPlugin.GetShipName(ParentPlugin.GetShipByShippies(shippieOne.Id, shippieTwo.Id)) + ", at least for you."));
                }
                return(TaskResult(false, $"Failed to sink that ship, as you have not shipped them yet."));
            }
Exemplo n.º 2
0
 public Task <Result> Execute(CommandMetadata data, SocketGuildUser shippieOne, SocketGuildUser shippieTwo)
 {
     ParentPlugin.DeleteShipName(shippieOne, shippieTwo);
     Shipping.Ship ship = ParentPlugin.GetShipByShippies(shippieOne, shippieTwo);
     return(TaskResult(null, $"{shippieOne.GetShownName ()} x {shippieTwo.GetShownName ()} has been named back to {ParentPlugin.GetShipName (ship)}."));
 }
Exemplo n.º 3
0
            public Task <Result> Execute(CommandMetadata data, SocketGuildUser shippieOne, SocketGuildUser shippieTwo)
            {
                var succesful = ParentPlugin.Ship(data.AuthorID, shippieOne.Id, shippieTwo.Id);

                if (succesful)
                {
                    return(TaskResult(succesful, "Succesfully shipped " + shippieOne.GetShownName() + " and " + shippieTwo.GetShownName() + ", now known as " + ParentPlugin.GetShipName(ParentPlugin.GetShipByShippies(shippieOne.Id, shippieTwo.Id)) + "."));
                }
                return(TaskResult(succesful, $"Failed to ship {shippieOne.GetShownName ()} x {shippieTwo.GetShownName ()} - You've already shipped them."));
            }