From 83d825f99ef431f7119f0d57b3c658d7760af61b Mon Sep 17 00:00:00 2001 From: artifishvr <59352535+artifishvr@users.noreply.github.com> Date: Mon, 22 Apr 2024 19:59:32 -0700 Subject: [PATCH] fix everything --- Dockerfile | 4 ++-- bot.py | 3 +++ requirements.txt | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc38ef2..9c6d61e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.7-alpine +FROM python:3.9 WORKDIR /app @@ -7,4 +7,4 @@ RUN pip install -r requirements.txt COPY . . -CMD [ "python3", "bot.py" ] \ No newline at end of file +CMD [ "python", "./bot.py" ] \ No newline at end of file diff --git a/bot.py b/bot.py index 497c43c..8d9537f 100644 --- a/bot.py +++ b/bot.py @@ -3,7 +3,10 @@ import os import requests from discord.ext import commands +import os +from dotenv import load_dotenv +load_dotenv() intents = discord.Intents.default() intents.message_content = True client = commands.Bot(command_prefix="[[", intents=intents) diff --git a/requirements.txt b/requirements.txt index a0a72d8..680ba7a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ discord.py python-dotenv -requests \ No newline at end of file +requests +python-dotenv \ No newline at end of file