Guest User

Cayin remote 2.0

a guest
Dec 21st, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. //COMMANDS
  2.  
  3. on *:TEXT:!social:#: {
  4. if ((%floodtest) || ($($+(%,floodtest.,$nick),2))) { return }
  5. set -u10 %floodtest On
  6. set -u30 %floodtest. $+ $nick On
  7. msg $chan Here's a list of social media sites where you can keep up with Cayin www.facebook.com/cayinator, www.youtube.com/user/cayinator, www.twitter.com/cayinator, www.reddit.com/user/cayinator $+
  8. }
  9. on *:TEXT:!patreon:#: {
  10. if ((%floodtest) || ($($+(%,floodtest.,$nick),2))) { return }
  11. set -u10 %floodtest On
  12. set -u30 %floodtest. $+ $nick On
  13. msg $chan If you're enjoying the show and want to help support me directly visit http://www.patreon.com/cayinator $+
  14. }
  15. on *:TEXT:!donate:#: {
  16. if ((%floodtest) || ($($+(%,floodtest.,$nick),2))) { return }
  17. set -u10 %floodtest On
  18. set -u30 %floodtest. $+ $nick On
  19. msg $chan All donations are greatly appreciated and go towards the stream. If you're considering to donate you can do it by following this link : https://www.twitchalerts.com/donate/Cayinator $+
  20. }
  21. on *:TEXT:!steamgroup:#: {
  22. if ((%floodtest) || ($($+(%,floodtest.,$nick),2))) { return }
  23. set -u10 %floodtest On
  24. set -u30 %floodtest. $+ $nick On
  25. msg $chan Become a Turbo Bandit today! http://steamcommunity.com/groups/TheTurboBandits $+
  26. }
  27. on *:TEXT:!24h:#: {
  28. if ((%floodtest) || ($($+(%,floodtest.,$nick),2))) { return }
  29. set -u10 %floodtest On
  30. set -u30 %floodtest. $+ $nick On
  31. msg $chan Whenever a collective donation of $500 is reached a 24 hour stream shall take place the following Friday! $+
  32. }
  33.  
  34. //Point system
  35.  
  36. alias -l addPoints {
  37. if ($1 !isnum) { echo 2 -st $1 is not a number. It needs to be a number. | halt }
  38. var %topic $+($chan,.,$nick)
  39. var %points $calc($readini(Points.ini,%topic,Points) + $5)
  40. writeini -n Points.ini %topic Points %points
  41. return %points
  42. }
  43.  
  44. alias -l lookUpPoints {
  45. var %topic $+($chan,.,$nick)
  46. var %points $readini(Points.ini,%topic,Points)
  47. return %points
  48. }
  49. alias doaddpoints {
  50. if ($3 !isnum) { echo 2 -st $3 is not a number. It needs to be a number. | halt }
  51. var %topic $+($1,.,$2)
  52. var %points $calc($readini(Points.ini,%topic,Points) + $3)
  53. writeini -n Points.ini %topic Points %points
  54. echo -a Added points for %topic
  55. }
  56.  
  57. alias dorempoints {
  58. var %topic $+($1,.,$2)
  59. remini -n Points.ini %topic Points
  60. echo -a Removed points for %topic
  61. }
  62.  
  63. on *:text:!crabs:#:{
  64. if ((%floodpoints) || ($($+(%,floodcrabs.,$nick),2))) { return }
  65. set -u10 %floodcrabs On
  66. set -u30 %floodcrabs. $+ $nick On
  67. msg # $nick has $readini(Points.ini,$+(#,.,$nick),Points) total crabs.
  68. }
  69.  
  70. on $*:text:/!crabs (add|remove)/Si:#:{
  71. if ($nick isop #) {
  72. if ($0 < 3) { msg # Insufficient parameters: Use !points <add|remove> <user> [number] | return }
  73. writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) $iif($2 == add,+,-) $iif($4 isnum,$4,1))
  74. { msg $chan $3 now has $readini(Points.ini,$+(#,.,$3),Points) total crabs. }
  75. }
  76. else { msg $chan This command is only available to moderators. }
  77. }
  78.  
  79. on !*:join:#:{
  80. $+(.timerpoints.,#,.,$nick) 0 600 add.pts $+(#,.,$nick)
  81. add.pts $+(#,.,$nick)
  82. }
  83. on !*:part:#:$+(.timerpoints.,#,.,$nick) off
  84. alias -l add.pts {
  85. writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
  86. }
Add Comment
Please, Sign In to add comment