diff --git a/src/bot.py b/src/bot.py index ab26867..1faefa9 100644 --- a/src/bot.py +++ b/src/bot.py @@ -268,13 +268,12 @@ async def check_for_deposit(): @client.event async def on_ready(): + logger.info('connected as %s and id %s', client.user.name, client.user.id) - print('Logged in as') - print(client.user.name) - print(client.user.id) - print('------') + # Let users know we're watching for commands by setting the bot's activity. + watching = discord.Activity(type=discord.ActivityType.watching, name='DM me "$help".') + await bot.change_presence(activity=watching) - logger.info('connected as %s and id %s', client.user.name, client.user.id) asyncio.get_event_loop().create_task(check_for_deposit()) diff --git a/src/db.py b/src/db.py index f353ec0..19862a1 100644 --- a/src/db.py +++ b/src/db.py @@ -8,7 +8,7 @@ DateField ) -from conf import DB_NAME +from .conf import DB_NAME db = SqliteDatabase(DB_NAME) diff --git a/src/wallet.py b/src/wallet.py index 45002b9..f2dfe1d 100644 --- a/src/wallet.py +++ b/src/wallet.py @@ -1,13 +1,13 @@ from bitcoinrpc.authproxy import AuthServiceProxy -import util -import db +from . import util +from . import db import datetime import logging -from conf import (RPC_PORT, - RPC_USER, - RPC_PASSWORD, - RPC_HOST +from .conf import (RPC_PORT, + RPC_USER, + RPC_PASSWORD, + RPC_HOST ) logging.basicConfig(filename='bot.log', level=logging.INFO)