Exemplo n.º 1
0
 public Task <Result> Execute(CommandMetadata data, SocketGuildUser shippieOne, SocketGuildUser shippieTwo)
 {
     Shipping.Ship ship = ParentPlugin.Sink(data.Message.Author as SocketGuildUser, shippieOne, shippieTwo, out bool succesful);
     if (succesful)
     {
         return(TaskResult(null, "Succesfully sunk " + ParentPlugin.GetShipName(ship) + ", at least for you."));
     }
     return(TaskResult(null, $"Failed to sink {ParentPlugin.GetShipName (ship)} - You have not shipped them yet."));
 }
Exemplo n.º 2
0
 public Task <Result> Execute(CommandMetadata data, SocketGuildUser shippieOne, SocketGuildUser shippieTwo)
 {
     Shipping.Ship ship = ParentPlugin.Ship(data.Message.Author as SocketGuildUser, shippieOne, shippieTwo, out bool succesful);
     if (succesful)
     {
         return(TaskResult(ship, "Succesfully shipped " + shippieOne.GetShownName() + " and " + shippieTwo.GetShownName() + ", now known as " + ParentPlugin.GetShipName(ship) + "."));
     }
     return(TaskResult(ship, $"Failed to ship {shippieOne.GetShownName ()} x {shippieTwo.GetShownName ()} - You've already shipped them."));
 }
Exemplo n.º 3
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)}."));
 }