Skip to content

Commit e5429b9

Browse files
committed
Tweaks
1 parent 9f00122 commit e5429b9

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

cloudbot/bot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def __init__(self, loop=asyncio.get_event_loop()):
9595
# set botvars so plugins can access when loading
9696
database.metadata = self.db_metadata
9797
database.base = self.db_base
98-
database.user_agent = self.user_agent
9998

10099
logger.debug("Database system initialised.")
101100

cloudbot/util/database.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""
2-
botvars - contains variables set by cloudbot to be easily access
2+
database - contains variables set by cloudbot to be easily access
33
"""
44

55
# this is assigned in the CloudBot so that its recreated when the bot restarts
66
metadata = None
7-
user_agent = None
87
base = None

plugins/cryptocurrency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def crypto_command(text):
7474
else:
7575
change_str = "{}%".format(change)
7676

77-
return "{} // \x0307${:,.2f}\x0f USD - {:,.5f} BTC // {} change".format(data['symbol'].upper(),
77+
return "{} // \x0307${:,.2f}\x0f USD - {:,.7f} BTC // {} change".format(data['symbol'].upper(),
7878
float(data['price']['usd']),
7979
float(data['price']['btc']),
8080
change_str)

0 commit comments

Comments
 (0)