mirror of
https://github.com/chenasraf/venom.git
synced 2026-05-17 17:28:08 +00:00
fix: better line training
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user