Please sign in to access this page

better-giveaways npm package

better-giveaways npm package

5 devlogs
7h 54m
Created by Danee

A modern, feature-rich Discord giveaway manager with TypeScript support, flexible storage adapters, and comprehensive event system. Built as an improved alternative to existing Discord giveaway packages.

Features:
🎯 TypeScript Support - Full type safety and IntelliSense
🔧 Flexible Storage - Multiple storage adapters (JSON, Sequelize, custom)
📡 Event-Driven - Comprehensive event system for custom handling
🌍 Internationalization - Multi-language support (English, Czech)
🛡️ Advanced Requirements - Role, account age, server join date, and custom checks
⚡ Performance Focused - Efficient memory usage and response times
🔄 Automatic Recovery - Restores giveaways after bot restarts
🎲 Reroll Support - Easy winner rerolling functionality

Timeline

I added documentation and even implemented better-giveaways into my discord bot Beepo, which can be used as Example bot for this package.

Update attachment

Ship 1

Danee

over 1 year ago

Danee • Covers 4 devlogs and 7h 11m

First beta version of better-giveaways released! You can install it using npm install better-giveaways@dev 🎉🎉

Update attachment

I added i18next package for translations, so all string have been moved into separate JSON file that can be translated into multiple languages.

Update attachment

I have added option to add requirements to a giveaway (requiredRole, accountAge, joinedServerAge, and even functon called custom to custom requirement logic).

Update attachment

I have made basic giveaway system with start, end, reroll. I also implemented JSONAdapter and SequelizeAdapter for storing the giveaways. When the bot crashes it will automatically resume running giveaways

Update attachment