If message.content
does not contain any spaces then msgSplit[1]
would be undefined
because you will end up with msgSplit
array only with 1 element only.
const test = '111'
const splittedTest = test.split(' ')
console.log(splittedTest[0]) // 111
console.log(splittedTest[1]) // undefined
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…