This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add the following variables: | |
// ENV_BOT_TOKEN: Your bot token from BotFather. | |
// ENV_BOT_SECRET: A random secret for webhook verification. | |
// ENV_GITHUB_TOKEN: Your GitHub personal access token. | |
// ENV_WORKFLOW_NAME: Workflow file name inside main branch (deploy.yml) | |
// ENV_GITHUB_REPO: Your GitHub repository in the format owner/repo. | |
// After deploy run https://<yout-url>/registerWebhook | |
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Variables (Change with your preferences) | |
USER="yourusername" | |
PASSWORD="yourpassword" | |
PORT=4500 | |
# Check if the script is run as root | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "Please run this script as root." |