This commit is contained in:
Dionysus 2022-11-22 20:25:40 -05:00
parent b68288566a
commit 9230666d49
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
5 changed files with 18 additions and 9 deletions

View File

@ -1,6 +1,6 @@
ISC License ISC License
Copyright (c) 2020, acidvegas <acid.vegas@acid.vegas> Copyright (c) 2021, acidvegas <acid.vegas@acid.vegas>
Permission to use, copy, modify, and/or distribute this software for any Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above purpose with or without fee is hereby granted, provided that the above

View File

@ -36,7 +36,7 @@ This game can introduce lots of trolling & botting. Get creative & figure out wa
* Double fees mode will be activated randomly every 7 to 10 days, which will double the fees for cashout, trade, and send usage, and can last for 1 to 3 days. * Double fees mode will be activated randomly every 7 to 10 days, which will double the fees for cashout, trade, and send usage, and can last for 1 to 3 days.
###### Trading Pair Rules ###### Trading Pair Rules
- USD can only be used for buying or selling BTC, ETH, & LTC. - USD can only be used for buying or selling BTC & ETH.
- BTC & ETH are the only major trading pairs between all other cryptocurrencies. - BTC & ETH are the only major trading pairs between all other cryptocurrencies.
@ -85,7 +85,7 @@ Support the project development if you like it: [Patreon.com/irccex](https://pat
The IRCCEX project is completely open source & non-profit, though any support/pledges will help in motivation towards more development and adding new features! The IRCCEX project is completely open source & non-profit, though any support/pledges will help in motivation towards more development and adding new features!
###### Future Concepts & Ideas ###### Future Concepts & Ideas
* Use multiple API keys to prevent rate limiting. * Include a seperate bot for just trading stocks (include options trading, dividends, etc)
* IRCCEX BlockChain - Keep an on-going ledger of every single transaction ever made in the channel. *(No idea what use it would have. Maybe a `!trades` command for recent history. The idea makes me laugh)* * IRCCEX BlockChain - Keep an on-going ledger of every single transaction ever made in the channel. *(No idea what use it would have. Maybe a `!trades` command for recent history. The idea makes me laugh)*
* Buying options - Spend a large sum of money on features like locking someone from trading for X amount of time (Charge Y per hour and max it to 24 hours), wallet spying, wallet bombing (sending a bunch of shitcoins), hindsight where you get private message alerts on a coins price changing (can be used whenever only once). * Buying options - Spend a large sum of money on features like locking someone from trading for X amount of time (Charge Y per hour and max it to 24 hours), wallet spying, wallet bombing (sending a bunch of shitcoins), hindsight where you get private message alerts on a coins price changing (can be used whenever only once).
* Post reward pool bangs will make you lose money to fuck with people spamming hard with bots to rack up the pool * Post reward pool bangs will make you lose money to fuck with people spamming hard with bots to rack up the pool

View File

@ -43,6 +43,4 @@ class limits:
class fees: class fees:
cashout = 0.02 # 2% cashout = 0.02 # 2%
send = 0.01 # 1% send = 0.01 # 1%
trade = 0.001 # 0.1% trade = 0.001 # 0.1%
CMC_API_KEY = 'CHANGEME' # https://pro.coinmarketcap.com/signup

View File

@ -326,9 +326,17 @@ class Events:
total = 0 total = 0
for symbol in Bot.db['wallet'][nick]: for symbol in Bot.db['wallet'][nick]:
amount = Bot.db['wallet'][nick][symbol] amount = Bot.db['wallet'][nick][symbol]
value = amount if symbol == 'USD' else CMC._ticker()[symbol]['price']*amount if symbol == 'USD':
Commands.sendmsg(chan, f' {symbol.ljust(8)} | {str(functions.clean_float(amount)).rjust(20)} | {str(functions.clean_value(value)).rjust(20)}') value = amount
total += float(value) elif symbol in CMC._ticker():
value = CMC._ticker()[symbol]['price']*amount
else: # CLEAN THIS UP - TEMP FIX FOR ERRORS ON !wallet reported by sht, ji, and others...
value = 'JACKED'
if value == 'JACKED':
Commands.sendmsg(chan, symbol + ' was JACKED sucka!')
else:
Commands.sendmsg(chan, f' {symbol.ljust(8)} | {str(functions.clean_float(amount)).rjust(20)} | {str(functions.clean_value(value)).rjust(20)}')
total += float(value)
Commands.sendmsg(chan, color(f' Total: {str(functions.clean_value(total)).rjust(27)}', constants.black, constants.light_grey)) Commands.sendmsg(chan, color(f' Total: {str(functions.clean_value(total)).rjust(27)}', constants.black, constants.light_grey))
elif len(args) == 2: elif len(args) == 2:
if args[0] in ('!bottom','!top'): if args[0] in ('!bottom','!top'):

3
todo Normal file
View File

@ -0,0 +1,3 @@
fix bang decimal amounts and maybe check reward pool
table aign to smallest irccex
show change suince initial investment on !wallet