import {
  Session,
  EntityRecognizer,
} from 'botbuilder';

export class MsgUtils {
  public static sendAsSay(session:Session, msg:string) {
    session.say(msg, msg);
  }

  public static onlyAlpha(msg:string) {

  }

  public static getDateFromUtterance(msg:string) : Date | null {
    return EntityRecognizer.parseTime(msg);
  }

}
import {
  Session,
  EntityRecognizer,
} from 'botbuilder';

export class MsgUtils {
  public static sayAsSend(session:Session, msg:string) {
    return session.say(msg, msg);
  }

  public static getDateFromUtterance(msg:string) : Date | null {
    return EntityRecognizer.parseTime(msg);
  }

  public static meanYes(msg:string) : boolean {
    return EntityRecognizer.parseBoolean(msg);
  }

  public static extract(type:string, msg:string) {
    // TODO: ues regular expression to extract specify str
  }

}
Prepare for RegExp helper class
Prepare for RegExp helper class
