@jikasd/classvm
v1.0.3
Published
CollabVM client that uses classes.
Downloads
2
Maintainers
Readme
@jikasd/classvm
A library for CollabVM bots.
Install
npm i @jikasd/classvm
Example
Initialize client
const { ClassVM } = require('@jikasd/classvm')
const client = new ClassVM({
prefix: '!',
commandDirectory: './commands',
username: 'bot',
ip: '127.0.0.1',
port: 1337
})
client.login().then(() => console.log('Ready!'))
Create Command
const { Command } = require('@jikasd/classvm')
module.exports = class extends Comamnd {
constructor () {
}
exec (message) {
message.send(`Hello ${message.sender}.`)
}
}