Guest User

Untitled

a guest
Jan 24th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. on !1:JOIN:#clannies:/notice $nick Welcome to Clannie IRC Channel. For a list of Commands type !help . Sub Commands are now implemented. Type !help to find out more!
  2.  
  3. on 1:TEXT:!add*:#:{
  4. if ($readini(matches.ini,$nick,admin)) {
  5. notice $nick You already have a game on the bot
  6. }
  7. elseif ($3) && ($2) && ($4) && ($5) {
  8. if (!$timer(checkmatches)) { timercheckmatches 0 10 checkmatches }
  9. writeini matches.ini $nick admin $nick
  10. writeini matches.ini $nick clan $2
  11. writeini matches.ini $nick time $3
  12. writeini matches.ini $nick game $4
  13. writeini matches.ini $nick server $5
  14. notice $nick Your game has been added to the Bot. Please use !foundgame once you have a game!
  15. msg $chan 12,1-=0,1List of Teams Looking for Games $+: 2,1=-
  16. var %i = 1
  17. while (%i <= $ini(matches.ini,0) ) {
  18. msg $chan Team $+ : $+ $+ 4 $readini(matches.ini,$ini(matches.ini,%i),clan)  $+ $+ Time $+ : $+ $+ 4 $readini(matches.ini,$ini(matches.ini,%i),time)  Game $+ :4 $readini(matches.ini,$ini(matches.ini,%i),game)  $+ $+ Server $+ : $+ 4 $readini(matches.ini,$ini(matches.ini,%i),server)  $+ $+ Contact $+ : $+ 4 $readini(matches.ini,$ini(matches.ini,%i),admin)
  19. inc %i
  20.  
  21. }
  22. }
  23.  
  24. else {
  25. notice $nick You entered an Invalid Syntax $+ . Correct Syntax $+ : !add (Clan) (Time) (Game) (Do You Have A Server? Yes/No)
  26. }
  27. }
  28.  
  29. alias checkmatches {
  30. var %i = 1
  31. while (%i <= $ini(matches.ini,0) ) {
  32. if ($time(tt) == $remove($readini(matches.ini,$ini(matches.ini,%i),time),1,2,3,4,5,6,7,8,9,0)) {
  33. if ($time(h) > $remove($readini(matches.ini,$ini(matches.ini,%i),time),am,pm)) {
  34. notice $readini(matches.ini,$ini(matches.ini,%i),admin) Your game has expired.
  35. remini matches.ini $ini(matches.ini,%i)
  36. }
  37.  
  38. }
  39. inc %i
  40. }
  41. }
  42. on 1:TEXT:!set*:#clannies:{
  43. if ($nick isop $chan) {
  44. set $2 $3
  45. }
  46. }
  47. on 1:TEXT:!help:#clannies:{
  48. notice $nick Clannie Bot Made By Murkee
  49. notice $nick If you're looking for a clan match, Use the command !add (ClanName) (Time) (Game) (Server Yes/No)
  50. notice $nick To look at the Clans that are currently looking for a clannie - !listgames
  51. notice $nick If you want to sub for a Clannie. Type !sub (Game) (TimeYouCanStart) (TimeYouWillEnd)
  52. notice $nick To find a list of current users that want to sub - !listsubs
  53. }
  54.  
  55. on 1:TEXT:!listgames:#clannies: {
  56. msg $chan 12,1-=0,1List of Teams Looking for Games $+: 2,1=-
  57. var %i = 1
  58. while (%i <= $ini(matches.ini,0) ) {
  59. msg $chan Team $+ : $+ $+ 4 $readini(matches.ini,$ini(matches.ini,%i),clan)  $+ $+ Time $+ : $+ $+ 4 $readini(matches.ini,$ini(matches.ini,%i),time)  Game $+ :4 $readini(matches.ini,$ini(matches.ini,%i),game)  $+ $+ Server $+ : $+ 4 $readini(matches.ini,$ini(matches.ini,%i),server)  $+ $+ Contact $+ : $+ 4 $readini(matches.ini,$ini(matches.ini,%i),admin)
  60. inc %i
  61. }
  62. }
  63.  
  64.  
  65. on 1:TEXT:!foundgame:#clannies:{
  66. if ($readini(matches.ini,$nick,admin)) {
  67. remini matches.ini $nick
  68. notice $nick Your game has been removed from the Bot.
  69. }
  70. else {
  71. notice $nick You don't have a game on the bot.
  72. }
  73. }
  74.  
  75.  
  76. on 1:TEXT:!resetgames:#clannies: {
  77. if ($nick isop $chan) {
  78. remove matches.ini
  79. msg $chan Matches.ini Has been Refreshed
  80. }
  81. }
  82.  
  83. on 1:TEXT:!kick*:?: {
  84. if ( $nick isop #clannies) {
  85. /kick #clannies $2 $3- : $nick
  86. }
  87. }
  88.  
  89.  
  90. on 1:TEXT:!sub*:#:{
  91. if ($readini(subs.ini,$nick,admin)) {
  92. notice $nick You are already listed as a Sub.
  93. }
  94. elseif ($2) && ($3) && ($4) {
  95. writeini subs.ini $nick player $nick
  96. writeini subs.ini $nick Game $2
  97. writeini subs.ini $nick timestart $3
  98. writeini subs.ini $nick timeend $4
  99. notice $nick You have been listed as a sub. Please use !remsub once you are subbing for a team!
  100. }
  101. else {
  102. notice $nick You entered an Invalid Syntax. Correct Syntax !sub (Game) (TimeStart) (TimeEnd)
  103. }
  104. }
  105.  
  106. on 1:TEXT:!listsubs:#clannies: {
  107. msg $chan 12,1-=0,1List of Potential Subs $+: 2,1=-
  108.  
  109. var %i = 1
  110. while (%i <= $ini(subs.ini,0) ) {
  111. msg $chan Player $+ : 4 $+ $readini(subs.ini,$ini(subs.ini,%i),player)  $+ Game $+ : 4 $+ $readini(subs.ini,$ini(subs.ini,%i),Game)  $+ Time $+ : $readini(subs.ini,$ini(subs.ini,%i),timestart) $+ - $+ $readini(subs.ini,$ini(subs.ini,%i),timeend)
  112.  
  113. inc %i
  114. }
  115. }
  116.  
  117.  
  118. on 1:TEXT:!remsub:#clannies:{
  119. if ($readini(subs.ini,$nick,player)) {
  120. remini subs.ini $nick
  121. notice $nick You have been removed from the Subs.
  122. }
  123. else {
  124. notice $nick You are not currently listed as a Sub.
  125. }
  126. }
  127.  
  128.  
  129. on 1:TEXT:!resetsubs:#clannies: {
  130. if ($nick isop $chan) {
  131. remove subs.ini
  132. msg $chan Subs.ini Has Been Refreshed.
  133. }
  134. }
  135.  
  136. on 1:TEXT:!say*:?: {
  137. if ( $nick isop $chan )
  138. {
  139. msg #clannies $2-
  140. }
  141. }
  142.  
  143. on 1:TEXT: Where can I find porn?:#clannies: {
  144. msg $chan You should try pornhub.com or redtube.com, $nick
  145. }
  146.  
  147. on 1:TEXT: What game*:#clannies: {
  148. msg $chan This bot is used for all games , $nick
  149. }
  150.  
  151. on 1:PART:#clannies: {
  152. if ($readini(subs.ini,$nick,player)) {
  153. remini subs.ini $nick
  154. notice $nick You have been removed from the Subs.
  155. }
  156. }
Add Comment
Please, Sign In to add comment