Skip to content

eusoff-hackers/eusoff-simp-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eusoff Simp Bot

A telegram bot to allow Eusoffians to request for favours and also help others with daily work, such as tapaoing food.

Requirements

To use this, you'll need.

  1. Telegram bot Token

  2. A google account

  3. Spreadsheet IDs to the necessary in google sheet format (upload files from this folder to google drive and convert to google sheets files through File > Save as Google Sheets)

Installation

  1. With npm installed, install clasp globally
npm install -g @google/clasp
  1. Run yarn to install dependencies

  2. Enable the Google Apps Script API

  3. Then login to Google, clasp login

  4. Create the google app, clasp create --title "Eusoff Simp Bot" --type webapp --rootDir src

  5. Copy config.js.example into config.js, replace all placeholder values with your own, except for deployment id.

  6. Deploy it using clasp deploy to get the deployment id.

  7. Take note of the deployment id after Created version x e.g.

Created version 1.
- <<YOUR DEPLOYMENT ID HERE>> @1.
Now set the deployment id in secret.js along with the bot token and sheet ids.
  1. Run clasp push and clasp deploy -i <> to push your code to Google Scripts and deploy it again

  2. Run clasp open to open it in google script

  3. Click config.js, and click Run > Run Function > setWebHook

  4. It will ask you to authorise (for the first time), and it should be ok to do so, click Advanced > Go to Eusoff Simp Bot (unsafe) > Allow

  5. Open the app by clasp open --webapp, select the version with your deployment id to open. (This will automatically reset the telegram bot's webhooks)

Tips

When you want to update your telegram bot with the current code, use clasp push && clasp deploy -i <>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •