mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-10 03:55:29 +01:00
Update parsing and validation logic for playlist-limit config
This commit is contained in:
parent
847c578b5d
commit
33b0ffa244
|
@ -76,8 +76,8 @@ export default class implements Command {
|
|||
}
|
||||
|
||||
case 'playlist-limit': {
|
||||
const playlistLimit = Number(args[1]);
|
||||
if (!playlistLimit || playlistLimit <= 0) {
|
||||
const playlistLimit = parseInt(args[1], 10);
|
||||
if (playlistLimit <= 0) {
|
||||
await msg.channel.send(errorMsg('please enter a valid number'));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue