Add better responses

This commit is contained in:
Max Isom 2020-03-17 17:59:26 -05:00
parent 1a1bdfd674
commit 15d4e251f2
17 changed files with 103 additions and 63 deletions

View file

@ -3,6 +3,7 @@ import {TYPES} from '../types';
import {inject, injectable} from 'inversify';
import PlayerManager from '../managers/player';
import {STATUS} from '../services/player';
import errorMsg from '../utils/error-msg';
import Command from '.';
@injectable()
@ -22,11 +23,11 @@ export default class implements Command {
const player = this.playerManager.get(msg.guild!.id);
if (player.status !== STATUS.PLAYING) {
await msg.channel.send('error: not currently playing');
await msg.channel.send(errorMsg('not currently playing'));
return;
}
player.pause();
await msg.channel.send('paused');
await msg.channel.send('the stop-and-go light is now red');
}
}