Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KlasaCommunityPlugins/raw-events
Simple plugin to handle raw events with ease.
https://github.com/KlasaCommunityPlugins/raw-events
bot klasa plugin
Last synced: 3 months ago
JSON representation
Simple plugin to handle raw events with ease.
- Host: GitHub
- URL: https://github.com/KlasaCommunityPlugins/raw-events
- Owner: KlasaCommunityPlugins
- License: mit
- Created: 2018-10-04T18:36:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T18:57:45.000Z (about 5 years ago)
- Last Synced: 2024-06-21T19:55:40.255Z (5 months ago)
- Topics: bot, klasa, plugin
- Language: TypeScript
- Size: 634 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raw Events
A simple Klasa plugin which allows you to handle raw events with ease.
## How To Use
1. Install the plugin.
```bash
npm i @kcp/raw-events# If you use yarn
yarn add @kcp/raw-events
```1. Use `@kcp/raw-events` in your client.
```js
const { Client } = require("klasa");
Client.use(require("@kcp/raw-events"));
```If you use TypeScript
```ts
import { Client } from 'klasa';
import { Client as RawEventsClient } from '@kcp/raw-events';Client.use(RawEventsClient);
```1. Create a new `raw-event` in your `rawEvents` folder.
```js
const { RawEvent } = require("klasa-raw-events");module.exports = class extends RawEvent {
run(data) {
// Your Code Here
}
}
```1. ???... Enjoy!
## License
This project is under the [MIT](https://github.com/KlasaCommunityPlugins/raw-events/blob/master/LICENSE) license.