Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AmirSbss
committed
Jan 7, 2017
1 parent
4dfda7c
commit 6704837
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
redis = (loadfile "redis.lua")() | ||
io.write("Enter Tabchi ID : ") | ||
local last = io.read() | ||
io.write("\nEnter Full Sudo ID : ") | ||
local sudo=io.read() | ||
local text,ok = io.open("base.lua",'r'):read('*a'):gsub("TABCHI%-ID",last) | ||
io.open("tabchi-"..last..".lua",'w'):write(text):close() | ||
io.open("tabchi-"..last..".sh",'w'):write("while true; do\n./telegram-cli-1222 -p tabchi-"..last.." -s tabchi-"..last..".lua\ndone"):close() | ||
io.popen("chmod 777 tabchi-"..last..".sh") | ||
redis:set('tabchi:'..last..':fullsudo',sudo) | ||
print("Done!\nNew Tabchi Created...\nID : "..last.."\nFull Sudo : "..sudo.."\nRun : ./tabchi-"..last..".sh") |