Skip to content

Instantly share code, notes, and snippets.

View negezor's full-sized avatar
🥴
Open source is a job that doesn't pay

Vlad negezor

🥴
Open source is a job that doesn't pay
View GitHub Profile
@negezor
negezor / README.md
Created March 18, 2022 16:57
Serverless email saving with Google Apps Script in Google Sheets

Setup steps

  • Create a new Google Sheets document
  • Rename the list 1 to collect (name can be changed to your own)
  • Optionally describe the first column as email and the second column as subscription date
  • Open Add-ons » Apps Script
  • Paste the extension code into the editor
  • Click deploy at the top
  • Deploy as a web application
  • Copy macro link
  • Send a POST application/x-www-form-urlencoded request with an email field
@negezor
negezor / bot.js
Last active February 3, 2021 21:00
Command prototype using Composition API for vk-io
const { VK } = require('vk-io');
const { Commander, useMessage, useViewer, onEnter, ref, watch } = require('./core');
const vk = new VK({
token: ''
});
const commander = new Commander();