Advertisement
Guest User

commandapi

a guest
Jan 20th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. -- This is an API that lets me change the text
  2. -- in a command
  3. -- Chock500 - 23|12|12,016HE
  4. os.loadAPI("chockos/fileapi")
  5.  
  6. function command(com)
  7.   if fs.exists("chockos/temp") then
  8.     fs.delete("chockos/temp")
  9.   end
  10.   fileapi.writeFile("chockos/","temp",com)
  11.   --shell.run("chockos/temp")
  12.   --fs.delete("chockos/temp")
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement