1.0.11 • Published 6 years ago

easydiscord v1.0.11

Weekly downloads
5
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1-security

6 years ago

2.0.0

6 years ago