import Constants from '../../common/constants' ; import { Handler } from '../../common/handler' ; import { IContainer , IMessage } from '../../common/types' ; export class PointMessageHandler extends Handler { public name : string = 'PointMessage' ; constructor ( public container ) { super ( ) ; } public async execute ( message ) { if ( message . content . startsWith ( Constants . Prefix ) ) { return ; } await this . container . pointService . awardPoints ( message . author . id , 1 ) ; } }