Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 1.01 KB | None | 0 0
  1. ##
  2. # Author : DmitRex
  3. # Version 1.0
  4. # Name: fortuna.tcl
  5. # .chanset #chan [-|+]nofortuna [on|off] script
  6. ##
  7. setudef flag nofortuna
  8. bind pub - !fortuna fortuna
  9. bind pub - !фортуна fortuna
  10. proc fortuna {nick uhost hand chan text} {
  11. set fcolor(1) "\00303"
  12. set fcolor(2) "\00304"
  13. if {[channel get $chan nofortuna]} {return}
  14. set listfortuna {
  15. "Да"
  16. "Тебе повезёт"
  17. "Это случится"
  18. "Не торопи события"
  19. "Забудь об этом"
  20. "Не факт"
  21. "Нет"
  22. "Не судьба"
  23. "Это уже в прошлом"
  24. "Это твой опыт"
  25. "Хотелось бы верить"
  26. }
  27. if {$text == ""} { putserv "notice $nick : Используйте: $::lastbind \[вопрос\]"; return
  28. }
  29. set randfortuna ""
  30. putserv "notice $nick : Ваш запрос принят"
  31. after 3000
  32. putserv "PRIVMSG $chan :$fcolor(2)Выбор сделан: $fcolor(1)[lindex $listfortuna [rand [llength $listfortuna ]]]"
  33. putlog "Successful loaded script by DmitRex \[fortuna.tcl\]"
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement