Skip to content

Commit cdf1875

Browse files
Merge pull request #8 from HackNCState:debug-fixes
tested severity functionality
2 parents d90d70c + f256ed1 commit cdf1875

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
DISCORD_BOT_TOKEN=
22
SHEETS_ID=
33
SERVICE_ACC_AUTH_PATH=
4-
CHANNEL_ID=
4+
CHANNEL_ID=
5+
ANNOUNCEMENTS_ROLE_ID=

src/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { Client, GatewayIntentBits, EmbedBuilder } = require('discord.js');
55
const schedule = require('node-schedule');
66
const { google } = require('googleapis');
77

8-
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
8+
const client = new Client({ intents: [GatewayIntentBits.Guilds], disableEveryone: false });
99

1010

1111
async function fetchData(auth, sheetsID) {
@@ -73,7 +73,7 @@ async function scheduleAnnouncements() {
7373
if (location) { locationTime += `*${location}*`; }
7474
if (eventTime) {
7575
if (location) { locationTime += `, *${eventTime}*`; }
76-
else { ocationTime += `*${eventTime}*`; }
76+
else { locationTime += `*${eventTime}*`; }
7777
}
7878
if (locationTime) { message += `[${locationTime}]`; }
7979

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const config = {
77
announcementsChannelID: process.env.CHANNEL_ID,
88
googleAPIKeyFile: process.env.SERVICE_ACC_AUTH_PATH,
99
sheetsID: process.env.SHEETS_ID,
10-
announcementsRoleID: '',
10+
announcementsRoleID: process.env.ANNOUNCEMENTS_ROLE_ID,
1111
};
1212

1313
module.exports = config;

0 commit comments

Comments
 (0)