Bitcoin Forum

Bitcoin => Project Development => Topic started by: dan on May 16, 2015, 08:17:46 PM



Title: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 16, 2015, 08:17:46 PM
Update: I built this for the Moneypot API as it was when RHavar founded it. Since then, Moneypot is under new ownership and its API has possibly changed. I will not be updating this script. You'll need to know some Javascript to maintain it. I don't offer any technical support.


Untitled Dice v0.0.8
Run your own dice site without funding your own bankroll and without risking your own money


Live Demo:
https://untitled-dice.github.io



Source Code:
https://github.com/untitled-dice/untitled-dice.github.io


https://i.imgur.com/dTwOR01.png


What is it?

Untitled Dice is a bare-bones bitcoin dice casino built on top of the Moneypot.com gambling API that lets anyone run their own dice site by cloning and modifying this project.

Since Moneypot handles the user accounts, betting, faucet, and chat, Untitled Dice does not need a server of its own. It's fully client-side (just some javascript files), so it can be hosted anywhere including Github.

Features

- Chat box
- Hotkeys
- Faucet
- Provably fair verification
- Serverless: Host it anywhere that hosts html and javascript files
- Free bankroll: Since your users bet against Moneypot's bankroll, you risk no money and the profits are shared between you, Moneypot, and Moneypot's investors. See: https://www.moneypot.com/investment
- 1% house edge

Want to run your own dice site?

1. Clone this project's code (https://github.com/untitled-dice/untitled-dice.github.io) or get the latest stable release here: https://github.com/untitled-dice/untitled-dice.github.io/releases
2. Create an app at Moneypot.com (https://www.moneypot.com/apps/new)
3. Modify the config (most importantly the config.app_id) at the top of the app.js file (https://github.com/untitled-dice/untitled-dice.github.io/blob/2d3b14c7f5fae0c81a810fd62e378f7e63099d44/app.js#L4-L21)
4. Do whatever you want with the code. Rebrand it completely. Change the colors. Improve the code. Make it your own. Just keep an eye on this thread and the github repo to look out for any updates you may want to backport into your clone.

Questions?

Just ask here. :)

If you need 1-on-1 support, you can find me lurking on MoneyPot's Slack (http://slack.moneypot.com/), username is `dan` just like here. :) Though note that this is just a hobby project so I can only provide limited support as time allows.

FAQ

Q: My faucet won't work
A: The faucet uses Google ReCaptcha to prevent abuse, so you sign your website up with ReCaptcha here: https://www.google.com/recaptcha/intro/index.html - Once you register your site there, ReCaptcha will give you a site_key and a site_secret. Your site_key goes into the config at the top of app.js, and your site_secret goes into the "Edit App" page for your app - you will see a field called "Recaptcha Secret".

Q: What commands are available in the chatbox?
A: Only app owners and mods can use commands.
Code:
COMMAND                         DESCRIPTION
/mute <username> <duration>     Mute <username> for <duration>
/unmute <username>              Unmute <username>

EXAMPLES
/mute foo forever               Mute user "foo" forever
/mute foo 10 min                Mute user "foo" for 10 minutes
/mute foo 30 sec                Mute user "foo" for 30 seconds
/mute foo 1 day                 Mute user "foo" for 1 day
/unmute foo                     Unmutes user "foo"

TODO list and things I need to improve:

- Implement auto-better
- Implement an "All Bets" tab
- Let user set client-seed. It defaults to 0 right now.
- [Implemented in v0.0.7] Display timestamps in chat
- [Fixed in v0.0.3] Right now, the chatbox always scrolls to the last message every time someone chats. This is very annoying when you're trying to scroll back to read previous conversation because the chat will keep jerking you to the latest message. I need to fix it so that the chat only scrolls if you are viewing the latest message.

Changelog:

v0.0.8 (13 August 2015): Added configurable house edge (minor but often-requested feature)
- You can now configure the script's house-edge in the configuration settings at the top of app.js (default is 1%)

v0.0.7 (13 August 2015): Upgrades to Moneypot's new socket-/chat-server (Vastly improves the Untitled-Dice experience. Recommended upgrade!)
- Read more here: https://bitcointalk.org/index.php?topic=1062680.msg12135241#msg12135241
- Chat messages and mutes are now saved in Moneypot's database and will not be forgotten when the chat-server resets
- Mods now have the power to /mute and /unmute
- The UI instantly updates to reflect changes in the user's confirmed and unconfirmed balance (when they deposit bitcoin to your app's bitcoin address)
- Chat messages now have a HH:MM timestamp

v0.0.6 (3 June 2015): Very minor/skippable release
- Made bet validation errors more user-friendly: https://bitcointalk.org/index.php?topic=1062680.msg11524765#msg11524765

v0.0.5 (2 June 2015):
- Added Deposit and Withdraw dialog links to navbar so users can move money in and out of untitled-dice without navigating to Moneypot. Read more at https://www.moneypot.com/api-docs#dialogs

v0.0.4:
- Fixed bug where betting high would have house of edge of 1.02% instead of 1.00% - https://github.com/untitled-dice/untitled-dice.github.io/blob/1beabd04d13dd0d619498dc198b165c3a5c6b0d3/app.js#L67

v0.0.3:
- ChatBox only scrolls to last message if user is already scrolled to the bottom when someone chats
- Fixed a cross-browser compatibility issue (e.g. "Number.isFinite" error in Safari)
- Started adding version as a comment in app.js to help operators follow the changelog

My other work:

- http://plinkopot.com/


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: GreydonIselmoe on May 16, 2015, 09:41:01 PM
How would I run this on my own domain?

Look great, though! I'm not entirely familiar with moneypot, but I do know that most other open source dice scripts tend to have backdoors hardcoded somewhere to send deposits to a specific address, or allow for an attacker (the developer) to enter and withdraw or mess around with existing code.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: arallmuus on May 16, 2015, 10:05:58 PM
Look great, though! I'm not entirely familiar with moneypot but I do know that most other open source dice scripts tend to have backdoors hardcoded somewhere to send deposits to a specific address, or allow for an attacker (the developer) to enter and withdraw or mess around with existing code.

You might want to take a look abit more into moneypot https://bitcointalk.org/index.php?topic=1020726.0

All I can explain about this is that if a site is build on top of moneypot then you could be sure that it will be verified by Ryan and his team since the bankroll will be from moneypot itself, so Ryan will make sure if the code has no backdoors or any exploit that might harm moneypot ( You could choose to provide your own bankroll as well )


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 16, 2015, 10:16:49 PM
How would I run this on my own domain?

Look great, though! I'm not entirely familiar with moneypot, but I do know that most other open source dice scripts tend to have backdoors hardcoded somewhere to send deposits to a specific address, or allow for an attacker (the developer) to enter and withdraw or mess around with existing code.

Since you're not actually running your own webserver, you can host your casino anywhere that will host some HTML and Javascript files. This is known as a "static website" as opposed to a "dynamic website" (backed by a database/webserver).

So, Googling for "host static website" or "host static website with custom domain" should give you a good overview of your options.

The Untitled Dice live demo is hosted on https://pages.github.com/ which has a quick article on how to point a custom domain at your "{USERNAME}.github.io" domain: https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/

It looks like one of the easiest options would be to point a custom domain at a Dropbox folder. Here's a random article I found that recommends some services you might be interested in: http://www.maketecheasier.com/4-ways-to-host-your-website-on-dropbox/ (I Googled for "host static website on dropbox").

Re: Scripts with backdoors: Yeah, before I built this project, I first looked into getting some of the most popular casino scripts and then modifying them to talk to the Moneypot API. I thought it would allow me to leverage existing efforts and maybe rally some interest among turn-key script developers. But I wasn't impressed with the options and decided to write my own.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: GreydonIselmoe on May 16, 2015, 10:27:15 PM
Seeing how it uses moneypot as a bankroll, is it possible to configure untitled dice to use my local coindaemon? I'm trying to use this with an altcoin, that's why I ask.

Regarding backdoors, I see that Ryan would probably have screened this a bit and it's most likely safe. Thanks for your work!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on May 16, 2015, 10:48:48 PM
All the code is available as non-obfuscated, easy to read javascript, designed for developers to fork; so I wouldn't worry too much about any backdoors. It's really just a static website, that stores no funds or anything.

Which is actually a really neat thing. You don't need to worry about getting shut down (just reopen on a different file host) or think too much about security =)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: joclixal on May 16, 2015, 11:34:38 PM
i try create app, for what App Secret at moneypot??


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 16, 2015, 11:49:56 PM
i try create app, for what App Secret at moneypot??

An app_secret is for apps that run on a server. My script runs in the browser, so you don't need the app_secret (you can just ignore it).

To connect my script with your own Moneypot casino, you just need to set the `app_id` and `redirect_uri` at the top of app.js.

Also, your `redirect_uri` in app.js needs to be one of the redirect_uris you set for your app on Moneypot's "Edit App" page. Need more help?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: joclixal on May 17, 2015, 12:04:53 AM
i try create app, for what App Secret at moneypot??

An app_secret is for apps that run on a server. My script runs in the browser, so you don't need the app_secret (you can just ignore it).

To connect my script with your own Moneypot casino, you just need to set the `app_id` and `redirect_uri` at the top of app.js.

Also, your `redirect_uri` in app.js needs to be one of the redirect_uris you set for your app on Moneypot's "Edit App" page. Need more help?
all done only 1 problem faucet not fuction always WAITING_FOR_SERVER?
look
http://dice.clixincome.com/ (http://dice.clixincome.com/)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on May 17, 2015, 12:30:41 AM
all done only 1 problem faucet not fuction always WAITING_FOR_SERVER?

You'll need to register on: https://www.google.com/recaptcha/intro/index.html  your site, and then get the "site_secret" and put it in the moneypot.com app admin page.

@Dan, probably should be added to the README


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 17, 2015, 12:46:00 AM
Added an FAQ section to the first post that answers this question.

I will soon update the script so that it makes it more clear *why* the Faucet is failing.

Let me know if you still have trouble after setting up ReCaptcha, joclixal.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 17, 2015, 02:09:42 AM
If you have a fork of this script, you may want to pull in the v0.0.3 changes I just released.

It fixes some cross-browser compatibility issues. It also improves the chatbox by only scrolling to the latest message when the user is already near the bottom. That way, users won't be forced to the bottom of the chatbox every time a new message comes in.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on May 18, 2015, 01:05:17 PM
..............................

Which is actually a really neat thing. You don't need to worry about getting shut down (just reopen on a different file host) or think too much about security =)

what do you mean with one doesn't need to worry about getting shut down? thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: unamis76 on May 18, 2015, 02:33:39 PM
Since the funds don't seem to be separated, depositing/gambling/withdrawing there or in any other spinoff of this site is exactly the same as playing on MoneyPot?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on May 18, 2015, 02:47:12 PM
Since the funds don't seem to be separated, depositing/gambling/withdrawing there or in any other spinoff of this site is exactly the same as playing on MoneyPot?

thank you for the question because it gives me a chance to add my question. if I would use moneypot investors will all my users need to register and deposit through moneypot?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on May 18, 2015, 04:37:42 PM
Since the funds don't seem to be separated, depositing/gambling/withdrawing there or in any other spinoff of this site is exactly the same as playing on MoneyPot?

Users have their own balance for your site, it's completely separated from their normal moneypot balances and their balances at other "powered by moneypot.com" sites


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on May 18, 2015, 04:38:42 PM
if I would use moneypot investors will all my users need to register and deposit through moneypot?

Yeah, they will need to register an account with moneypot (there's a nice workflow, that's not too intrusive). While they don't need to go on moneypot.com to do the deposit (they can deposit directly from your app) the funds are managed by moneypot.com


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on May 18, 2015, 04:40:04 PM
what do you mean with one doesn't need to worry about getting shut down? thanks

I just mean there's no user-information, bitcoins, or any other sensitive information stored by the filehost. So if they do shut you off from hosting, you can easily reopen somewhere else (as opposed to having a huge database to migrate)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on May 18, 2015, 05:35:01 PM
if I would use moneypot investors will all my users need to register and deposit through moneypot?

Yeah, they will need to register an account with moneypot (there's a nice workflow, that's not too intrusive). While they don't need to go on moneypot.com to do the deposit (they can deposit directly from your app) the funds are managed by moneypot.com

just to be sure that I understood you right. lets say I will have 1k users so they all need to register with moneypot instead with my website?
thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: PolarPoint on May 18, 2015, 05:50:40 PM
This is a major step forward for anyone who wants to start their own dice site! It sounds very easy to build and owner do not need to fund his own bankroll. The commissions of moneypot is difficult to understand. If someone can work it out, I think small profits can be made.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on May 18, 2015, 05:55:45 PM
This is a major step forward for anyone who wants to start their own dice site! It sounds very easy to build and owner do not need to fund his own bankroll. The commissions of moneypot is difficult to understand. If someone can work it out, I think small profits can be made.

why would some one want to own another dice site? moneypot is a great idea and very helpful but IMO for other games than dice.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 18, 2015, 06:13:39 PM
This is a major step forward for anyone who wants to start their own dice site! It sounds very easy to build and owner do not need to fund his own bankroll. The commissions of moneypot is difficult to understand. If someone can work it out, I think small profits can be made.

why would some one want to own another dice site? moneypot is a great idea and very helpful but IMO for other games than dice.

I decided that a dice script would be a good start. Everyone is familiar with dice and how dice work. It's also pretty easy to build and, thus, enhance with your own ideas.

I will keep improving the script, listening to feedback, providing support to anyone that wants to use it, and updating it with new features.

I also plan on releasing more scripts like plinko and slots. :)

I'm always open to feedback, thoughts, ideas, and suggestions!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on May 19, 2015, 06:48:19 AM
@Dan

a client side game would be enough to start with moneypot? did I understand that right? but a client and server side would be also fine? thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 19, 2015, 08:09:50 AM
@Dan

a client side game would be enough to start with moneypot? did I understand that right? but a client and server side would be also fine? thanks

Exactly. Untitled Dice is 100% client-side which is why you can run it anywhere.

Moneypot's API also supports server-side apps: https://www.moneypot.com/api-docs (see anything related to the "confidential flow")


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: PesiHUN on May 19, 2015, 11:12:50 PM
Check it and give it a try pls :) https://pesihun.github.io/
I would like to see how it works etc. so anybody who can afford play 1-2 games ty :)
EDIT.: After im playing with 2 bits and lose all of them, i checked the apps owner tab and i only get 0.03 bit :/ its so low


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 20, 2015, 06:41:12 AM
EDIT.: After im playing with 2 bits and lose all of them, i checked the apps owner tab and i only get 0.03 bit :/ its so low

You're splitting the house edge half-and-half with investors, and you're risking nothing, and it's a 200 satoshi bet.

Does that figure really seem so low, considering?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: PesiHUN on May 20, 2015, 09:43:58 AM
BTW i like it its so smooth and user friendly, maybe in the days i try to make a blackjack for it


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: unamis76 on May 20, 2015, 11:42:55 AM
Since the funds don't seem to be separated, depositing/gambling/withdrawing there or in any other spinoff of this site is exactly the same as playing on MoneyPot?

Users have their own balance for your site, it's completely separated from their normal moneypot balances and their balances at other "powered by moneypot.com" sites

OP says one does not need to add funds... What if a user wins big time? How will he be getting paid?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on May 20, 2015, 03:39:00 PM
BTW i like it its so smooth and user friendly, maybe in the days i try to make a blackjack for it

The MoneyPot API (https://www.moneypot.com/api-docs) only supports atomic bets, so it might be a bit tricky to make a true version of blackjack


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on May 20, 2015, 03:41:32 PM
OP says one does not need to add funds... What if a user wins big time? How will he be getting paid?

The MoneyPot.com investors will pay. For instance, yesterday a new casino launched (betterbets.io) using our API which attracted a mini-whale (unibtc) who walked away with 1 BTC in net profit. betterbets.io made their constant commission, but the investors absorbed all that volatility. If for instance, the whale had lost 1 BTC (but wagered the same) betterbets.io would have made an identical amount of money.

So basically MoneyPot and your app do a 50-50 profit share, and investors absorb volatility for you and provide the bankroll. =)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: activebiz on May 20, 2015, 03:43:21 PM
is it possible to host and control everything myself.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: CrackedLogic on May 20, 2015, 03:58:39 PM
I'm going to be running this locally and try it out. It seems as if this script will be the next microfaucet of dice sites.
is it possible to host and control everything myself.

This? ^


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on May 20, 2015, 04:08:28 PM
BTW i like it its so smooth and user friendly, maybe in the days i try to make a blackjack for it

The MoneyPot API (https://www.moneypot.com/api-docs) only supports atomic bets, so it might be a bit tricky to make a true version of blackjack

could you please ELI 5 what you understand under a true version of blackjack and what kind of blackjack would be possible to offer with MP thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on May 20, 2015, 04:59:12 PM
is it possible to host and control everything myself.

What you can do, is what betterbets.io does, and use the "confidential flow"  (See: moneypot.com/api-docs ). It allows you a lot more control, as your run your own server, and can store what ever you want. Definitely a bit harder, but might be worth doing.

could you please ELI 5 what you understand under a true version of blackjack and what kind of blackjack would be possible to offer with MP thanks

The issue with a non-atomic game like blackjack, is that there is some information reveal in the middle which would mess with the investor system (they could invest during a bad hand, and divest in a good hand). So if you do want to use the MP bankroll, you need to a bet which has an instant resolution (e.g. roulette, plinko, dice) and doesn't leak intermediate state.

We're going to be supporting games like blackjack very soon, but they will have the caveat that you need to bring your own bankroll


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on May 20, 2015, 05:15:40 PM

could you please ELI 5 what you understand under a true version of blackjack and what kind of blackjack would be possible to offer with MP thanks

The issue with a non-atomic game like blackjack, is that there is some information reveal in the middle which would mess with the investor system (they could invest during a bad hand, and divest in a good hand). So if you do want to use the MP bankroll, you need to a bet which has an instant resolution (e.g. roulette, plinko, dice) and doesn't leak intermediate state.

We're going to be supporting games like blackjack very soon, but they will have the caveat that you need to bring your own bankroll

so you mean games with instant results or decision. for example a dice game which needs 8 rolls to show the final result would not be acceptable? and regarding own bankroll, is it possible right now to use own bankroll or will it be implemented at a later stage?
thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on May 21, 2015, 05:30:09 PM
Released v0.0.4 to fix a bug where betting high had a 1.02% house edge instead of a 1.00% house edge.

If you can't merge in the change or you just want to patch it yourself, here's the line of code in app.js that was updated: https://github.com/untitled-dice/untitled-dice.github.io/blob/1beabd04d13dd0d619498dc198b165c3a5c6b0d3/app.js#L67


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: PesiHUN on May 27, 2015, 03:39:38 PM
Dan, im thinking on make some betting site with ur system, just i dont know is it the same like a real money gambling site, i mean i need to buy license in my country and pay tax after it or because its bitcoin i can avoid it?

u pay any money for tax/lincese after moneypot or any gamblingsite u made?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: PolarPoint on May 27, 2015, 07:41:02 PM
This is a major step forward for anyone who wants to start their own dice site! It sounds very easy to build and owner do not need to fund his own bankroll. The commissions of moneypot is difficult to understand. If someone can work it out, I think small profits can be made.

why would some one want to own another dice site? moneypot is a great idea and very helpful but IMO for other games than dice.

Dice site is a general term for a simple gambling game. You can put a twist on it to make it interesting. Dice sites are very popular. It's easy to understand the game and play. There will always be investors who want to own a dice site. It's a starting point for a full casino.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on May 28, 2015, 03:55:33 AM
This is a major step forward for anyone who wants to start their own dice site! It sounds very easy to build and owner do not need to fund his own bankroll. The commissions of moneypot is difficult to understand. If someone can work it out, I think small profits can be made.

why would some one want to own another dice site? moneypot is a great idea and very helpful but IMO for other games than dice.

Dice site is a general term for a simple gambling game. You can put a twist on it to make it interesting. Dice sites are very popular. It's easy to understand the game and play. There will always be investors who want to own a dice site. It's a starting point for a full casino.

sorry but I can't agree with you. dice sites are very popular = yes there are  a few well established dice sites like JD and PD. now that MP is making it easy for more dice sites to hit the market that doesnt mean those sites will attract many players. there could be 20 or more dice sites on MP.....so what they will have no chance to make any coins if they will not have any special effect or idea added to the game.  but good luck to all who are trying and to MP


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: SirLolicon on May 28, 2015, 04:35:05 AM
Wait so.. you still provide the bankroll right? It just uses Moneypot to manage users and deposits?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 02, 2015, 06:31:16 PM
Wait so.. you still provide the bankroll right? It just uses Moneypot to manage users and deposits?

This script uses Moneypot's bankroll which is why it's "risk-free profit".

Currently, Moneypot's provably-fair API only operates on its own bankroll, but RHavar (owner) has expressed that he's working on extending the API so that you can BYOB (bring your own bankroll :))

Yes, beyond the bankroll, Moneypot also handles the user-management and bitcoin-management.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: SirLolicon on June 03, 2015, 03:50:02 AM
how do you make a profit if you don't provide your own bankroll?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 03, 2015, 05:35:18 AM
how do you make a profit if you don't provide your own bankroll?

At a high level, the Moneypot API is a bet server that accepts any bet that's profitable to its investors (the house).

  • If the player loses the bet, the investors take the minimal amount of profit that makes it worthwhile for them, and then you (app owner) split the rest of the profit with Moneypot.
  • If the player wins the bet, then the investors float the entire wager.

Why do the investors split their profit with you? Because they're rewarding you for driving +EV volume against their bankroll.

Does that make sense? :)

Also, I just released untitled-dice v0.0.5 which adds Deposit/Withdraw dialog buttons to the navbar:

https://i.imgur.com/E8DG3QR.png

You can read more about dialogs here: https://www.moneypot.com/api-docs#dialogs - Their purpose is so that users can manage their balance on your app without visiting Moneypot.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: SirLolicon on June 03, 2015, 05:37:51 AM
how do you make a profit if you don't provide your own bankroll?

At a high level, the Moneypot API is a bet server that accepts any bet that's profitable to its investors (the house).

  • If the player loses the bet, the investors take the minimal amount of profit that makes it worthwhile for them, and then you (app owner) split the rest of the profit with Moneypot.
  • If the player wins the bet, then the investors float the entire wager.

Why do the investors split their profit with you? Because they're rewarding you for driving +EV volume against their bankroll.

Does that make sense? :)

So basically all you have to do is spice up the site and market it well and you don't need to
provide any bankroll? Just pure profit?

That's cool.

EDIT:

Was testing it with the faucet. I ran out of bits and it said "CANNOT_AFFORD_WAGER"
on the bet button. Is this changeable in the code or is it basically a bug?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 03, 2015, 05:54:06 AM
EDIT:

Was testing it with the faucet. I ran out of bits and it said "CANNOT_AFFORD_WAGER"
on the bet button. Is this changeable in the code or is it basically a bug?

It's not a bug, I just neglected to translate the errors into more user-friendly messages like "You cannot afford this wager". Once I do that, it will be trivial to just ctrl-f and replace with customized messages.

I'll improve it in v0.0.6. :D


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: SirLolicon on June 03, 2015, 06:57:46 AM
EDIT:

Was testing it with the faucet. I ran out of bits and it said "CANNOT_AFFORD_WAGER"
on the bet button. Is this changeable in the code or is it basically a bug?

It's not a bug, I just neglected to translate the errors into more user-friendly messages like "You cannot afford this wager". Once I do that, it will be trivial to just ctrl-f and replace with customized messages.

I'll improve it in v0.0.6. :D

I tried forking it to play around, the login to moneypot button always uses the redirect uri of untitled-dice
and not the one you provide in the app.js

EDIT:
Nevermind, I honestly don't know what happened but after a few minutes it started working.
Didn't have to commit any changes


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 03, 2015, 11:48:31 AM
I tried forking it to play around, the login to moneypot button always uses the redirect uri of untitled-dice
and not the one you provide in the app.js

EDIT:
Nevermind, I honestly don't know what happened but after a few minutes it started working.
Didn't have to commit any changes

Not sure if this was your issue, but it looks like Github tells your browser to cache files for up to 10 minutes so try busting your cache (forced reload) if it happens again.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 03, 2015, 03:30:08 PM
EDIT:

Was testing it with the faucet. I ran out of bits and it said "CANNOT_AFFORD_WAGER"
on the bet button. Is this changeable in the code or is it basically a bug?

It's not a bug, I just neglected to translate the errors into more user-friendly messages like "You cannot afford this wager". Once I do that, it will be trivial to just ctrl-f and replace with customized messages.

I'll improve it in v0.0.6. :D

Okay, just addressed this and released v0.0.6 (minor release). Bet validation errors are now translated into human-friendly messages.

For example:

https://i.imgur.com/M1jC5yR.png
(It used to say "CANNOT_AFFORD_WAGER")

You can edit the messages here: https://github.com/untitled-dice/untitled-dice.github.io/blob/4def9cc1222cb998792ccae1149ce87828f07166/app.js#L1316-L1323

Thanks for the feedback, SirLolicon. :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: SirLolicon on June 04, 2015, 03:14:55 AM
EDIT:

Was testing it with the faucet. I ran out of bits and it said "CANNOT_AFFORD_WAGER"
on the bet button. Is this changeable in the code or is it basically a bug?

It's not a bug, I just neglected to translate the errors into more user-friendly messages like "You cannot afford this wager". Once I do that, it will be trivial to just ctrl-f and replace with customized messages.

I'll improve it in v0.0.6. :D

Okay, just addressed this and released v0.0.6 (minor release). Bet validation errors are now translated into human-friendly messages.

For example:

https://i.imgur.com/M1jC5yR.png
(It used to say "CANNOT_AFFORD_WAGER")

You can edit the messages here: https://github.com/untitled-dice/untitled-dice.github.io/blob/4def9cc1222cb998792ccae1149ce87828f07166/app.js#L1316-L1323

Thanks for the feedback, SirLolicon. :)

Sure, I love your project, and there's no way I can help but try it out and maybe bring this out of the dark and release
a version of this to the public ((:

EDIT:

A little question, how does a user become a mod in the site?
I've seen that Moneypot Staff have a tag of "MP Staff" and there's another tag "Mod"


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 04, 2015, 08:17:03 PM
A little question, how does a user become a mod in the site?
I've seen that Moneypot Staff have a tag of "MP Staff" and there's another tag "Mod"

Moneypot doesn't currently let you appoint mods for your app or co-owners, but that will change soon. (So far it's just one owner per app)

Once that update lands, then you'll be able to go to your "edit app" page on Moneypot and add/remove moderators, and they'll show up in chat with the "Mod" medallion next to their name.

Also, someone reminded me in PM, but I need to add a chat command cheatsheet beneath the chatbox. For example, as an owner, you can "/mute foobar 10" to mute someone named foobar for 10 minutes. And you can unmute them with "/unmute foobar".


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Pores on June 05, 2015, 06:23:53 AM
When the commands for the chat come out, do we have to update any files in the script?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: krach on June 05, 2015, 12:44:42 PM
Is there an affilate system for your dice site or for moneypot?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on June 05, 2015, 12:57:25 PM
Is there an affilate system for your dice site or for moneypot?

very good question I am also very interested to see the answer


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 05, 2015, 03:58:14 PM
When the commands for the chat come out, do we have to update any files in the script?

The chatbox already supports "/mute foobar 40" (40 minutes) and "/unmute foobar", but I will have to update the script when I add more commands.

Ideally, you use Git to keep your script in sync with my script. For example, when I make a change, you can just run "git pull" to get my changes.

Is there an affilate system for your dice site or for moneypot?

No. Moneypot doesn't have API support for a referral system, so it currently can't be done with a client-side script like untitled-dice.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on June 05, 2015, 04:34:23 PM

Is there an affilate system for your dice site or for moneypot?

No. Moneypot doesn't have API support for a referral system, so it currently can't be done with a client-side script like untitled-dice.

is it on MP to do list? and if not what you are saying is that the only solution is to add a server side to the client side? I am asking because I would like to have a referral program if I would do a game app.



Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 05, 2015, 09:20:36 PM
is it on MP to do list? and if not what you are saying is that the only solution is to add a server side to the client side? I am asking because I would like to have a referral program if I would do a game app.

You may want to direct that first question to RHavar's Moneypot topic: https://bitcointalk.org/index.php?topic=1020726.0

At the point that you are running your own server that communicates with Moneypot (instead of a serverless script), then your options become open-ended because you can complement Moneypot's API with your own features.

For example, and this is totally off the top of my head, you could write your server so that it handles `example.com?referral=foobar` by saving `referral=foobar` in the visitor's browser cookie. Now, whenever a user enables your app from Moneypot and is redirected back to your website for the first time, you can see if they have that browser cookie. If so, then you can hook up the referral link to "foobar" and do whatever you want with it.

In other words, Moneypot doesn't stop you from building this kind of functionality once you're running your own server and database. Of course, that's beyond the scope of this thread.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on June 06, 2015, 08:28:21 PM
is it on MP to do list? and if not what you are saying is that the only solution is to add a server side to the client side? I am asking because I would like to have a referral program if I would do a game app.

You may want to direct that first question to RHavar's Moneypot topic: https://bitcointalk.org/index.php?topic=1020726.0

At the point that you are running your own server that communicates with Moneypot (instead of a serverless script), then your options become open-ended because you can complement Moneypot's API with your own features.

For example, and this is totally off the top of my head, you could write your server so that it handles `example.com?referral=foobar` by saving `referral=foobar` in the visitor's browser cookie. Now, whenever a user enables your app from Moneypot and is redirected back to your website for the first time, you can see if they have that browser cookie. If so, then you can hook up the referral link to "foobar" and do whatever you want with it.

In other words, Moneypot doesn't stop you from building this kind of functionality once you're running your own server and database. Of course, that's beyond the scope of this thread.

thanks for explaining in more depth, very much appreciated. I asked my question in other thread

how would it be if I want to add a auto betting bot? would full client side work or server side needed?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 07, 2015, 07:29:30 PM
thanks for explaining in more depth, very much appreciated. I asked my question in other thread

how would it be if I want to add a auto betting bot? would full client side work or server side needed?

An auto-betting/bot system can be built on the client-side. It can even just use the UI directly, like "double the contents of the wager field and trigger the 'Bet' button".

Related: I will be adding an auto-betting system to Untitled Dice in a future release.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: LazerPanther on June 20, 2015, 04:52:09 AM
dan, this is amazing. Just found the source while browsing GitHub which then led me here. Is the Moneypot thread you linked earlier the most active for updates or should I keep watching this thread?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on June 25, 2015, 07:02:22 PM
dan, this is amazing. Just found the source while browsing GitHub which then led me here. Is the Moneypot thread you linked earlier the most active for updates or should I keep watching this thread?

Hey, I'm keeping this thread updated with Untitled Dice updates. You can see the changelog in the OP which I maintain.

There haven't been any updates recently, but my next big update will include an autobet feature.

I'm also developing the groundwork right now that will allow Untitled Dice to automatically update when players deposit directly to the bitcoin address (QR code) shown in the "Deposit" button.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: noel57 on June 29, 2015, 08:50:43 AM
This is awesome but I still find it difficult to believe and I hope you will not be running advertisements on my website home page.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on June 29, 2015, 09:56:02 AM
This is awesome but I still find it difficult to believe and I hope you will not be running advertisements on my website home page.

dont understand. please explain what I missed. thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Toflo on June 29, 2015, 12:33:46 PM
Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server need
Post by: melisande on June 29, 2015, 07:44:08 PM
Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"
IU would have love to see our the script look like but your website http://doodledice dot tk is not loading.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server need
Post by: Toflo on June 30, 2015, 06:20:59 AM
Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"
IU would have love to see our the script look like but your website http://doodledice dot tk is not loading.

Really? it works fine for me, are you sure you typed doodledice(dot)tk?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: noel57 on June 30, 2015, 07:23:23 AM
This is awesome but I still find it difficult to believe and I hope you will not be running advertisements on my website home page.

dont understand. please explain what I missed. thanks
What is the catch about this? will you be running advertisements on my website home page.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ikydesu on June 30, 2015, 11:31:54 AM
Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"
IU would have love to see our the script look like but your website http://doodledice dot tk is not loading.

I can open the site, but when i try to login with MoneyPot, the site blocked the action.


~iki


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Toflo on June 30, 2015, 12:28:52 PM
Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"
IU would have love to see our the script look like but your website http://doodledice dot tk is not loading.

I can open the site, but when i try to login with MoneyPot, the site blocked the action.


~iki
What exactly happens if you try to login? Does it just do nothing?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ikydesu on June 30, 2015, 01:01:06 PM
Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"
IU would have love to see our the script look like but your website http://doodledice dot tk is not loading.

I can open the site, but when i try to login with MoneyPot, the site blocked the action.


~iki
What exactly happens if you try to login? Does it just do nothing?

Nothing, my browser blocked the action when i click "login with MoneyPot" button.
I'm used Firefox.


~iki


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Toflo on June 30, 2015, 03:52:51 PM
Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"
IU would have love to see our the script look like but your website http://doodledice dot tk is not loading.

I can open the site, but when i try to login with MoneyPot, the site blocked the action.


~iki
What exactly happens if you try to login? Does it just do nothing?

Nothing, my browser blocked the action when i click "login with MoneyPot" button.
I'm used Firefox.


~iki

just tried to login with firefox, its working for me neither, the problem is the forwarding of dot tk
i switched the forwarding method, now it seems to work as its ment to!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on July 04, 2015, 06:40:14 PM
This is really great work by Dan and the moneypot team. I'm going to give this a whirl and see if I get a clone working myself, sounds pretty straight forward.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: hamburger on July 04, 2015, 10:07:39 PM

Could one set up a dice site on a server with cpanel hosting? If so, is there any instructions somewhere to do so.

Thank you,

H


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on July 05, 2015, 02:52:59 AM

Could one set up a dice site on a server with cpanel hosting? If so, is there any instructions somewhere to do so.

Thank you,

H


I didn't even need cPanel for MiniDice lol.
It's just React-JS and HTML


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on July 05, 2015, 03:49:28 AM
Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on July 05, 2015, 11:45:32 AM
Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

fix the app.js entry for that lol


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: gkv9 on July 05, 2015, 12:31:57 PM
@OP, thanks a lot for this, thanks for letting people like us to be able to manage their own dice sites, if I need your help setting this up even after all the instructions here, will you guide me through???


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on July 05, 2015, 03:31:53 PM
Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

fix the app.js entry for that lol
I did change the redirect uri in the app.js but it still forces it over to https after loading causing a 404 error.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: hamburger on July 05, 2015, 05:32:30 PM
Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

fix the app.js entry for that lol
I did change the redirect uri in the app.js but it still forces it over to https after loading causing a 404 error.

I take it that you have set redirect uri to => redirect_uri: 'http://www.your-domain.................',

Find these lines in app.js
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally()

Change it to

Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  //force_https_redirect: !isRunningLocally()


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on July 05, 2015, 05:58:57 PM
Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

fix the app.js entry for that lol
I did change the redirect uri in the app.js but it still forces it over to https after loading causing a 404 error.

I take it that you have set redirect uri to => redirect_uri: 'http://www.your-domain.................',

Find these lines in app.js
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally()

Change it to

Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  //force_https_redirect: !isRunningLocally()

Thanks Hamburger that was it!
Mega facepalm! How did I not see that? The dev even commented it out! Sometimes the things hardest to find are right in front of my face. LOL
All is working well now that I commented out the force_https_redirect    thanks!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: pescu23 on July 05, 2015, 08:33:41 PM
Hi!

I've installed in https://meherdice.com and it looks great!

Where do I configure the Hedge and so??

and why do the App appears like unverified??

Thanks!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Nyau on July 06, 2015, 07:28:57 PM
I'm trying to get up my first website with this script, but I don't have SSL and it always redirects to https://.. I found this
Code:
// - Set this to true if you want users that come to http:// to be redirected
  //   to https://
But what do I have to set to true? There's nothing like this..


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: owlcatz on July 06, 2015, 07:30:44 PM
I'm trying to get up my first website with this script, but I don't have SSL and it always redirects to https://.. I found this
Code:
// - Set this to true if you want users that come to http:// to be redirected
  //   to https://
But what do I have to set to true? There's nothing like this..

Those are comments in the code. There should be some code right underneath, like (This is just a guess)

$HTTPS == "true"

(Or something along those lines).  Good luck! ;)


Sorry, I didn't realize the source was on the OP.

This is javascript, so it's different:

Here is the default code, which is causing your redirects to https://
Code:
force_https_redirect: !isRunningLocally()

Since I'm not a Javascript person, I can only guess that removing the ! in front of that function call above will reverse the effect of what is there now - Here is the function it calls if it helps -

Code:
// :: Bool
function isRunningLocally() {
  return /^localhost/.test(window.location.host);
}

Edit - Or, you could try just replacing !isRunningLocally() with either :

true

or

"true"

and see if that fixes it.  Good luck! :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Nyau on July 06, 2015, 08:05:59 PM
I'm trying to get up my first website with this script, but I don't have SSL and it always redirects to https://.. I found this
Code:
// - Set this to true if you want users that come to http:// to be redirected
  //   to https://
But what do I have to set to true? There's nothing like this..

Those are comments in the code. There should be some code right underneath, like (This is just a guess)

$HTTPS == "true"

(Or something along those lines).  Good luck! ;)


Sorry, I didn't realize the source was on the OP.

This is javascript, so it's different:

Here is the default code, which is causing your redirects to https://
Code:
force_https_redirect: !isRunningLocally()

Since I'm not a Javascript person, I can only guess that removing the ! in front of that function call above will reverse the effect of what is there now - Here is the function it calls if it helps -

Code:
// :: Bool
function isRunningLocally() {
  return /^localhost/.test(window.location.host);
}

Edit - Or, you could try just replacing !isRunningLocally() with either :

true

or

"true"

and see if that fixes it.  Good luck! :)

I know it's just comments in the code.. I'm noob, but not that big :D

BTW: I removed the ! and it's working! Thanks! :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: pescu23 on July 06, 2015, 08:20:30 PM
I miss the TARGET to roll over or under...

Anyone can help me a bit to add this to the script?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: owlcatz on July 06, 2015, 09:28:14 PM

I know it's just comments in the code.. I'm noob, but not that big :D

BTW: I removed the ! and it's working! Thanks! :)

No problem, and btw, I didn't mean to imply you were a noob, I just thought it was odd that you only included the comments and not the code.

Glad you got it working. Always hated Javascript myself, it can really be messy sometimes! ;)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: pescu23 on July 07, 2015, 08:22:58 AM
Hi!!

I have a couple doubts, please it would be great if someone could HELP me!!!


- Where do I configure the Hedge and so??

- And why do the Domain appears like unverified??

- How can I add the TARGET (Under 50.5 or Over whatever) to the script?? (This is a important missing thing!)

Thanks in advance!!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: pescu23 on July 07, 2015, 05:07:25 PM
No one can help me here??

 ???


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: hamburger on July 07, 2015, 06:11:30 PM
No one can help me here??

 ???

If you want to change the "Chance:", find in the app.js the following line of code

Code:
  multiplier: {
    str: '2.00',
    num: 2.00,
    error: undefined
  },

Set multiplier anything between 1 and 10 - just note the profit drop if the Chance increase an it will increase if the Chance decrease.






Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: pescu23 on July 07, 2015, 06:16:39 PM
No one can help me here??

 ???

If you want to change the "Chance:", find in the app.js the following line of code

Code:
  multiplier: {
    str: '2.00',
    num: 2.00,
    error: undefined
  },

Set multiplier anything between 1 and 10 - just note the profit drop if the Chance increase an it will increase if the Chance decrease.







I don't want to change the Chance, I want to add the target number.

Example for Multiplier x4, the Chance would be 24.75% and the Target would be > 75.24

I would like to show the target before Rolling the dice.

How can I implement this? I'm a bit lost here...


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: hamburger on July 07, 2015, 06:56:42 PM

I don't want to change the Chance, I want to add the target number.

Example for Multiplier x4, the Chance would be 24.75% and the Target would be > 75.24

I would like to show the target before Rolling the dice.

How can I implement this? I'm a bit lost here...

It is very important to explain exactly what you want. Do not expect people who are willing to take time to help you to just know what you are actually want.

If you want to display "Target" instead of "Chance"

Find the following code in app.js

Code:
 
    return el.div(
      {},
      el.span(
        {className: 'lead', style: { fontWeight: 'bold' }},
        'Chance: '
      ),
      innerNode
    );


Code:
 
    return el.div(
      {},
      el.span(
        {className: 'lead', style: { fontWeight: 'bold' }},
        'Target: '
      ),
      innerNode
    );


Then change the code to inverse the calculation

Find the following code in app.js

Code:
    // Just show '--' if chance can't be calculated
    var innerNode;
    if (isError) {
      innerNode = el.span(
        {className: 'lead'},
        ' --'
      );
    } else {
      innerNode = el.span(
        {className: 'lead'},
        ' ' + (winProb * 100).toFixed(2).toString() + '%'
      );
    }

change it to

Code:
    // Just show '--' if chance can't be calculated
    var innerNode;
    if (isError) {
      innerNode = el.span(
        {className: 'lead'},
        ' --'
      );
    } else {
      innerNode = el.span(
        {className: 'lead'},
        '  > ' + ((winProb * -100) + 100 ).toFixed(2).toString() + '%'
      );
    }

You site will display;

Target: > 75.24%

as simple as that!

Enjoy.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: pescu23 on July 07, 2015, 07:02:44 PM
Hamburger you are right I will be more specific when asking!

I would like to show both but I think I will be able (I'll try!) to implement it with your explanation.

Thank you very very very much, I was struggling my small mind with this all day!!

Thanks again!!!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: pescu23 on July 07, 2015, 07:10:50 PM
I'm having some difficulties to get the calculation for the <

 ???


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: pescu23 on July 07, 2015, 07:21:03 PM
got it!

I'm publishing it in case anyone is interested:

((winProb * - 100)*-1).toFixed(2).toString()


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on July 18, 2015, 11:12:50 PM
After installing this to my domain under the directory /dice it seems to have PERMANENTLY edited my server config.  Even after completely deleting the directory I installed this to it still redirects to moneypot.  I'd like to have my directory back for my own usage, what do I need to do to stop this auto-redirect?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on July 19, 2015, 04:46:56 PM
After installing this to my domain under the directory /dice it seems to have PERMANENTLY edited my server config.  Even after completely deleting the directory I installed this to it still redirects to moneypot.  I'd like to have my directory back for my own usage, what do I need to do to stop this auto-redirect?

SOLVED, it appears the issue was with my server and not this script. Since there is over 1,000 files it took longer to delete than my FTP manager lead me to believe.  Why does this app have over 1,000 files? Seems like a bit much for a site that just uses moneypot API. API is supposed to make things lightweight...


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on July 28, 2015, 02:02:02 AM
SOLVED, it appears the issue was with my server and not this script. Since there is over 1,000 files it took longer to delete than my FTP manager lead me to believe.  Why does this app have over 1,000 files? Seems like a bit much for a site that just uses moneypot API. API is supposed to make things lightweight...

Untitled Dice consists of three files (app.js, index.html, style.css) and about a dozen dependency files found in the vendor and node_modules folders. The rest of those files are nonessential cruft managed by Git and its package manager.

1500+ files are in the ".git" directory that Git creates whenever you clone a project. This folder contains all of the revisions made to a project over time and is only necessary for development purposes, so avoid pushing it to your production server.

1000+ files are in the "node_modules" directory. Untitled Dice uses a package manager called NPM to maintain that folder of dependencies. Even though Untitled Dice only uses 9 files within that folder, the NPM tool populates it with all the development files that each dependency comes with. You can see the actual files that Untitled Dice depends on right here: https://github.com/untitled-dice/untitled-dice.github.io/blob/master/index.html

One quick solution would be to zip the untitled-dice directory, FTP it to your server, and then unzip it there.

I'll look into isolating Untitled Dice's dependencies to make life easier for this workflow. :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on July 28, 2015, 04:36:51 AM
1500+ files are in the ".git" directory that Git creates whenever you clone a project. This folder contains all of the revisions made to a project over time and is only necessary for development purposes, so avoid pushing it to your production server.

Thanks for that explanation Dan, I was wondering why there were so many files included when I cloned it on github.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: smeagol on July 29, 2015, 03:45:47 AM
I put a script up at neodice.ga (http://neodice.ga), it would be great if you could take a look and give me feedback!  (There is a rudimentary XP feature, if you have any ideas feel free to PM me)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on August 13, 2015, 10:08:17 PM
v0.0.7 Release: Hooked up Moneypot's new socket/chat server

Moneypot just released a new socket-server which includes a better chat-server and pushes notifications when the user's unconfirmed and confirmed balances change.

This update doesn't change very many lines of code since the new chat-server has an almost identical API to the old one. If you want to check it out or if you want to implement this update on your own Untitled-Dice variant, you can see the changes here: https://github.com/untitled-dice/untitled-dice.github.io/commit/2e5a03fa0c683ab6f35fe7246ab538aa18f3cabd

What this changes about Untitled-Dice:

  • Chat messages are now saved in Moneypot's database and not forgotten when the chat-server resets.
  • Muted users are now saved in Moneypot's database and not forgotten when the chat-server resets.
  • The UI now instantly updates to reflect the user's unconfirmed balance and when the user's deposit is confirmed and ready to spend.

    For example, as soon as the user makes a bitcoin deposit to your app, Untitled-Dice displays it:

    https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/-vxm59n-.png

    And once a block confirms the deposit, Untitled-Dice rolls it into the user's balance:

    https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/1xv64a03.png

    In other words, users get instant peace of mind when they deposit into your app.
  • Mods now actually have /mute and /unmute power. With the previous chat-server, mods were powerless. :D
  • HH:MM timestamps are now displayed next to chat messages: https://i.imgur.com/fAZ8FrQ.png


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on August 13, 2015, 10:23:37 PM
Very nice! Good update IMO, I think some people were confused about having to refresh to see their updated balance after a deposit.
Keep up the good work guys!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on August 14, 2015, 10:01:13 PM
Very nice! Good update IMO, I think some people were confused about having to refresh to see their updated balance after a deposit.
Keep up the good work guys!

Thanks! Agreed, it's a much smoother experience now that your deposits are instantly acknowledged in the UI.

Experimental Update: Added an "All Bets" tab

Also started playing with a more visual interpretation of the roll and outcome:

https://i.imgur.com/1Le8iZB.png

I still have some more work to do like populating the All Bets tab when Untitled-Dice loads (done) and replicating the visual outcome in the My Bets tab.

I'll release the polished version in v0.0.9 soon.

I released v0.0.8 last night which adds the house edge to the configuration options at the top of app.js since it was such a common feature request. For example: https://github.com/untitled-dice/untitled-dice.github.io/issues/3


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: badbuddha on August 17, 2015, 04:31:41 PM
Could you maybe elaborate in detail how the profits between the site owner and Moneypot is split?

Let's say user X deposits 1 BTC and loses it, user Y deposits 1 BTC, wins 4 BTC and then withdraws his 5 BTC total to his wallet.
How is it split in this easy example?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on August 18, 2015, 03:54:46 AM
Could you maybe elaborate in detail how the profits between the site owner and Moneypot is split?

Let's say user X deposits 1 BTC and loses it, user Y deposits 1 BTC, wins 4 BTC and then withdraws his 5 BTC total to his wallet.
How is it split in this easy example?

They have info on this in the FAQ
https://www.moneypot.com/faq

How much do you charge?
MoneyPot is 100% free, both for users and app developers. On all bets against our bankroll we do take a 50% share of all profit you make.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on August 18, 2015, 06:11:17 AM
Could you maybe elaborate in detail how the profits between the site owner and Moneypot is split?

Let's say user X deposits 1 BTC and loses it, user Y deposits 1 BTC, wins 4 BTC and then withdraws his 5 BTC total to his wallet.
How is it split in this easy example?

They have info on this in the FAQ
https://www.moneypot.com/faq

How much do you charge?
MoneyPot is 100% free, both for users and app developers. On all bets against our bankroll we do take a 50% share of all profit you make.

what do I miss here? how can an app owner not use the MP bank roll?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: eternalgloom on August 18, 2015, 05:17:23 PM
Wow you have certainly put quite a bit of effort into this project, awesome that you're just releasing it for free.
The though of running my own dice website never crossed my mind tbh, but I will have a go at it with this though.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on August 20, 2015, 04:41:12 AM
what do I miss here? how can an app owner not use the MP bank roll?

RHavar has said that he wants to build an API for bets that cannot be provably fair like if you wanted to build a sports-betting casino on top of Moneypot.

At which point only the provably fair API would bet against the investors (the bankroll) and the unprovably fair API would not.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coldblooded on August 23, 2015, 08:38:14 AM
Hi, I've been playing around with this for a couple days.   One, my faucet just says "loading"  what am I doing wrong?    :-\

Also, can you tell me what file in the source code the endpoint is being set and the betting logic actually takes place?   Is that socket.io.js?

Thanks for providing this,  it's a great starting point for building any type of other app because it has the oauth stuff and the proven fair encryption/transaction all set up and that's probably the most time consuming part.

Thanks again for any help you can provide on the faucet and my main concern is finding the end point so i can create a custom bet.   That is what I'm basically trying to do, as I think the only bet type currently is simple_dice if I'm not mistaken.



Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on August 23, 2015, 10:46:39 AM
Hi, I've been playing around with this for a couple days.   One, my faucet just says "loading"  what am I doing wrong?    :-\

Also, can you tell me what file in the source code the endpoint is being set and the betting logic actually takes place?   Is that socket.io.js?

Thanks for providing this,  it's a great starting point for building any type of other app because it has the oauth stuff and the proven fair encryption/transaction all set up and that's probably the most time consuming part.

Thanks again for any help you can provide on the faucet and my main concern is finding the end point so i can create a custom bet.   That is what I'm basically trying to do, as I think the only bet type currently is simple_dice if I'm not mistaken.



For your faucet problem, you probably didn't enter the domain's proper secret for Google Recaptcha


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coldblooded on August 23, 2015, 10:56:38 AM
Hi, I've been playing around with this for a couple days.   One, my faucet just says "loading"  what am I doing wrong?    :-\

Also, can you tell me what file in the source code the endpoint is being set and the betting logic actually takes place?   Is that socket.io.js?

Thanks for providing this,  it's a great starting point for building any type of other app because it has the oauth stuff and the proven fair encryption/transaction all set up and that's probably the most time consuming part.

Thanks again for any help you can provide on the faucet and my main concern is finding the end point so i can create a custom bet.   That is what I'm basically trying to do, as I think the only bet type currently is simple_dice if I'm not mistaken.



For your faucet problem, you probably didn't enter the domain's proper secret for Google Recaptcha

You don't know me, why would you assume I'm a moron?  Do you think I would come on here and post in a forum asking for help before I checked for typos?

Not trying to be rude but you kind of insult my intelligence when you don't even know me.   You shouldn't assume everyone posting in a forum is a moron because they have a question.   


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on August 23, 2015, 12:49:55 PM
Hi, I've been playing around with this for a couple days.   One, my faucet just says "loading"  what am I doing wrong?    :-\

Also, can you tell me what file in the source code the endpoint is being set and the betting logic actually takes place?   Is that socket.io.js?

Thanks for providing this,  it's a great starting point for building any type of other app because it has the oauth stuff and the proven fair encryption/transaction all set up and that's probably the most time consuming part.

Thanks again for any help you can provide on the faucet and my main concern is finding the end point so i can create a custom bet.   That is what I'm basically trying to do, as I think the only bet type currently is simple_dice if I'm not mistaken.



For your faucet problem, you probably didn't enter the domain's proper secret for Google Recaptcha

You don't know me, why would you assume I'm a moron?  Do you think I would come on here and post in a forum asking for help before I checked for typos?

Not trying to be rude but you kind of insult my intelligence when you don't even know me.   You shouldn't assume everyone posting in a forum is a moron because they have a question.   

How did I assume that you're a moron? I was trying to give you a legit solution, since it's happened to a number of people.
You're obviously probably extremely mentally challenged, in conclusion from your reply.



Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coldblooded on August 23, 2015, 11:45:30 PM
Hi, I've been playing around with this for a couple days.   One, my faucet just says "loading"  what am I doing wrong?    :-\

Also, can you tell me what file in the source code the endpoint is being set and the betting logic actually takes place?   Is that socket.io.js?

Thanks for providing this,  it's a great starting point for building any type of other app because it has the oauth stuff and the proven fair encryption/transaction all set up and that's probably the most time consuming part.

Thanks again for any help you can provide on the faucet and my main concern is finding the end point so i can create a custom bet.   That is what I'm basically trying to do, as I think the only bet type currently is simple_dice if I'm not mistaken.



For your faucet problem, you probably didn't enter the domain's proper secret for Google Recaptcha

You don't know me, why would you assume I'm a moron?  Do you think I would come on here and post in a forum asking for help before I checked for typos?

Not trying to be rude but you kind of insult my intelligence when you don't even know me.   You shouldn't assume everyone posting in a forum is a moron because they have a question.   

How did I assume that you're a moron? I was trying to give you a legit solution, since it's happened to a number of people.
You're obviously probably extremely mentally challenged, in conclusion from your reply.



Well let's see here, super smart tough guy,  You said to me  "You probably didn't enter the proper secret key ..."    You did not say "The issue might be that you typo'd or have the incorrect key in the incorrect place"  You said  "You probably didn't enter the proper key etc..."     So you are automatically assuming I am so stupid that I cannot follow very very simple step by step directions that were given to me by google.   And also that I am so stupid I am unable to figure out how to copy paste a string correctly.   

I said I wasn't trying to be rude, but that you were insulting my intelligence with your statement.  Normally I would just ignore you, but since I knew you were trying to help, I figured I would give you some advice on how not to insult and/or offend people.

Of course, being the super smart tough guy you are,  you respond with insults because you have no further depth to your character.   Do the world a favor and go play in traffic.   Or go to Yahoo Answers,  they seem to love 'capt'n obvious' type answers to questions.   You'll get voted up all day if you just say the most obvious, simple, easiest answer that anyone would have tried before posting on a website about it.   And you can preface all your answers with "I don't really know anything about this,  but my best guess would be.. "   Guaranteed to get you the "best answer" title on YA.   

However,  as for this thread and my question,  I have been programming computers for over 20 years,   I know more computer languages than you've probably read books in your life.  I have been doing full time web development for over 10 years and am the top of my field with regards to talent, experience, knowledge of current technology and best practices, bullet proof security policies, and being able to do the jobs that no one else can figure out.   

So you can be assured that anything you can think of, I've tried,  I was posting this question to the developer of the app, as that person is a programmer who knows exactly how the program works and is not just wasting time posting answers that anyone with half a brain would already have tried.

But you seem REALLY smart and SUPER mature, so I'm sure you'll go far my friend, just do it somewhere far away from me.

Thanks



Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coldblooded on August 24, 2015, 01:46:00 AM
I'm pretty much convinced moneypot is a scam.   I've been playing the dice game all day running tests.   The odds are BS.    I have done nothing but lose, no matter what strategy I follow.

Keywords (for SEO):  Moneypot scam, Moneypot is rigged,  Moneypot is a criminal operation,  Moneypot is run by theives and con artists,  Moneypot ripped me off,  Moneypot stole my money,  Moneypot is not fair,   Moneypot sucks,  Moneypot screwed me over,  Moneypot is not legitimate,  Moneypot steals from players.


Here is a common scenario.   I had to bring my multiplier down to 1.24x just to get some green on the board.   Yet it's still hitting like 70% losses when it's supposed to be 80% wins.  So that's kind of a big discrepancy.

Sorry to let everyone know, but I'm going to make this public.   I don't think anyone should be scammed and ripped off, whether I'm making a profit off of them or not.

MONEYPOT is CHEATING its players.

I have experienced this on every MP dice site that I have played on.   Every one of them is a bullshit scam because MP is making the profit and the wager results come from MP.  And this whole proven fair thing is a joke.   So easy to fake its not even funny how stupid people think its air tight.

If the house edge is 1%,  how did I lose 50k bits yesterday after playing for like 10 - 20 minutes and only betting for like 100 - 300 chips per spin.   All on 50/50 or better odds and NOT GETTING THOSE ODDS if I'm losing 150x my wager amount in a matter of a few minutes.

Then I tried again on my own MP dice site running THIS software,   I lost 30k chips in about 10 minutes doing the same thing. 

This was over multiple buyins too.  I bought in for 3000 - 5000 bits each time and each time was ruined by this rigged game super quickly as i sat there in disbelief.  Being a computer programmer for my whole life,  I know a lot of math, and this math isn't adding up.

I then divested all, emptied my app wallet and put any remaining bits I had into one final attempt of about 13000 bits.    (at this point I'm down almost 80k bits in less than an hour only betting 100 - 300 mostly).   If MP would allow you to view your betting history, I could show you the proof, but I did not have logging set up as I trusted that the site would have histories available.   At the time I did not know it was a scam, but it now makes sense that these scumbags would not want you to be able to analyze your data and see how the BS odds they tell you are completely untrue.

So after losing close to 100k bits yesterday, I was talking to another operator and he was like, oh you just hit a run of bad luck.  So I thought, yeah, maybe, I guess, but not really.  I think more than anything I wanted to believe it was just a fluke because I was into this whole thing.   I even told the guy I don't even want to run anymore tests because I'm afraid of what I might find.   

But I did test more today, and like all things that seem like they are awesome,  this is another one of those.   Greedy criminal scumbags preying on people who just want to do a little gambling and have a little fun.  It's a rampant problem online and I'm pretty much fed up with it. 

Today I bought in with more bitcoin to MP.   This time I only did about 10k or so as I'm not going to keep throwing my money in the trash on this site.

I set the multi to 1.24 and began.   I immediately noticed I was getting raped hardcore.  I was only betting 10 bits at a time so as not to break the bank if I needed to 6x on a loss.   And if I somehow got 2 losses in a row, which is highly unlikely,  i would need to wager 36x  and so on.   So it could get pricey real quick.   I decided if I lost two in a row, I would not increase by 6, but just maintain the same 36x wager and hit it over and over as with 80% win rate, I should be able to recoup easily if I lose one or two.   NOT SO! 

Once I realized that wouldn't work when I'm hitting 5 in a row loss, 1 win,  3 in a row loss, 1 win,  2 in a row loss, 1 win.    If the odds of 80% win to 20% loss were correct, my strategy would have worked great.   It might not have made me rich, but it certainly wouldn't drain every last bit i have in a matter of minutes.  Like it did the last time I bought in, and the time before that, and the time before that, and the time before that.   So I really have about 100% certainty that MP is full of SHIT and  SCAM and a bunch of scumbags and criminals.

Other people using this exact strategy on non rigged dice games report great results.   On MP I report the same thing I do with any other strategy on MP on any game on MP =  Raped and screwed over in a scenario that's basically impossible to occur more than once in a lifetime,  and its happening over and over and over and over again in the same day.  Then the next day it happens over and over and over and over again.

If someone wants me to get into all the numbers and probablity and all that I will,  but all the numbskulls say the same thing...   Just a run of bad luck... you hit some rough variance.  BULLSHIT!   This is what people say who don't understand math, or are too lazy to do the calculations.

The whole system runs on numbers.   Numbers don't lie.   When it says my odds of winning are 79.84%,  in a non rigged system,  I can expect to see numbers close to that +/- about 2% margin for variance.    Not the case here.   I am seeing negative margins only, it has never ONCE gotten to the actual % that it's supposed to be paying out at,   and these margins are not 1 or 2 %,  no they are like 60%  ,  70%  THE WRONG WAY.   

To expect me to believe that from the moment I started wagering against MP,  I hit the worst luck streak in the history of the world,   and it continued non-stop for days on end without any letting up, just constant astronomically impossible bad luck,  well then you must think I just fell off the turnip truck yesterday.

It's too bad because I was really into this until I realized it's cheating players.    That won't affect me as an operator, I will still make money, but I have a little something called ethics and morals.  I don't just do whatever it takes to get money even if it means lying and cheating and ripping people off.  Thats what scum bag pieces of shit do, and I am a good person, not a scum bag piece of shit like the operators of MP.

Unfortunately for MP and all of you,  I have the skills, experience, and knowledge to take MP offline for good and hopefully, with any luck (haha get it),  obtain their BTC private keys and rob them blind like they did to me.   I have no qualms about taking back what a criminal stole from me, plus extra for my time that was wasted because of their lying cheating scamming asses.

I will  contact the scum at MP and if they compensate me for my lost wages and pay me my normal hourly rate for all of the hours i wasted on this over the last couple of days, I will just move along. 

However, they probably wont' and I will have to destroy them.  But even if they do pay me off to go away and keep quiet about this,  someone else will eventually come along and figure out the site is a scam and eventually one of those people will have the skills, experience, and knowledge to dispense justice in an appropriate black hat manner.

This is OUR internet.   It's not here for criminals to make a profit from.  I have not spent my entire career making the internet a better place, just to have scumbag criminals running amok on OUR NETWORK.   I do not do what I do day in and day out, and other like me do not do what they do day in and day out, dedicating our entire lives and careers to this thing we call the internet, just so some braindead cocksucker with no technical knowledge at all can set up a scam website and get rich of of deceiving and cheating people.   Sorry, no sir,  MP you had some bad luck when I found your site, because that was the beginning of the end for you.

Let this be a warning to anyone else thinking of getting set up with MP.  Don't do it.  It's criminals and if they are ripping off the players, they will probably end up ripping off the operators at some point too and probably the investors too.  I couldn't help but notice how many disclaimers and notices they have about 'don't expect to get your investment back'.   Read between the lines:  "Because we clean out the profits and keep em for ourselves every once in a while, and snag all the investor money too suckers!"

LET THE WRATH OF l4r3f4c3 COMMENCE AND MAY THE PWNAGE BE MOST UNMERCIFUL AND RUTHLESS!   


Screenshot:

Here is the SS of my last 10 hands of dice at 1.24 multiplier.  This is basically how it went over the course of 500+ rolls. 

http://inceptz.com/img/ss-moneypotisascam.PNG


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on August 24, 2015, 03:05:30 AM
 ::)

https://www.moneypot.com/provably-fair
https://en.wikipedia.org/wiki/SHA-2

Thanks for trying my script, though. Any other feedback?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: blockage on August 24, 2015, 03:59:04 AM
tl;dr

What I imagine you said is: Lost martinfailing yada yada yada butthurt yada yada yada pissed and will make MP look bad yada yada yada...
Jesus guy, did you even try to verify the rolls? Do it or gtfo.

LET THE WRATH OF l4r3f4c3 COMMENCE AND MAY THE PWNAGE BE MOST UNMERCIFUL AND RUTHLESS!   

Are you like 14y old and hang out on HF all day? You might want to grow some pubic hair first then..


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on August 24, 2015, 04:25:39 AM
tl;dr

What I imagine you said is: Lost martinfailing yada yada yada butthurt yada yada yada pissed and will make MP look bad yada yada yada...
Jesus guy, did you even try to verify the rolls? Do it or gtfo.

LET THE WRATH OF l4r3f4c3 COMMENCE AND MAY THE PWNAGE BE MOST UNMERCIFUL AND RUTHLESS!   

Are you like 14y old and hang out on HF all day? You might want to grow some pubic hair first then..

He wasn't martingaling. He was betting at 80% chance (1 in 5 rolls is a loss) he lost more than 1 in 5 so he is claiming shenanigans.
A lot people think that 98% chance can't lose but they forget about that other 2%. Just like 4 out of 5 times you win, doesn't guarantee that you'll actually win 4 out of 5 rolls.
Out of curiosity, what is HF?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RHavar on August 24, 2015, 04:47:18 AM
And this whole proven fair thing is a joke.   So easy to fake its not even funny how stupid people think its air tight.

I'm not aware of a way that the server could undetectable cheat, but if you know of a way, I'd be very interested in hearing. And unless you can convince us there's a problem with the provably fair, the most you're going to do is convince us you got unlucky =)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on August 24, 2015, 12:34:12 PM

So after losing close to 100k bits yesterday, I was talking to another operator and he was like, oh you just hit a run of bad luck.  So I thought, yeah, maybe, I guess, but not really.  I think more than anything I wanted to believe it was just a fluke because I was into this whole thing.   I even told the guy I don't even want to run anymore tests because I'm afraid of what I might find.   


hey my friend. yes it looks like that you talked to me on my app yesterday :)

and yes I said that it is just bad luck because what is a 7 x loss streak in a row in dice or roulette etc.?
...........nothing and I repeat it also here. you just need to learn to lose .....easy as that.

no offense intended but it looks that you might be a good coder but no clue about gambling maths.

good luck wherever you will put your coins


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on August 24, 2015, 12:51:39 PM
After running MiniDice for a while, and being an ex active member in all those sites before, I vouch for
MoneyPot's epic authenticity. Great community too.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: blockage on August 24, 2015, 06:10:33 PM
He wasn't martingaling.
This sounded like a martingale to me:
I set the multi to 1.24 and began.   I immediately noticed I was getting raped hardcore.  I was only betting 10 bits at a time so as not to break the bank if I needed to 6x on a loss.   And if I somehow got 2 losses in a row, which is highly unlikely,  i would need to wager 36x  and so on.

Out of curiosity, what is HF?
HackForums


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on August 24, 2015, 06:35:50 PM
He wasn't martingaling.
This sounded like a martingale to me:
I set the multi to 1.24 and began.   I immediately noticed I was getting raped hardcore.  I was only betting 10 bits at a time so as not to break the bank if I needed to 6x on a loss.   And if I somehow got 2 losses in a row, which is highly unlikely,  i would need to wager 36x  and so on.

Out of curiosity, what is HF?
HackForums

Ahh, by that description you're right, he was doing martingale. I was confused because the screenshot he posted he wasn't doing martingale.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ambitlons on August 25, 2015, 08:43:28 AM
way to long to read..

did you even change your "clientseed & hash" that helps a lot...


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on August 28, 2015, 08:19:44 PM
Thanks for the support, guys.

Update: Added a custom.css file to hold your CSS customizations

One of the most common questions I get via PM is how to customize the look and feel of Untitled Dice.

So I've added a blank `custom.css` file to provide a more obvious place to do so: https://github.com/untitled-dice/untitled-dice.github.io/commit/55b7919ff0e3d909308be53f61e2d6c014fd846d

You'll need to learn a little bit of CSS to make meaningful changes to the theme, but it's a necessary skill for anyone that wants to dabble in web projects like this. Lots of good resources out there like https://developer.mozilla.org/en-US/docs/Web/CSS.

The reason I recommend isolating your customizations to a single `custom.css` file is so that it's much easier for you to merge in changes as I update Untitled Dice.

How to use a theme from https://bootswatch.com/

Also, I should point out that Untitled Dice is built with the popular Bootstrap v3 CSS framework and there are many free themes to be found for it online. For example, check out https://bootswatch.com/.

If you find a Bootstrap v3 theme that you like on bootswatch.com, you just need to make some simple modifications to Untitled Dice's `index.html` file.

For example, if you like the Darkly theme (demo: https://bootswatch.com/darkly/), click its Download button to get the URL to its CSS file (https://bootswatch.com/darkly/bootstrap.min.css) which you'll need to tell your Untitled Dice script to use.

To apply the Darkly theme to Untitled Dice, edit `index.html` from this:

Code:
<head>
  <title>Untitled Dice</title>
  <link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="node_modules/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet">
  <link href="style.css" rel="stylesheet">
  <link href="custom.css" rel="stylesheet">
</head>

to this:

Code:
<head>
  <title>Untitled Dice</title>
  <link href="https://bootswatch.com/darkly/bootstrap.min.css" rel="stylesheet">    <-- the URL you got from Darkly's Download button
  <link href="style.css" rel="stylesheet">
  <link href="custom.css" rel="stylesheet">
</head>

Now your site will look like this:

https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/y149cch0.png

Though you'll likely want to make additional tweaks which is what the `custom.css` file is for.



As usual, drop me a PM if you have any questions or need any help.

I also lurk on MoneyPot's Slack (http://slack.moneypot.com/). My username on there is `dan` just like here. :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on August 29, 2015, 12:30:40 AM
Thanks for the support, guys.

Update: Added a custom.css file to hold your CSS customizations

One of the most common questions I get via PM is how to customize the look and feel of Untitled Dice.

So I've added a blank `custom.css` file to provide a more obvious place to do so: https://github.com/untitled-dice/untitled-dice.github.io/commit/55b7919ff0e3d909308be53f61e2d6c014fd846d

You'll need to learn a little bit of CSS to make meaningful changes to the theme, but it's a necessary skill for anyone that wants to dabble in web projects like this. Lots of good resources out there like https://developer.mozilla.org/en-US/docs/Web/CSS.

The reason I recommend isolating your customizations to a single `custom.css` file is so that it's much easier for you to merge in changes as I update Untitled Dice.

How to use a theme from https://bootswatch.com/

Also, I should point out that Untitled Dice is built with the popular Bootstrap v3 CSS framework and there are many free themes to be found for it online. For example, check out https://bootswatch.com/.

If you find a Bootstrap v3 theme that you like on bootswatch.com, you just need to make some simple modifications to Untitled Dice's `index.html` file.

For example, if you like the Darkly theme (demo: https://bootswatch.com/darkly/), click its Download button to get the URL to its CSS file (https://bootswatch.com/darkly/bootstrap.min.css) which you'll need to tell your Untitled Dice script to use.

To apply the Darkly theme to Untitled Dice, edit `index.html` from this:

Code:
<head>
  <title>Untitled Dice</title>
  <link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="node_modules/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet">
  <link href="style.css" rel="stylesheet">
  <link href="custom.css" rel="stylesheet">
</head>

to this:

Code:
<head>
  <title>Untitled Dice</title>
  <link href="https://bootswatch.com/darkly/bootstrap.min.css" rel="stylesheet">    <-- the URL you got from Darkly's Download button
  <link href="style.css" rel="stylesheet">
  <link href="custom.css" rel="stylesheet">
</head>

Now your site will look like this:

https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/y149cch0.png

Though you'll likely want to make additional tweaks which is what the `custom.css` file is for.



As usual, drop me a PM if you have any questions or need any help.

I also lurk on MoneyPot's Slack (http://slack.moneypot.com/). My username on there is `dan` just like here. :)

Whoa Awesome addition! Previously it was not very straight forward on how to customize the style, but you could figure it out with a little playing around. This makes it a lot easier, and the ability to add bootstrap themes just takes it to another level. Keep it up!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: HostFat on September 18, 2015, 02:34:29 AM
Will you add the possibility to bet "zero" ?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on September 18, 2015, 05:55:52 AM
Will you add the possibility to bet "zero" ?

would you mind to explain to a dice noob why to add zero? thx


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ArpFlush on September 22, 2015, 02:37:24 PM
Can anyone tell me what specific URL I have to put in "Redirect urls" in the Moneypot New App page? Only your website url or include the /oauth_callback

Thanks!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on September 22, 2015, 02:38:50 PM
Can anyone tell me what specific URL I have to put in "Redirect urls" in the Moneypot New App page? Only your website url or include the /oauth_callback

Thanks!

You just need your website URL using this script. Good luck

Regards
Jm Erestain


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JeWay on September 22, 2015, 03:14:27 PM
Thx a lot for the script, I finally can play my own dice game for practicing :D


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ArpFlush on September 22, 2015, 06:11:33 PM
You just need your website URL using this script. Good luck

Regards
Jm Erestain

Thanks!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: disamsal on September 25, 2015, 11:10:34 AM
this is great and i have 3 free domains  8)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: jmsanto123 on October 01, 2015, 06:38:51 AM
Hi,

I installed the script in https://www.binarydice.tk . But i can't connect with moneypot.

I got the following error.

The app that directed you here did not supply a valid request.

    Reason: redirect_uri does not match any of the URIs configured by the app operator

Until the operator of the app complies with the MoneyPot API, you cannot authorize this app.

when will the moneypot verify my domain?

thankyou

Anto


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on October 01, 2015, 12:58:01 PM
Hi,

I installed the script in https://www.binarydice.tk . But i can't connect with moneypot.

I got the following error.

The app that directed you here did not supply a valid request.

    Reason: redirect_uri does not match any of the URIs configured by the app operator

Until the operator of the app complies with the MoneyPot API, you cannot authorize this app.

when will the moneypot verify my domain?

thankyou

Anto

You have to make your redirect uri point to the same place where you installed your untitled dice :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ALXBOB on October 14, 2015, 10:43:18 AM
Can i use the api for non betting provably fair results?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ADcoin.me on October 14, 2015, 05:49:44 PM
Sweet script, I will try it out soon :) Can we make users register on our own (MySQL) database? Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)? As we share profits, I think they should allow that ;)

Basically, it's an affiliate program, right?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ADcoin.me on October 14, 2015, 05:53:07 PM
Will you add the possibility to bet "zero" ?

would you mind to explain to a dice noob why to add zero? thx

Very simple :) Then you could bet all the time, just for fun purposes. Now you need to wait 5 minutes for 2 bits, which lets you bet 'just for fun' for a limited time, unless you're damn lucky ofcourse :P


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on October 15, 2015, 02:37:42 PM
Sweet script, I will try it out soon :) Can we make users register on our own (MySQL) database? Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)? As we share profits, I think they should allow that ;)

Basically, it's an affiliate program, right?


if user will not know that it is moneypot related IMO they will ask for proof  of your bank roll. how will you explain
this to users?

anyway interesting view


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: ADcoin.me on October 15, 2015, 09:11:23 PM
Well, it is already possible to use your own bankroll, but if you want to use theirs (less profit for you though) why wouldn't it be possible to advertise with theirs as if it is yours. There is no harm right? It'll still be 100% solid.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: smeagol on October 24, 2015, 02:22:17 AM
Just wanted to say thank you for this script.  In addition to making me a few bits, it's inspired me to learn React, too.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Misiak4 on October 26, 2015, 02:29:06 AM
Nice share OP! I thought long time ago about starting my own dice game but I was worried about bankroll  ;D

Now using someones other bankroll even your server-less implementation is easy setup! Going to test it soon.

Thank you.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on October 27, 2015, 08:30:46 PM
Sweet script, I will try it out soon :) Can we make users register on our own (MySQL) database? Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)? As we share profits, I think they should allow that ;)

Basically, it's an affiliate program, right?


> Can we make users register on our own (MySQL) database?

The MoneyPot login integration is pretty much standard OAuth: you redirect the user to MoneyPot, and MoneyPot redirects the user back to you with an `access_token`. You can then query MoneyPot's API (https://www.moneypot.com/api-docs#v1-public-get-token-info) to get that user's underlying `auth_id` (you can think of it as a unique user ID) and save it in your database for that user so you that can link users to their MoneyPot account in your system.

So, yes, you can have your own authentication/user system and save the aforementioned MoneyPot `auth_id` in your users table. Now a user should be able to "Login with MoneyPot" or enter their username/password on your site to log into their account.

> Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)?

Yes, you can do this and hide the fact that your site uses MoneyPot all together, but it would require a lot of custom programming.

Basically, you would have to run the casino on your own server (unlike Untitled-Dice which runs on the client aka browser). Users deposit Bitcoin into your own system, and you re-deposit it into your own MoneyPot account. When a user bets on your casino, you basically make the bet through your own MoneyPot account and then use the outcome response to update the user's balance in your own system.

Obviously, any features you don't use MoneyPot for are features you're going to build yourself, but the above scheme illustrates how you can use MoneyPot solely for its bankroll and its betting API if that's what you want to do.

> Basically, it's an affiliate program, right?

Yeah, you can think of the MoneyPot bet API as a system that simply rewards you for sending it bets that its investors are willing to take.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: KnightTrader on October 29, 2015, 06:43:37 PM
Thanks for great free script :)

Does anyone know what is minimum house edge what can be used without changing calculating formula?

I tried 0.02%, but ended up players reporting that it rounds to neutral EV at some multipliers resulting moneypot to reject bet.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: uwichii on October 30, 2015, 05:30:00 AM
Added an FAQ section to the first post that answers this question.

I will soon update the script so that it makes it more clear *why* the Faucet is failing.

Let me know if you still have trouble after setting up ReCaptcha, joclixal.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on November 01, 2015, 08:58:43 AM
Thanks for great free script :)

Does anyone know what is minimum house edge what can be used without changing calculating formula?

I tried 0.02%, but ended up players reporting that it rounds to neutral EV at some multipliers resulting moneypot to reject bet.

MoneyPot aka its investors accept bets according to the kelly criterion, so by minimizing the house edge (minimizing the investors' odds) you're minimizing the amount of the bankroll that the investors are willing to stake. Obviously, with every bet, the investors are staking wager*multiplier while the player is staking only the wager.

In other words, if you minimize the house edge, then you're guaranteeing that nobody will ever be able to make bets with large wagers or high multipliers because you're directly limiting the max profit per bet.

So the "minimum house edge" is the one that lets your players make the bets that they want to make. This includes whales and, for example, players that don't want their bet to be rejected when they're trying to double their wager on their 5th consecutive martingale loss.

I hope that illuminates why there's no real answer to your question. Players want a low house edge, but they also need a house edge high enough to attract a counterparty to their bets (the investors).

You can get an idea of how house edge impacts max profit by playing with the "Payout Editor" I made on plinkopot.com.

https://i.imgur.com/hSUoibY.png


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: KnightTrader on November 01, 2015, 03:18:49 PM
Thank you for well detailed answer!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Sir_lagsalot on November 19, 2015, 07:10:12 AM
I'm currently having a little trouble with moneypot. I've set up the dice site, but after you log in, everything stays at loading.

Screenshot: http://imgur.com/rjxkDXg (http://imgur.com/rjxkDXg)


You can see it here: http://www.dice.fastcoins.cf (http://www.dice.fastcoins.cf)

Has anyone had this problem, and know a fix? Or have I done something wrong? I've even tried deleting all the files on my ftp server, reuploading and reconfiguring, but to no avail.


EDIT - I've fixed this problem already!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Sir_lagsalot on November 20, 2015, 12:09:26 PM
Hey guys, i'm looking to enhance my dice site. It is based on your API. I want to add a loyalty program, but I'm unsure of how to do this.

What I want: A loyalty program that measures how many consecutive days you wager x+ bits, and stores that info. Depending on how many consecutive days, the house edge reduces. Maybe on your first ever day with the site, there is a 1.5% house edge, but after that the base edge is 5%. And each y consecutive days that gamble for, the house edge decreases by z. Is this possible, or would I have to contact moneypot and get them to push this into an update, or get them to help me personally?

If anyone can help me do this, PM me and I am willing to pay them.


P.S. Can you guys update the script so it automatically refreshes the balance every time you claim from the faucet?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: doV on November 25, 2015, 06:38:00 PM
Is there a way or tool to edit the HTML code easier?

Something like this:

Code:
<div class="panel panel-default">
</div>

Rather than this:

Code:
var ChatUserList = React.createClass({
  displayName: 'ChatUserList',
  render: function() {
    return (
      el.div(
        {className: 'panel panel-default'},
        el.div(
          {className: 'panel-heading'},
          'UserList'
        ),
        el.div(
          {className: 'panel-body'},
          el.ul(
            {},
            _.values(chatStore.state.userList).map(function(u) {
              return el.li(
                {
                  key: u.uname
                },
                helpers.roleToLabelElement(u.role),
                ' ' + u.uname
              );
            })
          )
        )
      )
    );
  }
});


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on November 25, 2015, 08:33:45 PM
Is there a way or tool to edit the HTML code easier?

Something like this:

Code:
<div class="panel panel-default">
</div>

Rather than this:

Code:
var ChatUserList = React.createClass({
  displayName: 'ChatUserList',
  render: function() {
    return (
      el.div(
        {className: 'panel panel-default'},
        el.div(
          {className: 'panel-heading'},
          'UserList'
        ),
        el.div(
          {className: 'panel-body'},
          el.ul(
            {},
            _.values(chatStore.state.userList).map(function(u) {
              return el.li(
                {
                  key: u.uname
                },
                helpers.roleToLabelElement(u.role),
                ' ' + u.uname
              );
            })
          )
        )
      )
    );
  }
});

The code is in React, so it might be better if you learned
that before delving into this project.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: freedoge.co on December 08, 2015, 09:15:42 PM
any possibility to add auto betting (robot)?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Straux on December 09, 2015, 12:03:07 AM
good work. Is it possible to use just the API? I don't really like the UI... is there somewhere I can d find the whole list of api commands?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: elm on December 09, 2015, 06:40:14 AM
good work. Is it possible to use just the API? I don't really like the UI... is there somewhere I can d find the whole list of api commands?

you should find the API at moneypot.com


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: marbleregional on December 09, 2015, 06:56:52 AM
What does this mean when trying to log in with moneypot?

The app that directed you here did not supply a valid request.
Reason: redirect_uri does not match any of the URIs configured by the app operator
Until the operator of the app complies with the MoneyPot API, you cannot authorize this app.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: wdnj on January 06, 2016, 12:31:17 PM
Installed the script and setup config after I read OP post guide but at moneypot site Domain Not Verified  
BTW OAuth Response Type: is token.where's the error?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dk8218 on January 06, 2016, 01:40:16 PM
Looks pretty confusing...
Because..
As you said no server needed...
And no investment..
Then it will be only a game...
Or it will pay also.. ??
I mean to say by this can we get btc in our wallet or it will be only for game..not more than that..


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on January 06, 2016, 01:46:29 PM
Looks pretty confusing...
Because..
As you said no server needed...
And no investment..
Then it will be only a game...
Or it will pay also.. ??
I mean to say by this can we get btc in our wallet or it will be only for game..not more than that..

just go to moneypoit.com and read a bit. we have 3 moneypot game apps as you can see in my signature.
you are doing a dice app with moneypot API and moneypot will take care of bank roll and provably fair. you need client side only. actually very easy but the question is if another dice site is worth your time and work. but if it is only for you to play a bit thats perfect


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Maru2 on January 22, 2016, 01:40:52 AM
Is this still active? Just entered Moneypot and saw an Ad informing that is under new administration...

https://i.imgur.com/bf3996q.png
Also, didn't find a reply to this one:
just to be sure that I understood you right. lets say I will have 1k users so they all need to register with moneypot instead with my website?
thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on January 22, 2016, 07:19:29 AM
Is this still active? Just entered Moneypot and saw an Ad informing that is under new administration...

https://i.imgur.com/bf3996q.png
Also, didn't find a reply to this one:
just to be sure that I understood you right. lets say I will have 1k users so they all need to register with moneypot instead with my website?
thanks

what do you mean with "is this still active?"


yes you are right all your users will need to register with moneypot to play on your game app.
but it is actually very easy to register with moneypot because user does not need an email just user name and password.

good luck


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Maru2 on January 22, 2016, 01:23:48 PM

yes you are right all your users will need to register with moneypot to play on your game app.
but it is actually very easy to register with moneypot because user does not need an email just user name and password.

good luck
Great, I was testing some stuffs and noticed some things that could be improved...
-It is okay to send suggestions? If yes, I just can send by the 'Support' area?
-I was looking for the text files(probably in html or php?) Or its not released?
 Found some text in app.js trough :)



Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on January 22, 2016, 01:28:58 PM

yes you are right all your users will need to register with moneypot to play on your game app.
but it is actually very easy to register with moneypot because user does not need an email just user name and password.

good luck
Great, I was testing some stuffs and noticed some things that could be improved...
-It is okay to send suggestions? If yes, I just can send by the 'Support' area?
-I was looking for the text files(probably in html or php?) Or its not released?

a lot of things need to be improved :) but they know that and working on it though a bit slow

I am not sure that the support page is working because not long ago users complained that it does not work. I would propose that you contact @ranlo or @dogedigital so they can invite you to the slack group where the app owners and devs have their meeting point.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: jmintuck02 on January 23, 2016, 06:08:37 AM
WOAH! My wet dream. Wanted to run a dice site, but usually the script cost a lot and I had to supply the bankroll. Both sucked dik. Now you provide a real

solution.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Erkallys on January 23, 2016, 08:28:49 PM
WOAH! My wet dream. Wanted to run a dice site, but usually the script cost a lot and I had to supply the bankroll. Both sucked dik. Now you provide a real

solution.

I wouldn't be as happy as you are. This is just a rebrand of Moneypot.com. Maybe you won't make any profit too.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on January 23, 2016, 08:34:18 PM
WOAH! My wet dream. Wanted to run a dice site, but usually the script cost a lot and I had to supply the bankroll. Both sucked dik. Now you provide a real

solution.

I wouldn't be as happy as you are. This is just a rebrand of Moneypot.com. Maybe you won't make any profit too.

would you mind to explain why he won't make any profit? and why it is moneypot.com related

thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Erkallys on January 23, 2016, 10:08:37 PM
WOAH! My wet dream. Wanted to run a dice site, but usually the script cost a lot and I had to supply the bankroll. Both sucked dik. Now you provide a real

solution.

I wouldn't be as happy as you are. This is just a rebrand of Moneypot.com. Maybe you won't make any profit too.

would you mind to explain why he won't make any profit? and why it is moneypot.com related

thanks

That's what's written in the OP. It written that it is based on Moneypot.com API and thus the accounts and everything is handled by Moneypot.com. Having this said, since Moneypot.com is the only one that have the money in hands and that this is just a graphic rebranding, I don't how he could make profit.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Emerge on January 24, 2016, 04:05:28 AM
WOAH! My wet dream. Wanted to run a dice site, but usually the script cost a lot and I had to supply the bankroll. Both sucked dik. Now you provide a real

solution.

I wouldn't be as happy as you are. This is just a rebrand of Moneypot.com. Maybe you won't make any profit too.

would you mind to explain why he won't make any profit? and why it is moneypot.com related

thanks

That's what's written in the OP. It written that it is based on Moneypot.com API and thus the accounts and everything is handled by Moneypot.com. Having this said, since Moneypot.com is the only one that have the money in hands and that this is just a graphic rebranding, I don't how he could make profit.

The point of using Moneypot API is so that they could somehow enhance gaming experience. It wouldn't have to be a new type of game, even just a good community, design and marketing. As long as they get a lot of people to play then they will earn from the house edge.

It's hard but it does work mind you.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: BTCBinary on January 24, 2016, 07:02:07 PM
I would much like 2 use this free scypt. unfortunatelly I don't any coding skills... do you think I can get it to work with having any coding knowledge?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on January 24, 2016, 07:07:44 PM
I would much like 2 use this free scypt. unfortunatelly I don't any coding skills... do you think I can get it to work with having any coding knowledge?

if you really want to have it just PM the new moneypot owner and they will help you. ask them to invite you to the moneypot slack group. there are nice and very helpful devs


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Tavos on January 24, 2016, 07:19:48 PM
Thanks for the script! I was always wanting in trying to create a gambling site. Will try it later.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: iGotYourPistola on January 25, 2016, 03:56:52 AM
how much could you earn with this??


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: TriggerX on January 26, 2016, 03:24:06 AM
how much could you earn with this??

I tried it and it works. It's not really if how much you can earn but basically how can you draw more people towards your site. What makes your site better than others like Primedice? or Rollin.io?

My website was up and functioning but advertising and creating a unique dice website requires strenuous effort and determination.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: davien on January 26, 2016, 05:45:21 PM
Is this project until developement? in the last few months were some updates released?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: davien on February 12, 2016, 04:06:56 PM
Does this still works? Did this started to not working after the moneypot changed hands? I am trying to build one untitled dice but it is not working , I am keep getting 404 page not found when I do everything right.

 edit : Ok sorry , it is working now.
What was the problem?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: davien on February 12, 2016, 04:17:03 PM

 I wanted to put the git name as 'clickdice' but to it was giving 404 , I learnt I need to make it my username.github.io , it worked.

 Now all I need to do is find a good dice site name and get a github account with that name.

oh i understand. once you're done can you give us a link ?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: davien on February 12, 2016, 04:24:16 PM


 Sure ; https://aggressivemousestudios.github.io/
Thanks. BTW good job making it :D


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: DarkStar_ on February 12, 2016, 04:42:42 PM
ahahah , now I need to find a good dice site name.
Yeah, it's hard finding a good name. You could try using DNS with freenom.

Anyone know if it is possible to make the house edge <0.1%? I tried 0.01% which probably rounds to 0, making the edge 1%.
Currently, from my testing, 0.1% is the lowest I could get it to go.
My "site": darkstarftw.github.io (http://darkstarftw.github.io)

Mostly made it for my self to gamble on, so I can control the edge and get a bit extra from the app commissions.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: davien on February 13, 2016, 07:19:54 AM
I see that the UI it's the same at both of you. Is that maybe costumizable?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on February 13, 2016, 07:47:52 AM
I see that the UI it's the same at both of you. Is that maybe costumizable?

yes background is customizable


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: iKaizen on March 13, 2016, 07:00:06 PM
Wow very cool. I'll give a shot to this.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dan on March 28, 2016, 09:39:57 PM
Is this project until developement? in the last few months were some updates released?

I'm currently taking a break from Bitcoin things in general, so there haven't been any updates.

From what I understand, Moneypot's new owners haven't made breaking changes to the API so the script should still work.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JohnBitCo on March 29, 2016, 09:26:57 AM
Can we play this without investing the real money ?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Holdaaja on March 29, 2016, 01:07:56 PM
Can we play this without investing the real money ?

Yes, after you register and login you can claim few satoshis from the faucet and play with them.
And if you didn't mean playing but running your own casino answer is still yes, all money is handled by moneypot.com


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on March 29, 2016, 01:12:37 PM
Can we play this without investing the real money ?

Yes, after you register and login you can claim few satoshis from the faucet and play with them.
And if you didn't mean playing but running your own casino answer is still yes, all money is handled by moneypot.com

just for info but be aware that soon this script will not work with moneypot API and will need some changes


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Palinanv on April 03, 2016, 10:45:40 PM
My only concern here is that gambling addicitions may be enhanced with these businesses. I do like them here and there but to constantly keep creating more and more of these gambling websites just may not be the best possible choice. I'm not trying to insult your idea. You can go along with it. I'm just saying that it worries me.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: TnxBT on May 03, 2016, 04:16:55 PM
When i press login with money pot it redirects to the original untitled-dice github io ?

Anyone help me?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: PinkLlama on May 03, 2016, 05:53:13 PM
This is very awesome. It is perhaps a step towards Bitcoin being used more on gambling sites. Great work. Will use this.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: HeroCat on May 06, 2016, 02:52:22 PM
Anyone can built the dice site, but the question is first investment in the site  - let say 20 BTC - 40 BTC. Not all people can invest just up to 40 BTC or even more.  ;)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: PinkLlama on May 07, 2016, 12:27:23 PM
Anyone can built the dice site, but the question is first investment in the site  - let say 20 BTC - 40 BTC. Not all people can invest just up to 40 BTC or even more.  ;)

You don't have to invest anything as Moneypot takes care of that for you.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on May 07, 2016, 12:37:32 PM
Anyone can built the dice site, but the question is first investment in the site  - let say 20 BTC - 40 BTC. Not all people can invest just up to 40 BTC or even more.  ;)

You don't have to invest anything as Moneypot takes care of that for you.

yes moneypot will take care but please be aware that the v2 of MP will not support this dice script


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Kiefner on May 25, 2016, 10:33:36 AM
just created my own :D
https://kiefner.github.io/
Are there any updates like AutoPlay for free or for a few mBTC ?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: 155UE on May 26, 2016, 12:52:35 PM
need help here, im almost done creating my lovely dice site (LOL) but when i click log in with moneypot and enable the app im getting an error "not found" instead of redirecting to my site's link and being logged in. anyone can help me?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: macmac22 on May 29, 2016, 10:52:40 AM

can you explain what you mean in Fork this project what i need to do with that?? i want to run it on github so answer please


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Cum2fast on May 29, 2016, 11:22:40 PM
is there anyways to remove anything related to bitcoins here im trying to make a token type dicing which requires no real life money a just for fun site with the admin being able to give users token


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: 155UE on May 30, 2016, 02:04:01 AM
Anyone here can help me add autobet feature on my untitled dice site? I wanna do a test run if it will be cool to run my own dice with atleast autobet feature added for now


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: BitMaxz on June 03, 2016, 05:01:16 AM
Who tried this script? i would like to ask if you can modify it and change it instead of moneypot i will my own server via json_rpc?
i would like to try this script in other crypto currency.. Do you think guys it will work with this script..


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: bapparabi on June 06, 2016, 02:57:52 AM
do you guys know why i am getting this error

" WAITING_FOR_SERVER " after recaptcha done in faucet to claim


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Frosxh on June 13, 2016, 01:50:08 AM
do you guys know why i am getting this error

" WAITING_FOR_SERVER " after recaptcha done in faucet to claim

try to recopy and paste the recaptcha secret again to your moneypot's app settings.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: bapparabi on July 02, 2016, 05:11:56 PM
i can see it mention that


 Implement auto-better
- Implement an "All Bets" tab

need to be done in new update ..but as i cans ee it been one year no update is done ..can you guys tell if this gogin to be updated in the scrip or nay future plan as op is not active i can see


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: BBHex on July 03, 2016, 03:18:19 AM
i can see it mention that


 Implement auto-better
- Implement an "All Bets" tab

need to be done in new update ..but as i cans ee it been one year no update is done ..can you guys tell if this gogin to be updated in the scrip or nay future plan as op is not active i can see

the OP isn't active anymore i think but hopefully he will come back again and help us here

I'm currently taking a break from Bitcoin things in general, so there haven't been any updates.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: bapparabi on July 03, 2016, 03:19:52 AM
i can see it mention that


 Implement auto-better
- Implement an "All Bets" tab

need to be done in new update ..but as i cans ee it been one year no update is done ..can you guys tell if this gogin to be updated in the scrip or nay future plan as op is not active i can see

the OP isn't active anymore i think but hopefully he will come back again and help us here

I'm currently taking a break from Bitcoin things in general, so there haven't been any updates.

Bad luck for us as we expecting some update int his script hoping to done soon by any other user


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: matus617 on July 10, 2016, 12:03:02 PM
hello i fork that project and change the link but i see only this :
404
There isn't a GitHub Pages site here.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Newcoins2020 on July 10, 2016, 09:49:01 PM
hello i fork that project and change the link but i see only this :
404
There isn't a GitHub Pages site here.

That's odd, i was able to fork it some time ago.
If you got issues with the SSH, then download the zip and upload it to your demo sever:
http://imgur.com/KjINez6

There is an option clone or download, click on that and download it.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: matus617 on July 11, 2016, 07:28:12 AM
Hello so i upload that files into my website but i dont have SSL (https) i have only http: and if i want go to my website i get 404 error and i am on https link not http , how i can fix that ?
I dont want  redirect to https
I found this line of code so what i must do ?
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally(),


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on July 11, 2016, 09:05:11 PM
we need some urgent help with the script. we have it running but have the problem that the all bets tab history disappears after refresh and that the client seed is always zero and does not change

please PM us if you can help

thx


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: owlcatz on July 13, 2016, 01:53:16 PM
Hello so i upload that files into my website but i dont have SSL (https) i have only http: and if i want go to my website i get 404 error and i am on https link not http , how i can fix that ?
I dont want  redirect to https
I found this line of code so what i must do ?
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally(),

Dude, why are you PM'ing me to help you fix a piece of javascript that a 12 year old can fix? OMG, that's so sad, I'm not even going to help you, sorry... ::)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Sarthak on July 13, 2016, 02:13:24 PM
Hello so i upload that files into my website but i dont have SSL (https) i have only http: and if i want go to my website i get 404 error and i am on https link not http , how i can fix that ?
I dont want  redirect to https
I found this line of code so what i must do ?
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally(),

Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: true,

I think this is what you are looking for. But seriously, don't run a dice site if you don't know how to modify a line of code when the instructions are pretty clear :P


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: owlcatz on July 13, 2016, 02:42:18 PM
Hello so i upload that files into my website but i dont have SSL (https) i have only http: and if i want go to my website i get 404 error and i am on https link not http , how i can fix that ?
I dont want  redirect to https
I found this line of code so what i must do ?
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally(),

Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  [b]force_https_redirect: true,[/b]

I think this is what you are looking for. But seriously, don't run a dice site if you don't know how to modify a line of code when the instructions are pretty clear :P


Actually, he is trying not to force https, so he would want false there not true.

Anyhow, yes, if you cannot even read and understand simple JS, don't even try running a site, especially one that one that deals with money/bitcoin.... ::)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on July 13, 2016, 02:59:40 PM
Hello so i upload that files into my website but i dont have SSL (https) i have only http: and if i want go to my website i get 404 error and i am on https link not http , how i can fix that ?
I dont want  redirect to https
I found this line of code so what i must do ?
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally(),

Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  [b]force_https_redirect: true,[/b]

I think this is what you are looking for. But seriously, don't run a dice site if you don't know how to modify a line of code when the instructions are pretty clear :P


Actually, he is trying not to force https, so he would want false there not true.

Anyhow, yes, if you cannot even read and understand simple JS, don't even try running a site, especially one that one that deals with money/bitcoin.... ::)

sorry but I disagree. we are 2 partners and have no clue about coding. but we run a moneypot site for a year and had a few coders working for us. now we are again without a coder and we got stuck with a dice game and need to go for the untitled dice for the meantime. and to be frank we can not handle it like all the 12 year old children can do and need help and we pay for it

but does it mean we should not run a casino business because we can't code?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: owlcatz on July 13, 2016, 03:06:15 PM
sorry but I disagree. we are 2 partners and have no clue about coding. but we run a moneypot site for a year and had a few coders working for us. now we are again without a coder and we got stuck with a dice game and need to go for the untitled dice for the meantime. and to be frank we can not handle it like all the 12 year old children can do and need help and we pay for it

but does it mean we should not run a casino business because we can't code?

Really? How do you trust the coders you have paid / will pay will not put in backdoors to later steal people's coins? How can you even audit the code they write? You certainly sound like really brave guys to me, please let me know of the name of your new site so that I don't ever play on it and lose my money. ::)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Sarthak on July 13, 2016, 03:10:56 PM
Anyhow, yes, if you cannot even read and understand simple JS, don't even try running a site, especially one that one that deals with money/bitcoin.... ::)
For some reason, I just read the code and just the first line of the instruction, my bad :D



sorry but I disagree. we are 2 partners and have no clue about coding. but we run a moneypot site for a year and had a few coders working for us. now we are again without a coder and we got stuck with a dice game and need to go for the untitled dice for the meantime. and to be frank we can not handle it like all the 12 year old children can do and need help and we pay for it

but does it mean we should not run a casino business because we can't code?

Calm down bro. Learning to audit simple code never hurts IMO.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on July 13, 2016, 03:14:07 PM
sorry but I disagree. we are 2 partners and have no clue about coding. but we run a moneypot site for a year and had a few coders working for us. now we are again without a coder and we got stuck with a dice game and need to go for the untitled dice for the meantime. and to be frank we can not handle it like all the 12 year old children can do and need help and we pay for it

but does it mean we should not run a casino business because we can't code?

Really? How do you trust the coders you have paid / will pay will not put in backdoors to later steal people's coins? How can you even audit the code they write? You certainly sound like really brave guys to me, please let me know of the name of your new site so that I don't ever play on it and lose my money. ::)

yes we cant code and the 12 or 16 year old children know how to code but do they know how to handle a casino business? NO

and it is even not legal for them to have a casino or to gamble ( but sadly they do)

Moneypot API is not up yet but hopefully soon and you are very welcome to visit us and play :)

https://www.jackpotracer.com or just click in my signature

good luck


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on July 13, 2016, 03:16:00 PM
Anyhow, yes, if you cannot even read and understand simple JS, don't even try running a site, especially one that one that deals with money/bitcoin.... ::)
For some reason, I just read the code and just the first line of the instruction, my bad :D



sorry but I disagree. we are 2 partners and have no clue about coding. but we run a moneypot site for a year and had a few coders working for us. now we are again without a coder and we got stuck with a dice game and need to go for the untitled dice for the meantime. and to be frank we can not handle it like all the 12 year old children can do and need help and we pay for it

but does it mean we should not run a casino business because we can't code?

Calm down bro. Learning to audit simple code never hurts IMO.

chill lol

in my age you cant learn coding or audit whatever :) but we are willing to pay for good work


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Frosxh on July 14, 2016, 02:27:51 AM
hello i fork that project and change the link but i see only this :
404
There isn't a GitHub Pages site here.

your page will show after few minutes, github pages don't update instantly once you saved the changes you made


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on July 20, 2016, 08:28:04 AM
in case anyone is wiling to help us with the untitled dice script please check here

https://bitcointalk.org/index.php?topic=1558577.msg15644889#msg15644889 (https://bitcointalk.org/index.php?topic=1558577.msg15644889#msg15644889)

thx


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: AcoinL.L.C on July 21, 2016, 02:13:52 PM
in case anyone is wiling to help us with the untitled dice script please check here

https://bitcointalk.org/index.php?topic=1558577.msg15644889#msg15644889 (https://bitcointalk.org/index.php?topic=1558577.msg15644889#msg15644889)

thx

Hey JPR, send me a message and I can refer you to someone.

Cheers


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: farnhamit on July 21, 2016, 06:50:55 PM
Hi Guys need some answers.

I am VERY new to BTC and looking into further ways to expand on the BTC market, I am a web developer and have been for around 11 years now, I just need a basic understanding of how this works.

1. So i would get the sourcecode (Script) set up on my server (any server) and set the API up via moneypot?

2. When someone places a bet and they win/lose where does this currency come from? Is it directly from moneypot or DOES it run through my own wallet?

3. Basicaly just need to know what benefits i would have from running this script other than advertisment on page.

Hope you can help! :) Thank you.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Xanidas on July 22, 2016, 12:52:26 AM
Hi Guys need some answers.

I am VERY new to BTC and looking into further ways to expand on the BTC market, I am a web developer and have been for around 11 years now, I just need a basic understanding of how this works.

1. So i would get the sourcecode (Script) set up on my server (any server) and set the API up via moneypot?

2. When someone places a bet and they win/lose where does this currency come from? Is it directly from moneypot or DOES it run through my own wallet?

3. Basicaly just need to know what benefits i would have from running this script other than advertisment on page.

Hope you can help! :) Thank you.

1. Yes

2. every bet on made on your app, you will earn commission depends on house edge of your app, you will earn 50% of it it you will recieve it directly to your moneypot account

3. benefit is the commission that you can get, all you need to do after you upload the files and run it is advertise your gambling site


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on August 01, 2016, 03:41:50 PM
who can help us with our next task

to change the dice game from 2 decimals after dot to 4 decimals?

please PM us

thx


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Jamyye on August 04, 2016, 08:14:11 PM
I managed to get my website up and running very smoothly. Now looking forward to digging into the code and making some design changes!

Gabber.us - Political News Feed (https://www.gabber.us/news/)


Best,
Jamyye


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: paying_mlm on August 16, 2016, 10:58:22 AM
I just installed this on my webserver in a sub-folder in document root.

https://xchangeanything.com/xdice

When I access this app, immediately location/address bar changes to my main domain.  What am I missing?  I like to keep full URL in location/address bar.

app.js:
Code:
var config = {
  app_id: ***,
  app_name: 'XchangeAnything DICE',
  recaptcha_sitekey: '*************',
  redirect_uri: 'https://xchangeanything.com/xdice/',
  mp_browser_uri: 'https://www.moneypot.com',
  mp_api_uri: 'https://api.moneypot.com',
  chat_uri: '//socket.moneypot.com',
  debug: isRunningLocally(),
  force_https_redirect: true,

Any help is greatly appreciated.

thanks



Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on August 16, 2016, 11:29:47 AM
I just installed this on my webserver in a sub-folder in document root.

https://xchangeanything.com/xdice

When I access this app, immediately location/address bar changes to my main domain.  What am I missing?  I like to keep full URL in location/address bar.

app.js:
Code:
var config = {
  app_id: ***,
  app_name: 'XchangeAnything DICE',
  recaptcha_sitekey: '*************',
  redirect_uri: 'https://xchangeanything.com/xdice/',
  mp_browser_uri: 'https://www.moneypot.com',
  mp_api_uri: 'https://api.moneypot.com',
  chat_uri: '//socket.moneypot.com',
  debug: isRunningLocally(),
  force_https_redirect: true,

Any help is greatly appreciated.

thanks



hi

you wrote somewhere you are communicating with MP owners. why don't you ask them to invite you into their slack channel? there you can get help imo


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: paying_mlm on August 16, 2016, 06:12:01 PM
I just installed this on my webserver in a sub-folder in document root.

https://xchangeanything.com/xdice

When I access this app, immediately location/address bar changes to my main domain.  What am I missing?  I like to keep full URL in location/address bar.

app.js:
Code:
var config = {
  app_id: ***,
  app_name: 'XchangeAnything DICE',
  recaptcha_sitekey: '*************',
  redirect_uri: 'https://xchangeanything.com/xdice/',
  mp_browser_uri: 'https://www.moneypot.com',
  mp_api_uri: 'https://api.moneypot.com',
  chat_uri: '//socket.moneypot.com',
  debug: isRunningLocally(),
  force_https_redirect: true,

Any help is greatly appreciated.

thanks



hi

you wrote somewhere you are communicating with MP owners. why don't you ask them to invite you into their slack channel? there you can get help imo

Thank you JackpotRacer!!  I have no idea what is MP's slack channel.  MP owner/support has communicated  that they are unable to help in any coding related queries.   But, asking for invitation to slack channel will not hurt/harm in anyway..  so I will send their support email address a formal request for invitation.

I believe my current question/challenge is not related to MP API.  I think it is part of this dice script and hence I posted it here.  I am waiting for Dan, if he has any suggestion..

thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on August 16, 2016, 06:18:10 PM
I just installed this on my webserver in a sub-folder in document root.

https://xchangeanything.com/xdice

When I access this app, immediately location/address bar changes to my main domain.  What am I missing?  I like to keep full URL in location/address bar.

app.js:
Code:
var config = {
  app_id: ***,
  app_name: 'XchangeAnything DICE',
  recaptcha_sitekey: '*************',
  redirect_uri: 'https://xchangeanything.com/xdice/',
  mp_browser_uri: 'https://www.moneypot.com',
  mp_api_uri: 'https://api.moneypot.com',
  chat_uri: '//socket.moneypot.com',
  debug: isRunningLocally(),
  force_https_redirect: true,

Any help is greatly appreciated.

thanks



hi

you wrote somewhere you are communicating with MP owners. why don't you ask them to invite you into their slack channel? there you can get help imo

Thank you JackpotRacer!!  I have no idea what is MP's slack channel.  MP owner/support has communicated  that they are unable to help in any coding related queries.   But, asking for invitation to slack channel will not hurt/harm in anyway..  so I will send their support email address a formal request for invitation.

I believe my current question/challenge is not related to MP API.  I think it is part of this dice script and hence I posted it here.  I am waiting for Dan, if he has any suggestion..

thanks

ask Dogedigital for an invitation to their slack channel. there are a few very nice app devs who are willing and trying to help.

regarding Dan I am not sure if he will answer because he took long time ago time out of BTC stuff

if you are an app owner and dev you should join the slack :)

we are non coders but we have also Dan' script running

good luck


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: paying_mlm on August 21, 2016, 11:52:19 AM
I just installed this on my webserver in a sub-folder in document root.

https://xchangeanything.com/xdice

When I access this app, immediately location/address bar changes to my main domain.  What am I missing?  I like to keep full URL in location/address bar.

Any help is greatly appreciated.

thanks



Just in case, if anyone else faces the same issue and is looking for solution, this is how I solved it.

I changed app.js as follow:
app.js:
Code:
var config = {
 ...
 redirect_uri: 'https://xchangeanything.com/xdice/',
 // added variable to keep folder path in location/address bar
 redirect_path: '/xdice/',   
...

also line 382 to 389:   changed line 384 & 388.
Code:
// Scrub fragment params from url.
if (window.history && window.history.replaceState) {
  window.history.replaceState({}, document.title, config.redirect_path);
} else {
  // For browsers that don't support html5 history api, just do it the old
  // fashioned way that leaves a trailing '#' in the url
  window.location.hash = config.redirect_path + '#';
}


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: noictib on August 25, 2016, 04:44:08 AM
Just feeling great by knowing that internet is full of good guys who shared their source code. I m extremely glad to get this in bitcointalk i was researching on this to build my own lottery system so this will make my life super easier..... big salute to you man


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: SparkedDev on August 29, 2016, 11:03:09 AM
Just feeling great by knowing that internet is full of good guys who shared their source code. I m extremely glad to get this in bitcointalk i was researching on this to build my own lottery system so this will make my life super easier..... big salute to you man

Shil account reposting the same thing much


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: paying_mlm on August 31, 2016, 12:20:13 PM
Have modified the script and made it the most flexible dice game.  Check it yourself!!

URL: https://www.moneypot.com/apps/1470-flexi-dice 

OR

https://xchangeanything.com/flexidice/
 

May I request you all to test my new Flexi Dice app? 

It is the most flexible Dice game available on moneypot. You can bet on anyway you can imagine.  House Edge is 1%.  At present, only Admin can change Maximum number of Outcomes.   In next version of the game, you as user will be able to select your own Maximum number of outcomes (i.e. you want to play dice for 00-99 (simple-dice) or 00-100 (dust-dice) or 00-35 or 00-37 (roulette).  You can bet not only over or under but, you can bet for individual numbers, multiple ranges, same wager on all the number or different wager on all the number.  Betting is limited only by your imagination.

BetRolls string can be comma delimited Numbers or range. 
For ex:   "2-5, 8, 20, 30, 35 - 40" 
will bet on Rolls
2,3,4,5,8,20,30,35,36,37,38,39,40   

I hope you got the picture. 

Let me know if you have any query or suggestion for improvement. 

Thank you in advance


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: btcdevil on August 31, 2016, 01:07:12 PM
Wow i was just searching from long time to create a dice site for myself, and now i checked your script and it is very good, I will surely check this script with my site and give you the feedback,

If i need any thing more technical changes can you help me.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: paying_mlm on September 02, 2016, 06:00:28 PM
Wow i was just searching from long time to create a dice site for myself, and now i checked your script and it is very good, I will surely check this script with my site and give you the feedback,

If i need any thing more technical changes can you help me.

Sure!!  Please let me know.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinforlife on September 04, 2016, 09:03:45 AM
Im using this now and i love it, i need to learn how to change things up different games etc, You should do more of these with different games. I just updated my app etc. Ill invite my users see how they like it :-)

https://satoshinet.com/dice


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: kbirds30 on September 27, 2016, 12:29:37 AM
hello dan --

are there any updates past untitled dice v008 you mentioned autobet and vew all tab any updates ?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: paying_mlm on September 28, 2016, 07:20:21 AM
hello dan --

are there any updates past untitled dice v008 you mentioned autobet and vew all tab any updates ?

I think someone told earlier that Dan took long time ago time out of BTC stuff 

So do not expect anything..


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: daddel69 on November 18, 2016, 09:00:30 PM
How can I disable the redirect to https? changing sth in app.js does not work


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RGBKey on November 18, 2016, 09:27:06 PM
Is it possible to create an offline dice service?
What do you mean by offline? As in not a website? You couldn't just run a program on an offline computer and expect the house to know that you won or lost bets.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: hellcat708 on November 19, 2016, 05:41:14 PM
Can anyone help with the installation of a script 1 https://bitcointalk.org/index.php?topic=893973.0  ladies 5$ skype hellcat708


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: mbbtc01 on November 20, 2016, 03:37:38 AM
will there be any more update or is that it how much ca you make by justing hosting the script to running the all think.  What is the best option  thanks


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: RGBKey on November 20, 2016, 07:14:04 AM
will there be any more update or is that it how much ca you make by justing hosting the script to running the all think.  What is the best option  thanks
Well if you looked on the GitHub repo you would see that the last commit was about a year and a half ago, so no, there will probably not be any more updates.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: mehmedchelebi on November 22, 2016, 05:26:21 PM
first of all, thank you!

I opened to https://bettorchain.com (https://bettorchain.com) but i can't find the way, how can turn "Domain not verified" status ?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: soloasi on November 22, 2016, 08:57:02 PM
so, anyone got something interesting to try?  ???

i would like to see anypage created with this script :), other than the one on the post above.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: DicePalace on November 29, 2016, 01:01:12 AM
Hello everyone,
I'm looking to make a small moneypot website while my real website is in construction.
https://dicepalacecasino.github.io here is my website, but it don't load. (blank screen)
I'm looking for help please :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: daddel69 on November 29, 2016, 03:44:28 PM
Why wont my chat load? Everything works except chat.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dmesticg on December 03, 2016, 05:21:13 AM
my site: opdice.com
is working perfectly except for 1 part. The chat. It seems to be stuck on loading forever. I really need this to work, if anyone could help, that would be great


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Edraket31 on December 03, 2016, 06:42:06 AM
my site: opdice.com
is working perfectly except for 1 part. The chat. It seems to be stuck on loading forever. I really need this to work, if anyone could help, that would be great

if you didn't change anything on the script except on the first 10 lines on the app.js it is on moneypot side's problem. try to visit other app if their chat is working


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dmesticg on December 03, 2016, 04:26:16 PM
my site: opdice.com
is working perfectly except for 1 part. The chat. It seems to be stuck on loading forever. I really need this to work, if anyone could help, that would be great

if you didn't change anything on the script except on the first 10 lines on the app.js it is on moneypot side's problem. try to visit other app if their chat is working

I followed a tutorial on youtube. and 0ther sites using his script have the chat working


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on December 03, 2016, 04:37:19 PM
my site: opdice.com
is working perfectly except for 1 part. The chat. It seems to be stuck on loading forever. I really need this to work, if anyone could help, that would be great

if you didn't change anything on the script except on the first 10 lines on the app.js it is on moneypot side's problem. try to visit other app if their chat is working

I followed a tutorial on youtube. and 0ther sites using his script have the chat working


It's moneypot, they're down currently.

Code:
{"error":"INTERNAL_ERROR"}


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: coinableS on December 03, 2016, 06:16:23 PM
It's unable to connect to the websocket, because it's not using https.

Code:
socket.io.js:2919 GET http://socket.moneypot.com/socket.io/?EIO=3&transport=polling&t=1480788720215-8 net::ERR_CONNECTION_REFUSED

Alter your script back to https, and change your host to support https (or just use cloudflare free https cert)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dmesticg on December 04, 2016, 12:58:28 AM
how do you add a second page to this script


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: legus on December 14, 2016, 10:00:01 AM
Friends all hi  ;D

prompt please how to clean a redirect with https on http
my http://bitviptop.ml


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: GetCrypto on January 02, 2017, 01:18:35 AM
Hey guys! Much thanx to the author for the nice script, also gr8 tnx to MoneyPot live chat support who gave me some clues concerning redirects.
Here is my result of couple-hours work around the script: https://rolldice.win/

If by chance anyone wants to join my experiments on this or any other script - pm me  ;)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: playersfun on January 05, 2017, 11:14:59 AM
Hello everyone,
I'm looking to make a small moneypot website while my real website is in construction.
https://dicepalacecasino.github.io here is my website, but it don't load. (blank screen)
I'm looking for help please :)

have the same problem. do you know what is wrong?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: bapparabi on January 05, 2017, 11:17:33 AM
Hello everyone,
I'm looking to make a small moneypot website while my real website is in construction.
https://dicepalacecasino.github.io here is my website, but it don't load. (blank screen)
I'm looking for help please :)

have the same problem. do you know what is wrong?

This script is no more updated for long time ..and as moneypot have change many thing in there site and api so may be it has siisue to changed done by moneypot


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: 808mafia on January 26, 2017, 12:15:08 AM
Hello everyone,
I'm looking to make a small moneypot website while my real website is in construction.
https://dicepalacecasino.github.io here is my website, but it don't load. (blank screen)
I'm looking for help please :)

have the same problem. do you know what is wrong?

This script is no more updated for long time ..and as moneypot have change many thing in there site and api so may be it has siisue to changed done by moneypot

I had this same problem too, and lucky for all of you, I spent a day of headaches so you don't have to. For some reason everything in 'node_modules' cannot get accessed (I am too lazy to look at what file is causing this). What is weird is that other sites (that seemed to be posted a lot older) have a semi-working website where you can at least see the boxes and shit. But whatever, I digress, all you need to do is to rename 'node_modules' into something else (e.g. 'nodemods') then change the values in the html file where 'node_modules' => 'nodemods' (or whatever you renamed it to).

However, I am yet to test whether or not the actual API works. Alongside with chat, faucet, etc. but it does load.

If anyone is interested, I am going to be refactoring this code for devs. So far I am painstakingly separating each component to a seperate .js file along with rewriting (nearly every line) to use ES6. Things I am also looking at is to use lighter libraries (e.g. jquery => superagent for ajax).

But good work, dan. I appreciate you for giving this away for free, I don't think I'd be able to do that. Money helps relieve the headaches. :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: bapparabi on January 26, 2017, 10:13:17 AM
Hello everyone,
I'm looking to make a small moneypot website while my real website is in construction.
https://dicepalacecasino.github.io here is my website, but it don't load. (blank screen)
I'm looking for help please :)

have the same problem. do you know what is wrong?

This script is no more updated for long time ..and as moneypot have change many thing in there site and api so may be it has siisue to changed done by moneypot

I had this same problem too, and lucky for all of you, I spent a day of headaches so you don't have to. For some reason everything in 'node_modules' cannot get accessed (I am too lazy to look at what file is causing this). What is weird is that other sites (that seemed to be posted a lot older) have a semi-working website where you can at least see the boxes and shit. But whatever, I digress, all you need to do is to rename 'node_modules' into something else (e.g. 'nodemods') then change the values in the html file where 'node_modules' => 'nodemods' (or whatever you renamed it to).

However, I am yet to test whether or not the actual API works. Alongside with chat, faucet, etc. but it does load.

If anyone is interested, I am going to be refactoring this code for devs. So far I am painstakingly separating each component to a seperate .js file along with rewriting (nearly every line) to use ES6. Things I am also looking at is to use lighter libraries (e.g. jquery => superagent for ajax).

But good work, dan. I appreciate you for giving this away for free, I don't think I'd be able to do that. Money helps relieve the headaches. :)

So either make script and sell it people will buy ..or just put your script in github.io .. or you can add the updated options in already have githug.io dice source code


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: 808mafia on January 30, 2017, 12:48:35 AM
So either make script and sell it people will buy ..or just put your script in github.io .. or you can add the updated options in already have githug.io dice source code

The upside of using the Moneypot api is that of the very low maintenance required, esp if you are going client-side. I could literally host the script and sit on my ass, maybe throw in a bit of marketing but other than that I will be set.

One thing for sure though, I will not be making any updates to the original github file. However, I may sell the script if I lose interest in running a small dice site of my own. Maybe use the script to make a working site then sell it? I could probably whip-up a mobile app too using React Native.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: bapparabi on January 30, 2017, 04:20:06 AM
So either make script and sell it people will buy ..or just put your script in github.io .. or you can add the updated options in already have githug.io dice source code

The upside of using the Moneypot api is that of the very low maintenance required, esp if you are going client-side. I could literally host the script and sit on my ass, maybe throw in a bit of marketing but other than that I will be set.

One thing for sure though, I will not be making any updates to the original github file. However, I may sell the script if I lose interest in running a small dice site of my own. Maybe use the script to make a working site then sell it? I could probably whip-up a mobile app too using React Native.

Great ..hope you can do the things you mention


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: IGCGamers on March 09, 2017, 03:42:06 AM
Update: I built this for the Moneypot API as it was when RHavar founded it. Since then, Moneypot is under new ownership and its API has possibly changed. I will not be updating this script. You'll need to know some Javascript to maintain it. I don't offer any technical support.


Untitled Dice v0.0.8
Run your own dice site without funding your own bankroll and without risking your own money


Live Demo:
https://untitled-dice.github.io



Source Code:
https://github.com/untitled-dice/untitled-dice.github.io


https://i.imgur.com/dTwOR01.png


What is it?

Untitled Dice is a bare-bones bitcoin dice casino built on top of the Moneypot.com gambling API that lets anyone run their own dice site by cloning and modifying this project.

Since Moneypot handles the user accounts, betting, faucet, and chat, Untitled Dice does not need a server of its own. It's fully client-side (just some javascript files), so it can be hosted anywhere including Github.

Features

- Chat box
- Hotkeys
- Faucet
- Provably fair verification
- Serverless: Host it anywhere that hosts html and javascript files
- Free bankroll: Since your users bet against Moneypot's bankroll, you risk no money and the profits are shared between you, Moneypot, and Moneypot's investors. See: https://www.moneypot.com/investment
- 1% house edge

Want to run your own dice site?

1. Clone this project's code (https://github.com/untitled-dice/untitled-dice.github.io) or get the latest stable release here: https://github.com/untitled-dice/untitled-dice.github.io/releases
2. Create an app at Moneypot.com (https://www.moneypot.com/apps/new)
3. Modify the config (most importantly the config.app_id) at the top of the app.js file (https://github.com/untitled-dice/untitled-dice.github.io/blob/2d3b14c7f5fae0c81a810fd62e378f7e63099d44/app.js#L4-L21)
4. Do whatever you want with the code. Rebrand it completely. Change the colors. Improve the code. Make it your own. Just keep an eye on this thread and the github repo to look out for any updates you may want to backport into your clone.

Questions?

Just ask here. :)

If you need 1-on-1 support, you can find me lurking on MoneyPot's Slack (http://slack.moneypot.com/), username is `dan` just like here. :) Though note that this is just a hobby project so I can only provide limited support as time allows.

FAQ

Q: My faucet won't work
A: The faucet uses Google ReCaptcha to prevent abuse, so you sign your website up with ReCaptcha here: https://www.google.com/recaptcha/intro/index.html - Once you register your site there, ReCaptcha will give you a site_key and a site_secret. Your site_key goes into the config at the top of app.js, and your site_secret goes into the "Edit App" page for your app - you will see a field called "Recaptcha Secret".

Q: What commands are available in the chatbox?
A: Only app owners and mods can use commands.
Code:
COMMAND                         DESCRIPTION
/mute <username> <duration>     Mute <username> for <duration>
/unmute <username>              Unmute <username>

EXAMPLES
/mute foo forever               Mute user "foo" forever
/mute foo 10 min                Mute user "foo" for 10 minutes
/mute foo 30 sec                Mute user "foo" for 30 seconds
/mute foo 1 day                 Mute user "foo" for 1 day
/unmute foo                     Unmutes user "foo"

TODO list and things I need to improve:

- Implement auto-better
- Implement an "All Bets" tab
- Let user set client-seed. It defaults to 0 right now.
- [Implemented in v0.0.7] Display timestamps in chat
- [Fixed in v0.0.3] Right now, the chatbox always scrolls to the last message every time someone chats. This is very annoying when you're trying to scroll back to read previous conversation because the chat will keep jerking you to the latest message. I need to fix it so that the chat only scrolls if you are viewing the latest message.

Changelog:

v0.0.8 (13 August 2015): Added configurable house edge (minor but often-requested feature)
- You can now configure the script's house-edge in the configuration settings at the top of app.js (default is 1%)

v0.0.7 (13 August 2015): Upgrades to Moneypot's new socket-/chat-server (Vastly improves the Untitled-Dice experience. Recommended upgrade!)
- Read more here: https://bitcointalk.org/index.php?topic=1062680.msg12135241#msg12135241
- Chat messages and mutes are now saved in Moneypot's database and will not be forgotten when the chat-server resets
- Mods now have the power to /mute and /unmute
- The UI instantly updates to reflect changes in the user's confirmed and unconfirmed balance (when they deposit bitcoin to your app's bitcoin address)
- Chat messages now have a HH:MM timestamp

v0.0.6 (3 June 2015): Very minor/skippable release
- Made bet validation errors more user-friendly: https://bitcointalk.org/index.php?topic=1062680.msg11524765#msg11524765

v0.0.5 (2 June 2015):
- Added Deposit and Withdraw dialog links to navbar so users can move money in and out of untitled-dice without navigating to Moneypot. Read more at https://www.moneypot.com/api-docs#dialogs

v0.0.4:
- Fixed bug where betting high would have house of edge of 1.02% instead of 1.00% - https://github.com/untitled-dice/untitled-dice.github.io/blob/1beabd04d13dd0d619498dc198b165c3a5c6b0d3/app.js#L67

v0.0.3:
- ChatBox only scrolls to last message if user is already scrolled to the bottom when someone chats
- Fixed a cross-browser compatibility issue (e.g. "Number.isFinite" error in Safari)
- Started adding version as a comment in app.js to help operators follow the changelog

My other work:

- http://plinkopot.com/


Can any one make me a moneypot dice site with auto betting features like betterbets.io. I am ready to pay for this.  Recently i asked itbox.com.hr and i even paid. But he scammed me.  I need a good and trustworthy developer who can do this for me.  Please reply if some one can do this for me...


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: crazybtrade on March 16, 2017, 09:10:31 AM
Hello,

I bought this game.
http://crazybtrade.com


How can verified domain?

Why dont work chat?

Why dont work faucet?

please help me fix this bugs.

Thanks



Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Frosxh on March 16, 2017, 10:05:02 AM
Hello,

I bought this game.
http://crazybtrade.com


How can verified domain?

Why dont work chat?

Why dont work faucet?

please help me fix this bugs.

Thanks



about the domain, contact moneypot about it but i doubt they will verify your app since it is only using the free untitled dice script from here

about the chat, not sure if they are still using the v1 for it

for the faucet, they removed that function already, all moneypot apps don't have faucet anymore


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: crazybtrade on March 18, 2017, 05:40:45 AM
Hello,

I bought this game.
http://crazybtrade.com


How can verified domain?

Why dont work chat?

Why dont work faucet?

please help me fix this bugs.

Thanks



about the domain, contact moneypot about it but i doubt they will verify your app since it is only using the free untitled dice script from here

about the chat, not sure if they are still using the v1 for it

for the faucet, they removed that function already, all moneypot apps don't have faucet anymore

how contact with moneypot?

where can get chat script?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: IGCGamers on March 18, 2017, 07:40:15 AM
can any one develop auto play feature in the moneypot version. i am ready to pay for it


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: goomezd on March 18, 2017, 02:25:15 PM
I like  this source code. Thank you


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: IGCGamers on March 23, 2017, 10:26:56 AM
I like  this source code. Thank you

Any developers here to get me the working version?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Frosxh on March 23, 2017, 12:46:10 PM
I like  this source code. Thank you

Any developers here to get me the working version?

the script is still working AFAIK tho this might not work in the future when moneypot shift to v2, the only feature that got removed is the faucet, if you are still interested to have this script running, you can send me a PM and i will try to make it work for you :)


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: IGCGamers on March 23, 2017, 01:02:07 PM
I like  this source code. Thank you

Any developers here to get me the working version?

the script is still working AFAIK tho this might not work in the future when moneypot shift to v2, the only feature that got removed is the faucet, if you are still interested to have this script running, you can send me a PM and i will try to make it work for you :)

I just sent you a PM


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: crazybtrade on March 26, 2017, 07:55:59 AM
I like  this source code. Thank you

Any developers here to get me the working version?

the script is still working AFAIK tho this might not work in the future when moneypot shift to v2, the only feature that got removed is the faucet, if you are still interested to have this script running, you can send me a PM and i will try to make it work for you :)

can you help me improve my dice-script?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: IGCGamers on March 26, 2017, 09:16:28 AM
I like  this source code. Thank you

Any developers here to get me the working version?

the script is still working AFAIK tho this might not work in the future when moneypot shift to v2, the only feature that got removed is the faucet, if you are still interested to have this script running, you can send me a PM and i will try to make it work for you :)

can you help me improve my dice-script?

Your site looks like the basic version found on github


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: crazybtrade on March 26, 2017, 01:10:56 PM
I like  this source code. Thank you

Any developers here to get me the working version?

the script is still working AFAIK tho this might not work in the future when moneypot shift to v2, the only feature that got removed is the faucet, if you are still interested to have this script running, you can send me a PM and i will try to make it work for you :)

can you help me improve my dice-script?

Your site looks like the basic version found on github

yes, need modify it..

who can help me?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: dmesticg on April 12, 2017, 10:07:02 PM
I am willing to pay for someone to turn this source code that looks better. Make it look like: safedice.com/play

Let me know how long it would take you and how much it would cost me.

Thanks, Sina


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: IGCGamers on April 12, 2017, 10:12:17 PM
I am willing to pay for someone to turn this source code that looks better. Make it look like: safedice.com/play

Let me know how long it would take you and how much it would cost me.

Thanks, Sina

dont trust any one without escrow system


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: bitkonga on April 24, 2017, 12:38:15 PM
Hi guys! Very happy that the code still working even after one and a half year without updates.
But I have little questions.

1 - Where that ntegrated faucet will get money? From my moneypot account?

2 - I can desactivate the faucet? How?


I already have a faucet and will put the dice games in a subdirectory. I don't want to have 2 faucets do care. And my first faucet is already losing money. (I don't know why, but my A-Ads earnings dropped 99% =/ )


faucet  https://bitkon.ga
dicegame   http://dice.bitkon.ga
Thanks to everyone!



EDIT

Now I seen that the Faucet was desactivated by moneypot. So, I can remove the faucet and put a link to the my faucet?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: lyynx on September 24, 2017, 10:38:34 PM
So is the Moneypot method dead? There doesn't seem to be anywhere on Moneypot to set the uri.


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: softwork-LuckyGames on March 01, 2018, 12:54:49 PM
Can someone integrate this dice game into my wallet?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JackpotRacer on March 01, 2018, 01:06:16 PM
Can someone integrate this dice game into my wallet?

dice game into your wallet? what does that mean?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: Refar109 on October 07, 2018, 09:57:18 PM
Hoe can i embed this script on a wordpress page?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: JamJammo on October 08, 2018, 08:50:44 AM
Thank U!


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: eliascarvalho1101 on January 02, 2019, 03:04:52 PM
You are here? Integrated with Moneypot?


Title: Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)
Post by: gugulanul on November 12, 2020, 02:53:25 PM
Hi!

Does have anyone done some updates of this script to work locally without Moneypot API?

I own an online faucet and I wanted to integrate to be played with the local account balance.

Can anyone give me some advices ?
Thanks for help!