/* * Created by Trevor Sears . * 9:32 AM -- November 26th, 2019. * Project: CommandSocket - Core */ import { CommandStructure, CommandStructureParameterType, CommandStructureReturnType } from "../../schema/command/command-structure"; import { FormalCommand } from "../../schema/command/formal-command"; import { CommandSocket } from "../../command-socket/command-socket"; /** * * * @author Trevor Sears * @version v0.1.0 * @since v0.1.0 */ export class PingCommand implements FormalCommand { public async execute(params: CommandStructureParameterType, context: CommandSocket): Promise> { return "Pong!"; } } export interface PingCommandStructure extends CommandStructure<"Ping!", "Pong!"> { }