1.0.11 • Published 7 years ago

easydiscord v1.0.11

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

AhkFramework

A framework to create discord robots easily, with commands and events.

Install

npm install easydiscord

Usage

import { Bot, Config, Login, Event, Command } from '../src/'

const prefix = "$"

@Config({
  version: "1.0",
  prefix,
  username: "name",
  icon_path: "link",
  presence: { name: prefix + "help" }
})
class Ahk extends Bot {

  @Login('token')
  login ({ id }) {
    console.log("Connected")
  }

  @Event('ready')
  ready (client) {
    console.log('I\'m ready !')
  }

  @Command(/^help$/, {
    description: "",
    permissions: {
      user: ['ADMINISTRATOR'],
      client: []
    }
  })
  helpCommand (command, channel, args) {
    message.reply('Hi')
  }

}

new Ahk()

For more informations about "permissions" see HERE Source code on github : HERE

License

MIT

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1-security

7 years ago

2.0.0

7 years ago