make container verbose
This commit is contained in:
parent
1277e1c17b
commit
afb34d4477
2 changed files with 6 additions and 2 deletions
|
@ -7,5 +7,5 @@ services:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
command: python3 main.py
|
command: python3 -u main.py
|
||||||
restart: always
|
restart: always
|
||||||
|
|
4
main.py
4
main.py
|
@ -5,6 +5,8 @@ from discord.ext.commands import Bot
|
||||||
bot_version = os.environ['version']
|
bot_version = os.environ['version']
|
||||||
bot_token = os.environ['token']
|
bot_token = os.environ['token']
|
||||||
|
|
||||||
|
print('radiobot ' + bot_version + ' starting')
|
||||||
|
|
||||||
client = Bot(command_prefix="!")
|
client = Bot(command_prefix="!")
|
||||||
isPlaying = False
|
isPlaying = False
|
||||||
class MyClient(discord.Client):
|
class MyClient(discord.Client):
|
||||||
|
@ -13,6 +15,8 @@ class MyClient(discord.Client):
|
||||||
print('Logged on as', self.user)
|
print('Logged on as', self.user)
|
||||||
|
|
||||||
async def on_message(self, message):
|
async def on_message(self, message):
|
||||||
|
print('msg')
|
||||||
|
|
||||||
# don't respond to ourselves
|
# don't respond to ourselves
|
||||||
if message.author == self.user:
|
if message.author == self.user:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue