moneromooo
dea535dd17
Link: cache identity
2015-01-25 12:29:50 +00:00
moneromooo
08bfb84183
RetrieveHouseBalance: Don't hit redis for data we already have
2015-01-25 12:26:41 +00:00
moneromooo
32ab6a3127
blackjack: fix splitting on different 10 valued card
...
It was using the first card twice, which wasn't quite correct,
tough only cosmetic
2015-01-24 21:52:24 +00:00
moneromooo
a6d4f07eec
dice, blackjack: use the configured coin name in help
2015-01-24 16:58:14 +00:00
moneromooo
15c5d31dc7
payment: GetTipbotAddress now returns None when it fails
...
The display function will turn it into "ERROR"
2015-01-24 11:37:19 +00:00
moneromooo
d5ab3b88f5
Split GetBalance to a core RetrieveBalance and the user command
2015-01-24 11:37:18 +00:00
moneromooo
2cb01954d4
Fix report mixing up win/loss, and make it a bit more compact
2015-01-23 11:37:26 +00:00
moneromooo
bb7d4c9f2c
blackjack: fix double doubling the wrong bet amount
...
It would double the current full amount bet, rather than the
original bet of the current hand only.
Also fix an error message using a variable before it's initialized
when telling the player his/her balance is not enough when doing so.
2015-01-23 10:52:32 +00:00
moneromooo
1a6476d2f0
Make idle and cleanup functions fields of the module object
2015-01-22 19:30:28 +00:00
moneromooo
9ab5db39e4
betutils: move "does not have enough balance" from error to warning
2015-01-22 18:46:23 +00:00
moneromooo
cf122d032b
Factor player balance check into IsBetValid and make min/max bets optional
2015-01-22 18:46:15 +00:00
moneromooo
6d1136b459
betutils: add a report command for a games activity overview
2015-01-22 18:20:51 +00:00
moneromooo
c4fbd04532
redis: add trampolines for a few z* functions
2015-01-22 18:20:35 +00:00
moneromooo
4b6f08d2a1
blackjack: avoid deleting player state twice when winning insurance
2015-01-22 10:50:53 +00:00
moneromooo
e0da99eb63
blackjack: fix syntax error in error log on missing basic strategy combination
2015-01-22 10:02:46 +00:00
moneromooo
ab26278828
blackjack: add missing 21 basic strategy score
...
It was only implied in the tables
2015-01-22 10:02:10 +00:00
moneromooo
e0cd953dd4
Fix a few s/identity/nick/ in user facing messages
2015-01-21 22:00:22 +00:00
moneromooo
c48428b0ab
blackjack: fix balance check with side bets
2015-01-21 19:44:54 +00:00
moneromooo
b040600947
Blackjack is now not admin only
2015-01-21 19:18:56 +00:00
moneromooo
84f550a355
Add ban/unban commands
2015-01-21 18:26:48 +00:00
moneromooo
efcfc84c69
Add blackjack module
2015-01-21 16:38:59 +00:00
moneromooo
19e8aa1b1c
Add the ability for games to earmark part of the house balance
...
This allows games to take bets from players (so the players aren't
in control of them anymore) while still not counting these as part
of the house balance (and thus the house can't spend them on some
other payment).
2015-01-21 14:32:13 +00:00
moneromooo
69d0f89549
Add the tipbot's personal balance when querying house balance
...
It's not part of the "spendable" house balance, so must be
accounted for separately.
2015-01-21 14:32:12 +00:00
moneromooo
1726d85d5c
Add a list of invalid commands to ignore
...
To avoid the botspam when someone's using another bot
2015-01-21 13:50:31 +00:00
moneromooo
e893d293f0
Silence the log spam from RetrieveHouseBalance
2015-01-21 10:49:06 +00:00
moneromooo
590b9ef9c5
Bypass potential loss checking code if potential loss is 0
2015-01-20 19:52:10 +00:00
moneromooo
689469f298
return from AddBalance on error
2015-01-20 19:28:46 +00:00
moneromooo
b06520e1ea
dice: fix typo in message
2015-01-20 18:00:02 +00:00
moneromooo
54531fdc3b
Make sure to send help/etc in PM
2015-01-20 17:18:15 +00:00
moneromooo
d5d0801807
Fix another issue with IPv6 users - commands being ignored
2015-01-20 17:11:56 +00:00
moneromooo
92bf49a4c4
RainActive: aesthetic message fixes
2015-01-20 14:56:41 +00:00
moneromooo
1925f1e704
RainActive: fix format string error
2015-01-20 14:52:20 +00:00
moneromooo
866c1f485c
Time based stats are now daily and (all time) hourly
...
Cuts down on unnecessary detail/storage
2015-01-20 08:41:18 +00:00
moneromooo
5d56c82cad
Keep track of game stats against time
2015-01-19 23:46:45 +00:00
moneromooo
826902213c
Add trampoline for zincrby
2015-01-19 23:46:31 +00:00
moneromooo
75ebebc757
Move house_balance to betutils
2015-01-19 20:54:54 +00:00
moneromooo
7347480a86
dice: change the multiplier semantics to be hopefully more intuitive
...
x2 now means even odds - you pay your bet, and get a x2 payout back,
which leaves you with a profit equal to your original bet.
Minimum multiplier is bumped from 0.1 to 1.1 to reflect this change.
2015-01-19 19:39:43 +00:00
moneromooo
48476969d3
Migrate dice db to new network-prefix user names
2015-01-19 08:54:07 +00:00
moneromooo
ea25e9d41b
Abstract away communications networks
2015-01-19 08:45:56 +00:00
moneromooo
62c2adbaf6
Be conservative about which ! are really commands
...
This should fix pastes triggering commands
2015-01-18 22:51:34 +00:00
moneromooo
5ce0d1da50
Print meaningful time spans on rainactive
2015-01-18 22:18:46 +00:00
moneromooo
8007d6c7e3
addbalance now uses human friendly amounts
2015-01-18 11:52:01 +00:00
moneromooo
74c01f9bce
Add a reserve_balance admin command
...
And move RetrieveHouseBalance to betutils as a side effect
2015-01-18 11:41:32 +00:00
moneromooo
7a4506a9e6
dice: invert target too when playing over
...
I'm an idiot :/
2015-01-18 09:05:59 +00:00
moneromooo
e3eaff5fc1
Do not write the server seed to the log file
2015-01-17 19:46:04 +00:00
moneromooo
41e00ad742
dice: clarify the amount is in monero
2015-01-17 15:53:46 +00:00
moneromooo
75bf15a321
dice: catch typos in recipients and ask for confirmation
2015-01-17 15:43:50 +00:00
moneromooo
fb8a906645
Add a disable command for emergencies
2015-01-17 13:19:50 +00:00
moneromooo
9d6308b0b9
dice: allow over/under rolls
2015-01-17 09:02:37 +00:00
moneromooo
206dcbebec
Add rpush/lpop/lindex trampolines
2015-01-17 00:06:01 +00:00