Skip to content

Commit d089deb

Browse files
committed
Import dotnet where it makes sense.
1 parent 4b38623 commit d089deb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/api/forumAPI.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// Functionality to interact with the forum API
2+
import dotenv from 'dotenv';
3+
dotenv.config();
24

35
import { ForumTopic } from "../types/ForumWebhookTypes";
46

src/server/forumWebhook.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import express from 'express';
55
import { htmlToText } from 'html-to-text';
66
import { getTopic } from '../api/forumAPI';
77
import axios from 'axios';
8+
import dotenv from 'dotenv';
9+
dotenv.config();
810

911
const FORUM_SUGGESTION_FORUM_ID = 9063; // The ID of the forum for suggestions.
1012
const SUGGESTION_ICON = 'https://staticdelivery.nexusmods.com/images/2295/31179975-1744285207.png'; // The icon for the suggestion forum.

0 commit comments

Comments
 (0)