irccex

- fantasy cryptocurrency exchange for irc
git clone git://git.acid.vegas/irccex.git
Log | Files | Refs | Archive | README | LICENSE

commit 98b10c89addb59797269ed54f174e202e29f571a
parent 9230666d49a74b1f540f6406e81e98f11193118b
Author: acidvegas <acid.vegas@acid.vegas>
Date: Wed, 23 Nov 2022 20:29:25 -0500

Added missing config variables pointed out by ji

Diffstat:
Mirccex/core/config.py | 7+++++--
Mirccex/core/irc.py | 1+

2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/irccex/core/config.py b/irccex/core/config.py
@@ -16,6 +16,7 @@ class connection:
 class cert:
 	key      = None
 	password = None
+	file     = None
 
 class ident:
 	nickname = 'IRCCEX'
@@ -43,4 +44,6 @@ class limits:
 class fees:
 	cashout = 0.02  # 2%
 	send    = 0.01  # 1%
-	trade   = 0.001 # 0.1%
-\ No newline at end of file
+	trade   = 0.001 # 0.1%
+
+CMC_API_KEY = None # https://coinmarketcap.com/api/
+\ No newline at end of file
diff --git a/irccex/core/irc.py b/irccex/core/irc.py
@@ -334,6 +334,7 @@ class Events:
 												value = 'JACKED'
 											if value == 'JACKED':
 												Commands.sendmsg(chan, symbol + ' was JACKED sucka!')
+												del Bot.db['wallet'][nick][symbol]
 											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)