klasa-giveaway
v1.3.0
Published
A discord giveaway plugin for klasa
Downloads
18
Readme
Klasa Giveaway Plugin
This plugin adds a customisable giveway feature in your discord klasa bot. It comes with the following commands:
- gcreate - Creates a giveaway in the specified channel!
- gdelete - Deletes a giveaway!
- gend - Ends a giveaway immediately
- glist - Lists all running giveaways in the server
- greroll - Rerolls a previously finished giveaway.
- gstart - Immediately starts a giveaway in the current channel
NOTE:
- Use this version if you are using klasa v0.5.0 (stable) and discord.js v12
Features
- Customizable built-in commands
- Dynamic refresh intervals
- Automatic loading and restarting of giveaways
- Customizable embeds and locales
How to use
Install the plugin
npm i klasa-giveaway
yarn add klasa-giveaway
Use the plugin in your code
const { Client } = require("klasa"); Client.use(require("klasa-giveaway")); new Client().login("Your Beautiful Token");
or in typescript
import { Client } from 'klasa'; import { GiveawayClient } from 'klasa-giveaway'; Client.use(GiveawayClient); new Client().login("Your Beautiful Token");
GiveawayOptions
To your KlasaClientOptions you can optionally add giveaway options.
For example:
new Client({ giveaway: { maxGiveaways: 5, requiredPermission: 5, provider: 'mongodb' } })
For a list of giveaway options see here
It also allows you to define your own locales. See built in en-US Locale
Contact
- ImmortalSnake#0449