You could commission someone for that, yes. However, I don’t know where you’d go, there’s Fiverr I know about, but I never used it, I don’t know if you can get a dev there, but you likely can.
Another solution would be to use the Quote System API, since it’s just a bidding system it should be alright, although know that any abuse of it could mean the termination of your keys/tokens:
I think something like this could work:
• !bid
, is made out of !bid
and its alias _bid
, they respectively are:
$(eval q=`$(1)`;a=`$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN&no_id=0)`.split(`|`);a.pop();u=[];b=[];a.forEach(e=>{t=e.split(` `);b.push(t.pop());u.push(t.pop())});m=Math.max(...b);if(m===-Infinity){m=0}i=b.indexOf(`${m}`);if(q>0){if(m>=q){`$(user) — You need to bid higher than ${b[i]} (${u[i]}).`}else{`PRIVATE_TOKEN&data=$(user) ${q}|`}}else{`$(user) — A bid must be a number above 0.`})
$(eval q=decodeURIComponent(`$(querystring)`);a=`$(urlfetch https://twitch.center/customapi/addquote?token=$(query))`;if(q.includes(`PRIVATE_TOKEN`)){if(a.includes(`Successfully added entry`)){q=q.replace(`PRIVATE_TOKEN&data=`,``).replace(`|`,``).split(` `);`${q[0]} successfully bid ${q[1]}.`}else{`$(user) — There was an error, try again.`}}else{q})
• !topbid
:
$(eval a=`$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN&no_id=0)`.split(`|`);a.pop();u=[];b=[];a.forEach(e=>{t=e.split(` `);b.push(t.pop());u.push(t.pop())});m=Math.max(...b);if(m===-Infinity){m=0}i=b.indexOf(`${m}`);if(m>0){`${u[i]} has the top bid with ${b[i]}`}else{`$(user) — There are no bids yet, be the first!`})
• !resetauction
:
$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&clear=1)
You need to replace the PUBLIC_TOKEN
(2) and PRIVATE_TOKEN
(4) fields, to generate them click on the second link in the Quote API System topic: the PUBLIC_TOKEN
is 8 characters long, the PRIVATE_TOKEN
is 16 characters long, it’s the string after the ?token=
part.
Make sure that _bid
is the alias of !bid
, and that !resetauction
is mod-only.
Please don’t add the commands containing your PRIVATE_TOKEN
through the chat, keep them secret, don’t even post them here.
Hopefully that’ll work first try, I didn’t have time to test it. If there’s an issue please take screenshots (without the PRIVATE_TOKEN
) and I’ll try to fix it, but you’ll have to give me time, I’m busy lately.
The !bid
command checks if the user is bidding an amount above the current top bid, if not it informs them and their entry isn’t counted.
If you want a different output to !resetauction
, which you likely will, let me know what’s the current output and your desired one, and I’ll update the code.