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: about 1 year 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T18:57:45.000Z (over 6 years ago)
- Last Synced: 2025-03-18T03:57:18.768Z (over 1 year ago)
- Topics: bot, klasa, plugin
- Language: TypeScript
- Size: 634 KB
- Stars: 2
- Watchers: 4
- 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.
