Skip to content

Latest commit

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Code Redeem Script Logo

GitHub releaseLicenseissues - CodeRedeemScript

DiscordKo-Fi - DonateTwitch - Subscribe

Spiget StarsGitHub all releasesGitHub stars

Spikehidden's Code Redeem Script

A Denizen Script do create redeemable codes with pastebin support.

Config

Default Config

# + Config +SpikeCodeRedeemData:
type: data# ------ Pastebin ------# Do you want to use private or public pastes on Pastebin.com ?# You can find more info in the readme at https://github.com/spikehidden/CodeRedeemScript# Default is false as it is not recommended to use this feature when bulk creating codes!UsePastebin: false# Put your pastebin devKey in here as it's not possible to retrieve it from the "secrets.secret" file at the moment.# As soon as it is possible we'll do it that way.devKey: XXXX# ------ Debug & Log ------# Shall redemption be logged?redemptionLog: truelogPath: plugins/Denizen/spikehidden/code_redeem/logs/# ------ Advanced Settings ------# Don't change this unless Pastebin changed their API endpointsAPI:
endpoint: pastebin.com/api/data: api_raw.phplogin: api_login.phppaste: api_post.php

Pastebin

UsePastebin

Set this to true if you want to export code lists to Pastebin but don't forget to input your devkey in the next point.

devKey

Put here your dev key which you can find on Pastebin API documentation

Debug & Log

redemptionLog

Set this to false if you want to disable logging redemptions.

logPath

Set this to where the log should be saved. Beware that the start of the path is your Sever's base directory and not the Denizen folder.

Advanced Settings

You shouldn't have to edit any of this at all and if you do I will not provide any support.
Though you might have to edit it if Pastebin changes their API endpoints but in this case I will update the script.

Twitch/YouTube Bot Support

Currently we are supporting export formats for easier import of codelists for the following Bots/Softwares:

BotPremium availablePremium needed for import?
Wizebotyesyes

If you want me to support more bots/software then just open an issue to request it and I happily will if possible.

Commands

CommandargumentsFeaturePermissions
redeemadmin create(<code>/random) <amount> (<command>/group)Create a new codespikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes
redeemadmin edit(code/group) <name> (amount/command) <new value>Edit a code or groupspikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes
redeemadmin delete(code/group) <name>Delete a code or groupspikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes
redeem<code>Redeem a codespikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.redeem
bulkcreate(<groupName>/random) <amountOfCodes> (<command>/group)Create a bunch of codes (group)spikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes
pastebin<username> <password>Get and save your pastebin userkeyspikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.pastebin
commandgroup"<command1>" "<command2>" (...)Creates a temporary command groupspikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes

License

Released under CC-BY-SA-4.0 by @Spikehidden.

About

A Denizen Script do create redeemable codes with pastebin support.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages