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
|
||||
env_file:
|
||||
- .env
|
||||
command: python3 main.py
|
||||
command: python3 -u main.py
|
||||
restart: always
|
||||
|
|
6
main.py
6
main.py
|
@ -5,6 +5,8 @@ from discord.ext.commands import Bot
|
|||
bot_version = os.environ['version']
|
||||
bot_token = os.environ['token']
|
||||
|
||||
print('radiobot ' + bot_version + ' starting')
|
||||
|
||||
client = Bot(command_prefix="!")
|
||||
isPlaying = False
|
||||
class MyClient(discord.Client):
|
||||
|
@ -13,6 +15,8 @@ class MyClient(discord.Client):
|
|||
print('Logged on as', self.user)
|
||||
|
||||
async def on_message(self, message):
|
||||
print('msg')
|
||||
|
||||
# don't respond to ourselves
|
||||
if message.author == self.user:
|
||||
return
|
||||
|
@ -34,4 +38,4 @@ class MyClient(discord.Client):
|
|||
await self.voiceChannel.disconnect()
|
||||
|
||||
client = MyClient()
|
||||
client.run(bot_token) # Get token for this shit
|
||||
client.run(bot_token) # Get token for this shit
|
||||
|
|
Loading…
Reference in a new issue