make container verbose

This commit is contained in:
deflax 2022-03-23 19:56:13 -04:00
parent 1277e1c17b
commit afb34d4477
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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
@ -34,4 +38,4 @@ class MyClient(discord.Client):
await self.voiceChannel.disconnect() await self.voiceChannel.disconnect()
client = MyClient() client = MyClient()
client.run(bot_token) # Get token for this shit client.run(bot_token) # Get token for this shit