1.0.3 • Published 4 years ago

@jikasd/classvm v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

@jikasd/classvm

A library for CollabVM bots.

npm hits

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}.`)
  }
}