Skip to content

Commit e907e3b

Browse files
committed
feat: update environment variables in .env.example for role IDs and modify light ban role assignment in bot.js to use environment variable
1 parent 64d87b6 commit e907e3b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.env.example

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,19 @@ BOT_PREFIX="!"
4848
COLLEGE_EMAIL_DOMAIN=pcampus.edu.np
4949

5050
# --- YOUR GUILD IMPORTANT ROLE (FOR FSU ONLY) ---
51-
ADMIN_ROLE_ID="1364069370543996969"
52-
MODERATOR_ROLE_ID="1364094348685479996"
51+
ADMIN_ROLE_ID="YOUR_ADMIN_ROLE_ID_HERE"
52+
MODERATOR_ROLE_ID="YOUR_MODERATOR_ROLE_ID_HERE"
5353
FSU_EXECUTIVE_ROLE_ID="YOUR_FSU_EXECUTIVE_ROLE_ID_HERE"
5454
FSU_BOT_ROLE_ID="YOUR_FSU_BOT_ROLE_ID_HERE"
55-
CLUB_PRESIDENT_ROLE_ID="1364094351155658866"
55+
CLUB_PRESIDENT_ROLE_ID="YOUR_CLUB_PRESIDENT_ROLE_ID_HERE"
5656

5757
# --- Event and Club Management ---
5858
# Channel where public (server-wide) events will be posted
59-
PUBLIC_EVENTS_CHANNEL_ID="1447074326963552367"
59+
PUBLIC_EVENTS_CHANNEL_ID="YOUR_PUBLIC_EVENTS_CHANNEL_ID_HERE"
6060
# Channel where Pulchowkian-only (verified members) events will be posted
61-
PULCHOWKIAN_EVENTS_CHANNEL_ID="1364094394596069467"
61+
PULCHOWKIAN_EVENTS_CHANNEL_ID="YOUR_EVENTS_CHANNEL_ID_HERE"
6262
# Channel where event approval requests are sent (for clubs requiring approval)
6363
EVENT_APPROVAL_CHANNEL_ID="YOUR_EVENT_APPROVAL_CHANNEL_ID_HERE"
6464

65+
# LIGHT BAN ROLE ID
66+
LIGHT_BAN_ROLE_ID="YOUR_LIGHT_BAN_ROLE_ID"

src/bot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ class PulchowkBot {
17801780
* @private
17811781
*/
17821782
async _assignLightBanRole(userOrMember, guild) {
1783-
const LIGHT_BAN_ROLE_ID = '1418234351493185657';
1783+
const LIGHT_BAN_ROLE_ID = process.env.LIGHT_BAN_ROLE_ID||'1418234351493185657';
17841784

17851785
try {
17861786
// Get member if we have a user object

0 commit comments

Comments
 (0)