Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias gadd {
- writeini GameSchedule.ini $1 $2 $3
- echo $active You added a game for $1 $2 at $3 $+ .
- }
- alias nextgame {
- if (!$1 && !$2) || ($3 != $null) {
- echo $active Please specify month and date, month in short form (Oct, Nov, etc.)
- }
- else {
- set %month $readini(Date.ini,month,$1)
- set %date $2
- datecheck
- if (%date == 31 && !$readini(GameSchedule.ini,%month,%date)) {
- inc %month
- set %date 1
- $iif(!$readini(GameSchedule.ini,%month,%date),tellgame,datecheck)
- }
- }
- }
- alias datecheck {
- while (!$readini(GameSchedule.ini,%month,%date) && %date < 31) {
- inc %date
- }
- }
- alias tellgame {
- echo $active Your next game is on $readini(Date.ini,numbers,%month) %date at $readini(GameSchedule.ini,%month,%date) $+ .
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement