diff --git a/docs/guides/subscription-automation-guide.md b/docs/guides/subscription-automation-guide.md index d35d835..e11f0f7 100644 --- a/docs/guides/subscription-automation-guide.md +++ b/docs/guides/subscription-automation-guide.md @@ -703,15 +703,36 @@ Frost Legend: 901234567890123456 Sovereign: 012345678901234567 ``` -### Step 3: Update Bot Code with Role IDs +### Step 3: Update Bot Code with Role IDs (Michael's Task) -**Edit `/opt/firefrost-discord-bot/bot.js`:** +**Holly:** After you create all the Discord roles and copy their IDs (from Step 2), give the list to Michael. He'll update the bot code. -Replace the `PRODUCT_ROLE_MAP` section: +**Michael:** Holly will give you a list like this: +``` +The Awakened: 123456789012345678 +Fire Elemental: 234567890123456789 +Frost Elemental: 345678901234567890 +Fire Knight: 456789012345678901 +Frost Knight: 567890123456789012 +Fire Master: 678901234567890123 +Frost Master: 789012345678901234 +Fire Legend: 890123456789012345 +Frost Legend: 901234567890123456 +Sovereign: 012345678901234567 +``` + +**SSH to Command Center and edit the bot code:** + +```bash +ssh root@63.143.34.217 +nano /opt/firefrost-discord-bot/bot.js +``` + +**Find the `PRODUCT_ROLE_MAP` section and replace it:** ```javascript const PRODUCT_ROLE_MAP = { - '2': '123456789012345678', // The Awakened + '2': '123456789012345678', // The Awakened (use Holly's actual ID) '3': '234567890123456789', // Fire Elemental '4': '345678901234567890', // Frost Elemental '5': '456789012345678901', // Fire Knight @@ -724,12 +745,28 @@ const PRODUCT_ROLE_MAP = { }; ``` +**Save and exit** (Ctrl+X, Y, Enter) + **Restart the bot:** ```bash systemctl restart firefrost-discord-bot + +# Verify it restarted successfully +systemctl status firefrost-discord-bot + +# Check logs to confirm no errors +journalctl -u firefrost-discord-bot -f ``` +**You should see:** +``` +✅ Bot logged in as Firefrost Subscription Manager#1234 +🌐 Webhook server listening on port 3100 +``` + +**Now hand back to Holly for Part 3.** + ### Step 4: Configure Channel Permissions **Create private channels for Fire/Frost paths:**