Skip to content

Commit

Permalink
Merge pull request #20 from OSDG-IIITH/remove-dotenv
Browse files Browse the repository at this point in the history
Remove unneeded dotenv dependency and usage
  • Loading branch information
ankith26 authored Jun 15, 2024
2 parents 7e1b8fa + 4c45c1f commit 4b488a6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 32 deletions.
4 changes: 0 additions & 4 deletions bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
from typing import TypedDict
from aiohttp import web

from dotenv import load_dotenv

import discord
from discord.ext import commands

Expand All @@ -46,8 +44,6 @@
if not server_configs:
sys.exit(1)

load_dotenv()

TOKEN = os.getenv("DISCORD_TOKEN")
MONGO_DATABASE = os.getenv("MONGO_DATABASE")
MONGO_URI = os.getenv("MONGO_URI")
Expand Down
6 changes: 1 addition & 5 deletions bot/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
aiohttp==3.9.5
aiosignal==1.3.1
async-timeout==4.0.3
attrs==23.2.0
chardet==5.2.0
discord.py==2.3.2
dnspython==2.6.1
frozenlist==1.4.1
idna==3.7
multidict==6.0.5
pymongo==4.7.2
python-dotenv==1.0.1
typing_extensions==4.11.0
pymongo==4.7.3
yarl==1.9.4
1 change: 0 additions & 1 deletion portal/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const config = require("./utils/config");
const app = require("./app");
const logger = require("./utils/logger");
require("dotenv").config();

app.listen(config.PORT, () => {
logger.info(`Server running on ${config.BASE_URL}`);
Expand Down
34 changes: 13 additions & 21 deletions portal/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"license": "MIT",
"dependencies": {
"cas": "git+https://github.com/kcbanner/node-cas.git",
"dotenv": "^16.4.5",
"express": "^4.17.1"
},
"scripts": {
Expand Down

0 comments on commit 4b488a6

Please sign in to comment.