SHOW:
|
|
- or go back to the newest paste.
1 | - | local REPO_API = "https://api.github.com" |
1 | + | return { |
2 | - | local REPO_PATH = "/repos/IronicPickle/cc-store/contents" |
2 | + | pkey = "Blockate@choke.dev!", |
3 | - | local GITHUB_ACCESS_TOKEN = "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" |
3 | + | name = "BCD", |
4 | - | |
4 | + | monSide = "top", |
5 | - | local REPO_FULL = REPO_API..REPO_PATH |
5 | + | monScale = 0.5, |
6 | - | |
6 | + | tagline = "we provide everything", |
7 | - | local PROGRAM = "" |
7 | + | storage = { |
8 | - | local ARGS = "" |
8 | + | "minecraft:chest_0", |
9 | - | local DIR = "" |
9 | + | "minecraft:chest_1", |
10 | - | local CHANNEL = "" |
10 | + | "minecraft:chest_2", |
11 | - | |
11 | + | }, |
12 | - | local function decode64(data) |
12 | + | messages = { |
13 | - | local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' |
13 | + | noMetaname = "message=No metaname found! Refunding.", |
14 | - | data = string.gsub(data, '[^'..b..'=]', '') |
14 | + | nonexistantItem = "message=The item you requested is not available for purchase", |
15 | - | return (data:gsub('.', function(x) |
15 | + | notEnoughMoney = "message=Insufficient amount of krist sent.", |
16 | - | if (x == '=') then return '' end |
16 | + | notEnoughStock = "message=We don't have that much stock!", |
17 | - | local r,f='',(b:find(x)-1) |
17 | + | change = "message=Here is your change! Thanks for using our shop." |
18 | - | for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end |
18 | + | }, |
19 | - | return r |
19 | + | webhooks = {{ |
20 | - | end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x) |
20 | + | type = "discord-modern", |
21 | - | if (#x ~= 8) then return '' end |
21 | + | URL = "https://discord.com/api/webhooks/1176087319082696786/vWliGydriUHItDiOjt0X6Nf3F3TxR1l6t55jvguIVdBKNLGB6mIhNfzhc-8AKoImTq9K" |
22 | - | local c=0 |
22 | + | }}, |
23 | - | for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end |
23 | + | sounds = { |
24 | - | return string.char(c) |
24 | + | started = "", |
25 | - | end)) |
25 | + | purchase = "", |
26 | - | end |
26 | + | error = "", |
27 | - | |
27 | + | volume = 1 |
28 | - | local function getFileFromRepo(file) |
28 | + | }, |
29 | - | local res = http.get(REPO_FULL..file, { |
29 | + | speakers = {}, |
30 | - | ["Authorization"] = "token "..GITHUB_ACCESS_TOKEN, |
30 | + | shopSync = { |
31 | - | }) |
31 | + | enabled = false, |
32 | - | if res == nil then return nil end |
32 | + | modem = "", |
33 | - | local body = textutils.unserialiseJSON(res.readAll()) |
33 | + | owner = "", |
34 | - | local content = body.content |
34 | + | multiShop = nil, |
35 | - | res.close() |
35 | + | location = { |
36 | - | if content == nil then |
36 | + | broadcastLocation = false, |
37 | - | return nil |
37 | + | coordinates = { 0, 0, 0 }, |
38 | - | end |
38 | + | description = "", |
39 | - | return decode64(content) |
39 | + | dimension = "" |
40 | - | end |
40 | + | } |
41 | - | |
41 | + | } |
42 | - | local function createRootDir() |
42 | + | } |