Skip to content

Jackyj09/Rclone-HerokuShell

Repository files navigation

Rclone Herokushell

Interface Heroku's shell through Telegram, plus Rclone support

This project is a re-branded repository of HerokuShell-Rclone by hostitor.

Deploy

Installation

  • First get the following prepared:
    • A @BotFather bot token. Tutorial
    • Your Telegram user ID. Talk with this bot
    • [OPTIONAL] Your Rclone config, you need to encode it to Base64
  • Next click the Deploy button above, make sure you have a Heroku account
  • Fill in the text fields with the information you prepared
  • Press the Deploy button
  • Wait for the app to finish deploying
  • Go to the app's dashboard and go onto the 'Resources' tab
  • On the web npm start worker, click the pencil icon and toggle it off
  • On the worker source setup.sh && bash start.sh worker, click the the pencil icon and toggle it on
  • Now open telegram and use the commands below to interact with your bot

Commands

  • To use rclone commands do /run rclone [param]...
run - Execute command
enter - Send input lines to command
type - Type keys into command
control - Type Control+Letter
meta - Send the next typed key with Alt
keypad - Toggle keypad for special keys
redraw - Force the command to repaint
end - Send EOF to command
cancel - Interrupt command
kill - Send signal to process
status - View status and current settings
cd - Change directory
env - Manipulate the environment
shell - Change shell used to run commands
resize - Change the terminal size
setsilent - Enable / disable silent output
setlinkpreviews - Enable / disable link expansion
setinteractive - Enable / disable shell interactive flag
grant - Allow another user to use the bot
token - Allow another user to use the bot by generating unique token
help - Get help
file - View and edit small text files
upload - Upload and overwrite raw files
r - Alias for /run or /enter

Required Variables

  • BOT_TOKEN: The bot token provided by @BotFather
  • OWNER_ID: Your Telegram user ID, get it from @userinfobot
  • RCLONE_CONFIG_BASE64: Your Rclone config encoded using Base64

About

Run Rclone in Telegram bot with Heroku

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages