diff --git a/docker-compose.yml b/docker-compose.yml index 6eb38a3..80306ec 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,5 +7,5 @@ services: dockerfile: Dockerfile env_file: - .env - command: python3 main.py + command: python3 -u main.py restart: always diff --git a/main.py b/main.py index ce2a993..c4cf848 100644 --- a/main.py +++ b/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 \ No newline at end of file +client.run(bot_token) # Get token for this shit