Giter Club home page Giter Club logo

dc-giveaways's Introduction

Discord Giveaways

Code for a small bot to manage giveaways.

Available commands

you can manage giveaways with custom commands :

  • setGiveway id summary : create or update the giveaway member list
  • giveaway id : launch a giveaway roll
  • lastGiveaway id : recall the last winner for a giveaway
  • listSubscribers id : list the members subscribed to giveaway
  • listWinners id : list the winners subscribed to giveaway
  • listAttendees id : list the subscribers to giveaway that can win to the next giveaway

๐Ÿ”” Be careful : the id is unique, but if you mispelled it you will create another giveaway list.

How you should use it

  1. Create the new giveaway with a unique id

for example /set-giveaway march-2024-treasure Win a fabulous prize

  1. launch a giveway with this id

for example /giveaway march-2024-treasure

  1. Anyone can know anytime who is the last winner with the last-giveaway command

/last-giveaway march-2024-treasure

๐ŸŽฎ all commands should be available in your discord prompt once the bot is activated, appearing when you are typing a slash in your chat input.

How to install it in your discord server

You'll need :

  • a PostgreSQL database.
  • a NodeJs server, able to run services
  1. Populate your PG database with the dump found at /documentation/postgre.sql
  2. clone the repository
  3. Configure your Discord Developer App
  4. copy .env.example to .env, and fill all values
  5. declare a service on your service with the command node <path>/src/index.js
  6. install the bot in your serveur integrations.

dc-giveaways's People

Contributors

tnntwister avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.