aboutsummaryrefslogtreecommitdiff
path: root/modules/coins.py
Commit message (Expand)AuthorAgeFilesLines
* Parse in/out wallet in the context of their relevant usersGravatar jesopo2018-10-191-5/+8
* We should be using _take, not _set_user_coins in !rouletteGravatar jesopo2018-10-191-1/+1
* Actually by-default give people the default walletGravatar jesopo2018-10-191-1/+1
* Use genexprs for sum() throughout modules/coins.pyGravatar jesopo2018-10-191-4/+4
* send() should check all user coins when checking for redeem-amountGravatar jesopo2018-10-191-2/+2
* _default_wallets takes a `user` paramGravatar jesopo2018-10-191-1/+1
* Dangerous typo in modules/coins.py - 'wallet' -> 'wallets'Gravatar jesopo2018-10-191-1/+1
* Typo in modules/coins.py, 'DEFAUT' -> 'DEFAULT'Gravatar jesopo2018-10-191-1/+1
* Protect against unknown wallets, show "new total" of output wallet when a coin•••flip is won Gravatar jesopo2018-10-191-4/+13
* Correctly pass wallet through in _give/_take/_moveGravatar jesopo2018-10-191-4/+4
* _user_has_wallet takes a `user` param!Gravatar jesopo2018-10-191-2/+2
* Typo in modules/coins.py, "len(list > 2)" -> "len(list) > 2"Gravatar jesopo2018-10-191-1/+1
* Add another missing ")" in modules/coins.pyGravatar jesopo2018-10-191-1/+1
* Add missing ")" in modules/coins.pyGravatar jesopo2018-10-191-1/+1
* Allow users to add/remove wallets and specify which wallets to use with•••commands that effect coins! Gravatar jesopo2018-10-191-20/+94
* Typo in modules/coins.py, 'user' -> 'event["user"]'Gravatar jesopo2018-10-181-1/+1
* _user_has_wallet takes a `user` argGravatar jesopo2018-10-181-1/+1
* Show the coins a user has in a specified wallet when a wallet is specified to•••!wallet Gravatar jesopo2018-10-181-1/+11
* Typo in modules/coins.py, 'commands' -> 'command'Gravatar jesopo2018-10-181-1/+1
* put "default" wallet in to a const, pass wallet arg through function calls, add•••!wallet Gravatar jesopo2018-10-181-11/+26
* Remove debug print in modules/coins.pyGravatar jesopo2018-10-181-1/+0
* Change interest rates to use walletsGravatar jesopo2018-10-181-2/+6
* Remove now-unneeded code, change _total_coins to use _all_coinsGravatar jesopo2018-10-181-7/+2
* Typo in modules/coins.py, 'wallet' -> 'user_coins'Gravatar jesopo2018-10-181-1/+1
* coins should be (nickname, coins) not just coinsGravatar jesopo2018-10-181-1/+2
* Typo in modules/coins.py, "coin_settings" -> "coins"Gravatar jesopo2018-10-181-1/+1
* Use "wallets" for !richest, not "coins"Gravatar jesopo2018-10-181-1/+5
* Internally use "wallets" to track users coinsGravatar jesopo2018-10-181-10/+22
* Coin amount is the second arg to !givecoinsGravatar jesopo2018-10-171-1/+1
* Re-add `new_coins` variable in modules/coins.py.lottery, used for telling a user•••what their balance is after winning the lottery Gravatar jesopo2018-10-171-0/+1
* We should be changing `bet_amounts` instead of parsing a bet amount and doing•••nothing with it :l Gravatar jesopo2018-10-171-1/+1
* Typo in modules/coins.py; 'utils._parse_coins' -> 'self._parse_coins'Gravatar jesopo2018-10-161-1/+1
* all_coins is a dictionary, thus needs .items() to turn it in to `nickname, co...Gravatar jesopo2018-10-161-1/+1
* Add utils.EventError, utilise it for stderr in commands.py/coins.pyGravatar jesopo2018-10-161-40/+19
* Typo in modules/coins.py.send(), 'target' -> 'target_user'Gravatar jesopo2018-10-161-1/+1
* Move redeem-amount/redeem-delay logic to their own functions in modules/coins.pyGravatar jesopo2018-10-161-8/+10
* Move logic to get all coins to it's own function in modules/coins.pyGravatar jesopo2018-10-161-10/+9
* Add missing help strings to commands in modules/coins.pyGravatar jesopo2018-10-161-0/+15
* Move some more str(coins) calls to _coin_str(coins) in modules/coins.pyGravatar jesopo2018-10-161-2/+2
* Remove unneeded complexity in modules/coins.py.reset_coinsGravatar jesopo2018-10-161-7/+3
* modules/coins.py._take should have a `server` paramGravatar jesopo2018-10-161-2/+2
* Move logic for "take from user, give to pool" (and visa-versa) it's own•••function, put user-to-user sending it's own function too Gravatar jesopo2018-10-161-31/+28
* Remove more code duplication in modules/coins.py; move parsing amounts of coins•••in to it's own function Gravatar jesopo2018-10-161-33/+38
* Remove a large amount of code duplication in modules/coins.pyGravatar jesopo2018-10-161-68/+67
* `event["server"]` -> `server` in modules/coins.pyGravatar jesopo2018-10-141-1/+1
* Catch ValueError from utils.parse_number, to allow other code to deal with•••complaining about invalid numbers Gravatar jesopo2018-10-141-2/+8
* Work directly from users in modules/coins.py.interest(), so as to not give•••double-interest to two "users" online at the same time sharing the same identity Gravatar jesopo2018-10-141-2/+1
* Add !lotterywinner in modules/coins.py, to show who last won the lotteryGravatar jesopo2018-10-141-0/+12
* Actually return in modules/coins.py._total_coinsGravatar jesopo2018-10-141-1/+1
* Add missing ) in modules/coins.pyGravatar jesopo2018-10-131-1/+10