mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-08 11:21:37 +02:00
Add better responses
This commit is contained in:
parent
1a1bdfd674
commit
15d4e251f2
17 changed files with 103 additions and 63 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue