1
Fork 0
mirror of https://github.com/RGBCube/TwitterDiscordWebhook synced 2025-07-27 13:07:45 +00:00

Fix: add type: module to package.json

This commit is contained in:
RGBCube 2023-01-27 15:18:57 -05:00
parent e16ce3aac0
commit 1b61f17f61
2 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,8 @@
import fs from "fs";
import Twitter from "twit";
import { Webhook } from "discord-webhook-node";
const config = require("config.json");
const config = JSON.parse(fs.readFileSync("./config.json"));
const dClient = new Webhook(config.discord.webhookUrl);
dClient.setUsername(config.discord.webhookName);