Skip to content

Commit

Permalink
python streamer seems to be working
Browse files Browse the repository at this point in the history
  • Loading branch information
melchoir55 committed Oct 23, 2022
1 parent 0abffee commit 209ffca
Show file tree
Hide file tree
Showing 6 changed files with 486 additions and 205 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__pycache__/
*.py[cod]
*$py.class

.idea/
# C extensions
*.so

Expand Down
10 changes: 3 additions & 7 deletions Dizplayer.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import os

import discord
import nest_asyncio
from discord.ext import commands
from dotenv import load_dotenv

from Listener import ListenerCog
from Music import MusicPlayerCog
from Music import Music

nest_asyncio.apply()
load_dotenv()
# Get the API token from the .env file.
DISCORD_TOKEN = os.getenv("discord_token")
DISCORD_TOKEN = os.getenv("DISCORD_TOKEN")
print(DISCORD_TOKEN)

initial_extensions = ['cogs.listener',
Expand All @@ -21,6 +18,5 @@
bot = commands.Bot(command_prefix='!', intents=intents)

if __name__ == "__main__":
bot.add_cog(MusicPlayerCog(bot))
bot.add_cog(ListenerCog(bot))
bot.add_cog(Music(bot))
bot.run(DISCORD_TOKEN)
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ WORKDIR /app
COPY ./requirements.txt /app

ENV PYTHONUNBUFFERED 1

RUN apt-get -y update
RUN apt-get install -y ffmpeg
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .

CMD ["python", "Dizplayer.py"]
COPY . .
Loading

0 comments on commit 209ffca

Please sign in to comment.