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 = ;Client;;or in typescript
;;Client.useGiveawayClient;new Client.login"Your Beautiful Token";
GiveawayOptions
-
To your KlasaClientOptions you can optionally add giveaway options.
For example:
giveaway:maxGiveaways: 5requiredPermission: 5provider: '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