Guest User

Untitled

a guest
Jan 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.86 KB | None | 0 0
  1. on !1:JOIN:#clannies:/notice $nick Welcome to Clannie IRC Channel. For a list of commands type !help
  2.  
  3. on 1:TEXT:!add*:#:{
  4.   if ($readini(matches.ini,$nick,admin)) {
  5.     notice $nick You already have a game on the bot | halt
  6.   }
  7.   else {
  8.     if ($3) {
  9.       if (!$timer(checkmatches)) { timercheckmatches 0 10 checkmatches }
  10.       writeini matches.ini $nick admin $nick
  11.       writeini matches.ini $nick clan $2
  12.       writeini matches.ini $nick time $3
  13.       notice $nick Your game has been added to the Bot.
  14.     }
  15.   }
  16. }
  17. alias checkmatches {
  18.   var %i = 1
  19.   while (%i <= $ini(matches.ini,0) ) {
  20.     if ($time(tt) == $remove($readini(matches.ini,$ini(matches.ini,%i),time),1,2,3,4,5,6,7,8,9,0)) {
  21.       if ($time(h) > $remove($readini(matches.ini,$ini(matches.ini,%i),time),am,pm)) {
  22.         notice $readini(matches.ini,$ini(matches.ini,%i),admin) Your game has expired.
  23.         remini matches.ini $ini(matches.ini,%i)
  24.       }
  25.  
  26.     }
  27.     inc %i
  28.   }
  29. }
  30. on 1:TEXT:!set*:#clannies:{
  31.   if ($nick isop $chan)  {
  32.     set $2 $3
  33.   }
  34. }
  35. on 1:TEXT:!help:#clannies:{
  36.   notice $nick Clannie Bot Made By Murkee
  37.   notice $nick Type !add (Clan) (Time [Add AM or PM])
  38.   notice $nick Type !listgames For a list of the clans looking for games!}
  39. }
  40.  
  41. on 1:TEXT:!listgames:#clannies: {
  42.   var %i = 1
  43.   while (%i <= $ini(matches.ini,0) ) {
  44.     msg $chan Team $readini(matches.ini,$ini(matches.ini,%i),clan) Wants to play at $readini(matches.ini,$ini(matches.ini,%i),time) $+ . Contact $readini(matches.ini,$ini(matches.ini,%i),admin)
  45.     inc %i
  46.   }
  47. }
  48.  
  49.  
  50. on 1:TEXT:!foundgame:#clannies:{
  51.   if ($readini(matches.ini,$nick,admin)) {
  52.     remini matches.ini $nick
  53.     notice $nick Your game has been removed from the Bot.
  54.   }
  55.   else {
  56.     notice $nick You don't have a game on the bot.
  57.   }
  58. }
  59.  
  60.  
  61. on 1:TEXT:!reset:#clannies: {
  62.   if ($nick isop $chan) {
  63.     remove matches.ini
  64.   }
  65. }
Add Comment
Please, Sign In to add comment