Skip to content

Commit a33acb2

Browse files
author
forceCpp
committed
.env
1 parent 6adeba4 commit a33acb2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
from dotenv import load_dotenv
44
import os
55
import openai
6-
api_keys = ".env_openai"
7-
openai.api_key_path = api_keys
8-
96

107
load_dotenv()
11-
mytoken = os.getenv("TOKEN")
8+
discordtoken = os.getenv("TOKEN")
9+
openai_api_key = os.getenv("API_KEY")
10+
openai.api_key = openai_api_key
11+
12+
1213
intents = discord.Intents.default()
1314
intents.message_content = True
1415
bot = commands.Bot(command_prefix='$', intents=intents)
@@ -21,4 +22,4 @@ async def chat(ctx, *, message: str):
2122
return
2223

2324

24-
bot.run(mytoken)
25+
bot.run(discordtoken)

0 commit comments

Comments
 (0)