Skip to content

Commit 56e68a4

Browse files
committed
✨ Added first snippets for Wizebot Addon
1 parent 7a119cc commit 56e68a4

2 files changed

Lines changed: 98 additions & 2 deletions

File tree

plugins/Denizen/scripts/SpikeCodeRedeem-Config.dsc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
# ++++++ Config ++++++
6262
SpikeCodeRedeemData:
6363
type: data
64+
# + Core configs
6465
# ------ Pastebin ------
6566
# Do you want to use private or public pastes on Pastebin.com ?
6667
# You can find more info in the readme at https://github.com/spikehidden/CodeRedeemScript
@@ -70,6 +71,7 @@ SpikeCodeRedeemData:
7071
# As soon as it is possible we'll do it that way.
7172
devKey: Put Your Key Here!
7273

74+
# + Add-On configs.
7375
# ------ Auto Generate ------
7476
# For these feature you need the Auto Generate Addon
7577
auto:
@@ -97,14 +99,20 @@ SpikeCodeRedeemData:
9799
# Set to false to keep the old one but you need to
98100
# set auto.code to random then or it will throw errors.
99101
delete: true
102+
103+
# ------ Wizebot API -------
104+
# For these feature you need the Wizebot Addon
105+
wizebot:
106+
web:
107+
port: 80
100108

101109

102-
# ------ Debug & Log ------
110+
#+ ------ Debug & Log ------
103111
# Shall redemption be logged?
104112
redemptionLog: true
105113
logPath: spikehidden/logs/
106114

107-
# ------ Advanced Settings ------
115+
#+ ------ Advanced Settings ------
108116
# Don't change this unless Pastebin changed their API endpoints
109117
API:
110118
endpoint: pastebin.com/api/
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# ++++++ License Notice ++++++
2+
#
3+
# The following code is distributed under
4+
# the CC-BY-SA-4.0 license (Attribution-ShareAlike 4.0 International).
5+
#
6+
# | You are free to:
7+
# - Share
8+
# copy and redistribute the material in any medium or format
9+
#
10+
# - Adapt
11+
# remix, transform, and build upon the material
12+
# for any purpose, even commercially.
13+
#
14+
# | Under the following terms:
15+
# - Attribution
16+
# You must give appropriate credit,
17+
# provide a link to the license, and indicate if changes were made.
18+
# You may do so in any reasonable manner,
19+
# but not in any way that suggests the licensor endorses you or your use.
20+
#
21+
# - ShareAlike
22+
# If you remix, transform, or build upon the material,
23+
# you must distribute your contributions under the same license as the original.
24+
#
25+
# - A copy of the full license can be found here: https://creativecommons.org/licenses/by-sa/4.0/
26+
#
27+
# ++++++ License End ++++++
28+
#
29+
# +---------------------------------+
30+
# | |
31+
# | Redeemable Codes - Configs |
32+
# | |
33+
# | This is only the config file |
34+
# | DO NOT DELETE THIS FILE! |
35+
# | |
36+
# +---------------------------------+
37+
#
38+
# @author Spikehidden
39+
# @date 2022/06/10
40+
# @denizen-build 1.2.4-SNAPSHOT (build 1766-REL)
41+
# @script-version 1.2
42+
#
43+
# + REQUIREMENTS +
44+
# - Spikehidden Redeemable Codes | https://github.com/spikehidden/
45+
#
46+
# + Required or recommended for some features +
47+
# - A Pastebin Account + DevKey if you want to use that feature.
48+
49+
# + CONTACT +
50+
#
51+
# If you need help with the setup
52+
# or want me to add a feature please
53+
# contact me via Twitter or Discord
54+
# or open an issue at GitHub!
55+
#
56+
# - Twitter: https://spikey.biz/twitter
57+
# - Discord: https://spikey.biz/discord
58+
# - Twitch: https://spikey.biz/twitch
59+
# - Ko-Fi: https://spikey.biz/kofi
60+
61+
# ++++++ World ++++++
62+
SpikeCodeRedeemWizebotSystem:
63+
type: world
64+
debug: true
65+
events:
66+
#- Check if core script is loaded
67+
on server start:
68+
- if <server.has_flag[SpikehiddenUpdater]>:
69+
- announce "<&ss>9[SpikeCodeRedeem]<&ss>r Spikehidden's Auto Updater has been found!" to_console
70+
- flag server SpikeCodeRedeemAutoUpdate:github
71+
- flag server SpikehiddenUpdater.data:->:SpikeCodeRedeemAutoUpdate
72+
- announce "<&ss>9[SpikeCodeRedeem]<&ss>r Providing Update data of Auto Generate Addon for Spikehidden's Auto Updater" to_console
73+
after server start:
74+
- if <server.has_flag[SpikeCodeRedeem]>:
75+
- define port <script[SpikeCodeRedeemData].data_key[wizebot.web.port]>
76+
- flag server SpikeCodeRedeem.addon.wizebot
77+
- announce "<&ss>9[SpikeCodeRedeem]<&ss>r Add-On <&dq>Wizebot<&dq> is loaded." to_console
78+
- webserver start
79+
- else:
80+
- announce "<&ss>9[SpikeCodeRedeem]<&ss>r Add-On <&dq>Wizebot<&dq> can't be used without core script." to_console
81+
- announce "<&ss>9[SpikeCodeRedeem]<&ss>r Download core script from https://github.com/spikehidden/CodeRedeemScript" to_console
82+
83+
SpikeCodeRedeemWizebotAPI:
84+
type: world
85+
debug: true
86+
events:
87+
webserver web request method:post path:/wizebot:
88+
-

0 commit comments

Comments
 (0)