Skip to content

spikehidden/CodeRedeemScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Redeem Script Logo

GitHub release License issues - CodeRedeemScript

Discord Ko-Fi - Donate Twitch - Subscribe

Spiget Stars GitHub all releases GitHub 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: true
    logPath: plugins/Denizen/spikehidden/code_redeem/logs/

    # ------ Advanced Settings ------
    # Don't change this unless Pastebin changed their API endpoints
    API:
        endpoint: pastebin.com/api/
        data: api_raw.php
        login: api_login.php
        paste: 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:

Bot Premium available Premium needed for import?
Wizebot yes yes

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

Commands

Command arguments Feature Permissions
redeemadmin create (<code>/random) <amount> (<command>/group) Create a new code spikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes
redeemadmin edit (code/group) <name> (amount/command) <new value> Edit a code or group spikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes
redeemadmin delete (code/group) <name> Delete a code or group spikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes
redeem <code> Redeem a code spikehidden.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 userkey spikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.pastebin
commandgroup "<command1>" "<command2>" (...) Creates a temporary command group spikehidden.admin, spikehidden.coderedeem.admin, spikehidden.coderedeem.codes

License

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