botgram / shell-bot

:robot: Telegram bot that executes commands and sends the live output
GNU General Public License v3.0
787 stars 493 forks source link

Hello botgram support #37

Open oxosec opened 3 years ago

oxosec commented 3 years ago

Hi

I have one question is /token or /grant command save credentials as text file for remebering the user ? If not then is their any way to give user access through the config.json file same method for the /resize command I'm asking this because my machine reboots every 24h

Thankyou

alexeyvpn commented 3 years ago

hi, did you find any answer?

oxosec commented 3 years ago

hi, did you find any answer?

Yes bro i got just edit server.js file line 80 size: {columns: 40, rows: 20}, edit like size: {columns: 40, rows: 40},

bendschs commented 2 years ago

and then? add what to the config.json? (i have the same problem, shell-bot does not seem to remember granted users over reboots).

3guboff commented 1 year ago

and then? add what to the config.json? (i have the same problem, shell-bot does not seem to remember granted users over reboots).

Hey, did you find a solution for this?

bendschs commented 1 year ago

yes, i just added another entry to the config.json

config.json

 {
     "authToken": "yyyyyy:xxxxxxxxxxxxxxxxxxxxxxx",
     "owner": yyyyy
 }

y=user number x=auth token

tshwangq commented 1 month ago

add your telegram userid to granted array in server.js will do the trick