tg-shellbot-heroku
https://github.com/botgram/shell-bot
You can deploy without cloning this repo to test it out.
Instructions:
- Click on "Use this template" if you want to make your repo private (forking wont allow the repo to be private).
- Edit your config.sh It's a bash script which gets executed while the Dockerfile builds the image. Everything you need to install and setup needs to be written down here.
- Open your version of this repo and in the address bar add this:
https://heroku.com/deploy?template=
as the prefix. - Fill everything in and deploy. After its finished click manage app and go to resources tab and turn on the worker.
- Now click on the deploy tab, connect your github account and then connect your repo. This way you can edit config.sh through Github web and the app will automatically redeploy and apply changes.
- If you want a file to be copied to heroku dyno, put it in the stuff folder in your repo. Make your repo private if you don't want your sensitive files be shown to the public.
Misc:
Command List for BotFather:
Copy paste this through Edit Commands in BotFather to view commands when you type in a /
(slash).
Text /help
to the bot for a slightly more detailed explanation.
help - get help boi
status - you can see the current status and settings for this chat
run - <command> and I'll execute it for you
env - to manipulate the environment
cd - use this instead of /run cd, default directory is /home
enter - Reply to one of my messages to send input to the command
end - to send an EOF (Ctrl+D) to the command
cancel - to send SIGINT (Ctrl+C) to the process group, or the signal you choose
kill - to send SIGTERM to the root process, or the signal you choose
redraw - to force a repaint of the screen for graphical applications
type - to press keys
control - ctrl button (to send the next key with Ctrl)
meta - alt button (to send the next key with Alt)
keypad - to show a keyboard for special keys
resize - to change the size of the terminal
shell - to see or change the shell used to run commands
file - <file-location> to display the contents of file as a text message. This also allows you to edit the file
upload - <file-location> and I'll send that file to you