GithubHelp home page GithubHelp logo

devskyone / drops Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 551 KB

A bot to drop gifts to your community. Highly customizable and automatable. (soon)

Home Page: https://devsky.one

License: GNU General Public License v3.0

Python 100.00%
dicord discord4py python bot

drops's People

Contributors

coasterfreakde avatar mccoderpy avatar xanax-c-137 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mccoderpy scxredx

drops's Issues

Language change success message not translated

Describe the bug

configure-command.py#48

await ctx.respond(f'{i18n.t("configure.language.success", language=language)}', **hidden=True)

Expected behavior

Should be

await ctx.respond(f'{i18n.t("configure.language.success", language=language, locale=language)}', **hidden=True)

Automatic reward fetching

is blocked by #6

Describe the solution you'd like
You should be able to add automatic reward fetching for some presets through API calls.

e.g. You have an API that can create licenses for a certain product. The system has an open API with bearer token.

/drop configure preset mylicense type: 'rest' url: 'https://my-cool-api.stuff/license'
      method: 'get' authorization: 'Bearer MYTOKEN'

When a drop with this preset is performed, the bot should call this api and reading it's answer.

Delayed Drop

Describe the solution you'd like
I would love to have the possibility to set a drop for a given time or after a delay.

Automatic drops

is blocked #6
is blocked #8

Is your feature request related to a problem? Please describe.
Currently, you have to manually trigger a drop.

Describe the solution you'd like
There should be an option to define a cronjob for drops.
e.g. /drop configure cronjob cron: '* * */1 * *' -> Every hour

Also you should be able to add presets to this automatic drop or disable it.
/drop configure cron off

/drop configure cron addpreset preset: 'coins'
/drop configure cron removepreset preset: 'coins'
/drop configure cron presets

Automatic rewarding

is blocked by #6

Describe the solution you'd like
You should be able to add automatic rewarding for some presets through api calls.

e.g. You want a preset for your coin system. The system has an open api with bearer token.

/drop configure preset coins type: 'rest' url: 'https://my-cool-api.stuff/coins'
      method: 'post' authorization: 'Bearer MYTOKEN' format: '{"user": "02138312","coins": %value%}'

DM your price

Is your feature request related to a problem? Please describe.
If you are too fast, you just click the ephemeral message away. So, the price needs to be stored elsewhere to be safe.

Describe the solution you'd like
We could just send the same text as private message to the user.

Database structure and connection

blocks #5
blocks #6

Is your feature request related to a problem? Please describe.
To save all settings, we need a persistent storage like a database.

Describe the solution you'd like
Best option would be a database to store all data like presets, languages and more per guild

Describe alternatives you've considered
A NoSQL Database (even as flatfile e.g. json file) would be possible.

Drop presets

Is your feature request related to a problem? Please describe.
Currently, you have to manually start a drop with name and value. This costs time.

Describe the solution you'd like
There should be a way to define presets for drops.

e.g. /configure preset name: 'nitro' description: '1 month Discord Nitro' value: 'https://discord.gift/nitrogift' or /configure preset name: 'coins' description: 'Coins'

Then you can use /drop preset name: 'nitro' or /drop preset name: 'coins' value: '200'

Language per Guild

Is your feature request related to a problem? Please describe.
The bot is public and currently only german messages are displayed (even though i18n is in use and english translations are present)

Describe the solution you'd like
There should be a command to select the language for your guild. This setting should be stored for persistence.

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.