fix: better line training

This commit is contained in:
2024-08-08 01:25:56 +03:00
parent cb360593a2
commit a1a98a06c6

View File

@@ -75,7 +75,12 @@ export default command({
message.reply('You are not allowed to do that!')
break
}
const lines = args.slice(1).join(' ').split('\n')
const lines = args
.slice(1)
.join(' ')
.split('\n')
.map((x) => x.trim())
.filter(Boolean)
await megahal.train(lines)
message.reply('Trained successfully')
break