Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set a help message. #6

Merged
merged 2 commits into from
Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())


Expand Down
2 changes: 1 addition & 1 deletion src/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
DateField
)

from conf import DB_NAME
from .conf import DB_NAME

db = SqliteDatabase(DB_NAME)

Expand Down
12 changes: 6 additions & 6 deletions src/wallet.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down