aboutsummaryrefslogtreecommitdiff
path: root/modules/coins.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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 ownGravatar jesopo2018-10-161-31/+28
| | | | function, put user-to-user sending it's own function too
* Remove more code duplication in modules/coins.py; move parsing amounts of coinsGravatar jesopo2018-10-161-33/+38
| | | | in to it's own function
* 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 withGravatar jesopo2018-10-141-2/+8
| | | | complaining about invalid numbers
* Work directly from users in modules/coins.py.interest(), so as to not giveGravatar jesopo2018-10-141-2/+1
| | | | double-interest to two "users" online at the same time sharing the same identity
* 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
|
* Move functionality of finding total in-circulation coins out to it's ownGravatar jesopo2018-10-131-5/+6
| | | | function
* Add !totalcoins in modules/coins.py, to check what the total coins inGravatar jesopo2018-10-131-0/+12
| | | | circulation is
* !lotterybuy should require authentication because it uses coinsGravatar jesopo2018-10-131-1/+1
|
* 'redude' -> 'reduce' (my redudes), `import random` because i forgot to, don'tGravatar jesopo2018-10-131-2/+4
| | | | try to do lottery for networks that have no lottery tickets purchased
* Fixed incorrect comment about what counts as high/low for roulette inGravatar jesopo2018-10-131-1/+1
| | | | modules/coins.py
* Give coins lost to the house in roulette to the BankGravatar jesopo2018-10-131-0/+1
|
* Typo in modules/coins.py, 'redcude' -> 'reduce'Gravatar jesopo2018-10-121-1/+1
|
* Default !lotterybuy to 1 ticketGravatar jesopo2018-10-121-1/+3
|
* Add !nextlottery to modules/coins.pyGravatar jesopo2018-10-121-0/+6
|
* Correct the logic used to find the time until the next lotteryGravatar jesopo2018-10-121-3/+3
|
* Pass context-wrapped timers to each module, add ModuleManager.BaseModule.on_loadGravatar jesopo2018-10-121-6/+5
|
* Use UTC in modules/coins.pyGravatar jesopo2018-10-121-3/+3
|
* Implement 4-times-daily lottery in module/coins.py and address all stderrs toGravatar jesopo2018-10-121-46/+145
| | | | the relevent user
* _give_from_pool/_take_from_pool take a `server` argumentGravatar jesopo2018-10-121-2/+2
|
* Show cents in !bank balance in modules/coins.pyGravatar jesopo2018-10-121-2/+2
|
* Introduce a finite coin system in modules/coins.pyGravatar jesopo2018-10-121-1/+35
|
* modules/coins.py.send should be checking user_coins before the send amount isGravatar jesopo2018-10-121-1/+1
| | | | taken away, not after
* Support unit-based bets (1k/1m/1b) in modules/coins.pyGravatar jesopo2018-10-121-0/+2
|
* Don't calculate `user_coins(+/-)coin_bet` twiceGravatar jesopo2018-10-111-6/+6
|
* Remove one-too-many indent in modules/coins.pyGravatar jesopo2018-10-111-1/+1
|
* Fix column obsessionGravatar panicbit2018-10-111-8/+14
|
* Show new coin total after flipping a coinGravatar panicbit2018-10-111-4/+6
|
* randbelow takes one argumentGravatar jesopo2018-10-101-1/+1
|
* Support coin bets without a whole number (e.g. '0.1' can be '.1')Gravatar jesopo2018-10-101-1/+1
|
* Use a better RNG in modules/coins.py (secrets.choice/secrets/randbelow)Gravatar jesopo2018-10-101-3/+3
|
* Move 'top 10' logic to utils, add !wordiest to modules/words.pyGravatar jesopo2018-10-041-6/+5
|
* Move src/Utils.py in to src/utils/, splitting functionality out in to modules ofGravatar jesopo2018-10-031-12/+12
| | | | related functionality
* Switch to using docstring for usage, permission and require_modeGravatar jesopo2018-09-301-18/+20
|
* Add src/Cache.py, use it in modules/coins.pyGravatar jesopo2018-09-291-8/+10
|
* Remove cyclical references to IRCBotGravatar jesopo2018-09-281-2/+2
|
* Change old-style event hook in coins.pyGravatar jesopo2018-09-271-1/+1
|
* Switch to using @Utils.hook and docstrings for event hooksGravatar jesopo2018-09-261-28/+37
|
* Move most code in root directory to src/Gravatar jesopo2018-09-241-1/+1
|
* Remove empty spaces in coins.pyGravatar jesopo2018-09-241-2/+0
|
* Remove superfluous function.Gravatar dngfx2018-09-231-17/+0
|
* Remove intrusive styling.Gravatar dngfx2018-09-231-2/+2
|