Skip to content

LinuxGuy312/LinuxGuy312.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Get This Cool Website for yourself

Note

If you don't want the button for Contact, you can remove Lines 128 to 134 in index.html, delete the contactform directory and skip the deployment steps ahead

Deployment of Contact Form on Cloudflare Workers

Setup The Code Required:

  • Create a Telegram bot from BotFather and copy its API Token
  • Start your newly created bot by sending /start in its PM
  • Then goto Yoshitsu and send /id and copy your user id
  • Open cf-worker.js and edit your Bot token and User ID you got from earlier.
  • Copy the edited cf-worker.js to your clipboard.

Deploy Cloudflare worker:

  • Go to Cloudflare Workers & Create an Account.
  • After that, Create a worker and Edit it to Paste the Javascript Code you Copied earlier.
  • Save and Deploy the worker and copy its URL.

Add in your website:

  • Just replace the form_worker_url in index.html to your cloudflare worker URL and you are good to go!