Connect Google Sheet
A connected sheet syncs with ops1813 (site ↔ sheet). Add Discord on the same sheet for three-way sync.
How do you want to connect Google Sheet?
Best if you are starting fresh. Duplicate our power sheet, share the link, install Apps Script — Discord is not required for this path.
1. Duplicate the template
-
Make a copy to your Drive
Do not edit the shared master — always work from your copy. Rename it (click the title) to TAG server Power — e.g. EVHO 1813 Power. Avoid leaving it as “Untitled spreadsheet”.
-
Share access
In your copy: Share → General access → Anyone with the link → Viewer (or Editor for officers). Keep the spreadsheet URL handy — you paste it when linking the alliance (Discord /setup → Bot + Sheet, or the site when it asks). You do not need it to generate the script below.
-
Starter tabs
Keep Roster (Players, Power SQ1–4, Level, Role, …). Other tabs support Canyon / history.
2. Get the Apps Script onto your sheet
Recommended if you are unsure: Download script only, then paste it yourself (Extensions → Apps Script). No Google “manage my scripts” permission needed.
- Paste
Your copy → Extensions → Apps Script → new file → paste → Save.
- Deploy
Deploy → New deployment → Web app → Execute as Me · Anyone.
Optional: Install / update from ops1813
This lets ops1813 push or overwrite the ops1813SheetApi file in your sheet’s Apps Script project from our server (so we can ship script updates later). Google will ask for permission to manage Apps Script / Drive for that file. You may also need to turn on “Google Apps Script API” under script.google.com → Settings.
If that sounds like more access than you want, skip this section and use Download script only above — set everything up manually.
Agree above to unlock.
Authorize Google (incl. Deploy)
Leave blank: we reuse Discord’s API secret when this alliance already has Bot + Sheet, otherwise we generate a new one. Override only if you know you need a different secret.
4. Web app URL
We try to deploy automatically and fill this in. If it’s empty, Authorize Google again (Deployments permission), or deploy once in the editor and paste the /exec URL, then Save & finish.
Use an existing alliance sheet. We detect player / SQ columns when we can; otherwise you map fields, then install Apps Script. Discord is not required.
1. Paste your spreadsheet link
Share as Anyone with the link → Viewer so we can read tabs and row‑1 headers. Map manually if detect fails.
2. Map roster fields
Required: Player name and SQ1 power. Other fields are optional.
3. Get the Apps Script onto your sheet
Recommended if you are unsure: Download script only, then paste it yourself (Extensions → Apps Script). No Google “manage my scripts” permission needed.
Leave the API secret blank to auto‑generate (or reuse Discord’s if this alliance already has one).
- Paste
Your sheet → Extensions → Apps Script → new file → paste → Save.
- Deploy
Deploy → New deployment → Web app → Execute as Me · Anyone.
- Finish
Copy the /exec URL into step 4 below (or after Install).
Optional: Install / update from ops1813
This lets ops1813 push or overwrite ops1813SheetApi in your sheet’s Apps Script from our server (for future updates). Google will ask for Apps Script / Drive permission. You may need Apps Script API → On in your Google account settings.
If that sounds like more access than you want, skip this and use Download script only above.
Agree above to unlock.
Authorize Google (incl. Deploy)
4. Web app URL
We try to deploy automatically and fill this in. If it’s empty, Authorize Google again (Deployments permission), or deploy once in the editor and paste the /exec URL, then Save & finish.
Discord must be connected first
This path links the sheet through the bot. Invite the ops1813 bot and finish /setup in Discord before you attach a sheet. That gives you three-way sync: Discord ↔ sheet ↔ website.
1. Connect Discord
-
Invite the bot
Open Discord invite Full Discord guide
Pick your alliance server and authorize slash commands.
-
Run /setup in Discord
Set alliance tag and warzone (e.g. EVHO · 1813).
2. Attach the sheet in Discord
-
Storage → Bot + Sheet
In /setup, choose Bot + Sheet (not Bot only). Paste your spreadsheet URL when the bot asks.
-
Install Apps Script from Discord
Run /gscode in Discord, copy the script into the sheet’s Apps Script project, set the API secret, and deploy as a web app (Execute as me · Anyone).
-
Confirm
When setup finishes, the site, Discord, and sheet share the same roster data. Check Alliances that your guild shows as connected.