Commit graph

90 commits

Author SHA1 Message Date
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
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
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
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
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
moneromooo
68ca830b05 Send dice game result to the channel if appropriate 2015-01-16 10:30:08 +00:00
moneromooo
a3de014d0a Dice game commands are now public 2015-01-16 09:40:11 +00:00
moneromooo
5b89cbdad3 Add dice module 2015-01-15 14:50:07 +00:00
moneromooo
cc3e34ac0b Add betutils - betting games related functions 2015-01-15 14:50:07 +00:00
moneromooo
1771e7879f Make daemon/wallet connections timeout at 20 seconds 2015-01-15 11:35:21 +00:00
moneromooo
cf05473c2c Handle IRC input without a channel (eg, QUIT) 2015-01-15 11:21:16 +00:00
moneromooo
14af9b3eb2 Add a trampoline for hdel 2015-01-13 23:20:24 +00:00
moneromooo
8dbb075a4a More robust field splitting
In particular, this should be resistant against shortened IPv6 addresses
2015-01-13 12:58:25 +00:00
moneromooo
2028230f82 Remove some unused code 2015-01-13 12:54:17 +00:00
moneromooo
a0d2f3725f Add sadd and smembers redis trampolines 2015-01-12 21:35:24 +00:00
moneromooo
762c7650a7 Send the "you must be registered/admin" to the channel if appropriate
It seems many people miss the /msg
2015-01-12 17:12:46 +00:00
moneromooo
566631bc38 Fix rename handling with IPv6 ident 2015-01-11 22:32:42 +00:00
moneromooo
9c21b43ba5 Add exists and delete redis trampolines 2015-01-11 22:32:18 +00:00
moneromooo
4631dca7b6 Do not enumerate users when raining on more than 16 nicks 2015-01-11 18:45:59 +00:00
moneromooo
107e36cf32 import config in withdrawl module 2015-01-11 16:48:36 +00:00
moneromooo
a2d760dcdb Make mixin configurable 2015-01-11 16:28:20 +00:00
moneromooo
0dc90676c8 Move IsValidAddress to utils 2015-01-11 14:08:12 +00:00
moneromooo
6823e0f926 Show a list of modules in help 2015-01-11 09:47:24 +00:00
moneromooo
5a6c3bd379 Fix Paymend/Payment typo 2015-01-10 20:35:10 +00:00
moneromooo
114c67799d withdraw: fix error being sent to wrong variable 2015-01-10 20:34:31 +00:00
moneromooo
09b1ee2f07 Fix rainactive synopsis, and error on usage when missing amount/hours 2015-01-10 14:03:07 +00:00
moneromooo
75d9c4de8e Don't try to update last active time on direct chats to the bot 2015-01-10 00:07:55 +00:00
moneromooo
e24389d5b4 Add a compatibility check test at startup 2015-01-09 23:15:31 +00:00