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!')
|
message.reply('You are not allowed to do that!')
|
||||||
break
|
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)
|
await megahal.train(lines)
|
||||||
message.reply('Trained successfully')
|
message.reply('Trained successfully')
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user