We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719f36d commit c7f335fCopy full SHA for c7f335f
events/lunch_buddy.js
@@ -1,7 +1,9 @@
1
const { EmbedBuilder, ButtonBuilder, ActionRowBuilder } = require("discord.js");
2
const cron = require("node-cron");
3
-const lunchBuddyLocations = require("../data/lunch_buddy_locations.json");
4
-const config = require("../config/lunch_buddy.json");
+const fs = require("fs");
+
5
+const lunchBuddyLocations = JSON.parse(fs.readFileSync("./data/lunch_buddy_locations.json"));
6
+const config = JSON.parse(fs.readFileSync("./config/lunch_buddy.json"));
7
8
const maxRowButtons = 4;
9
const areaButtonCustomId = "AreaButton";
0 commit comments