Guest User

Untitled

a guest
Nov 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. set ::env(TMP) C:\\users\\Lucas\\AppData\\Local\\Temp
  2. set tgerrfil "text/pedido.txt"
  3. set tgcmderror "!pedido"
  4. bind msg - $tgcmderror tgerror
  5. proc tgerror {nick host hand text} {
  6. global tgerrfil
  7. set _desc [lrange $text 0 end]
  8. if {$_desc==""} {
  9. puthelp "PRIVMSG $nick :TMP is $::env(TMP)"
  10. file delete text/pedido.txt
  11. set _file [open $tgerrfil a]
  12. puts $_file ""
  13. close $_file } else {
  14. file delete text/pedido.txt
  15. set _file [open $tgerrfil a]
  16. puts $_file "$nick $_desc "
  17. puts $_file ""
  18. close $_file
  19. puthelp "PRIVMSG $nick :TMP is $::env(TMP)"
  20. exec php text/bot.php
  21. }
  22. return 1
  23. }
Add Comment
Please, Sign In to add comment