Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. alias gadd {
  2. writeini GameSchedule.ini $1 $2 $3
  3. echo $active You added a game for $1 $2 at $3 $+ .
  4. }
  5. alias nextgame {
  6. if (!$1 && !$2) || ($3 != $null) {
  7. echo $active Please specify month and date, month in short form (Oct, Nov, etc.)
  8. }
  9. else {
  10. set %month $readini(Date.ini,month,$1)
  11. set %date $2
  12. datecheck
  13. if (%date == 31 && !$readini(GameSchedule.ini,%month,%date)) {
  14. inc %month
  15. set %date 1
  16. $iif(!$readini(GameSchedule.ini,%month,%date),tellgame,datecheck)
  17. }
  18. }
  19. }
  20.  
  21. alias datecheck {
  22. while (!$readini(GameSchedule.ini,%month,%date) && %date < 31) {
  23. inc %date
  24. }
  25. }
  26. alias tellgame {
  27. echo $active Your next game is on $readini(Date.ini,numbers,%month) %date at $readini(GameSchedule.ini,%month,%date) $+ .
  28. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement