Dota 2 Wiki
Advertisement

On every page under Category:Tournaments, matches are listed using Template:Matchbox under this form

{{matchbox
| date         = {{Start date|2012|6|22|df=y}} 
| time         = 16:00 <!-- I'LL ADD THIS EVENTUALLY -->
| team1        = [[Evil Geniuses|EG]] {{Flag|United States}}
| score        = 
| team2        = {{Flag|Sweden}} [[Team Infused|Infs]]
| stadium      =
}}

The idea of the bot is to search for matches today. For example, today is the 22th of June, so the bot searches for matchboxes with {{Start date|2012|6|22|df=y}} in it's "date" variable. The bot then will extract the contents of "team 1" and "team 2", and update a certain table on the main page with it. If possible, extract the content under "time" and get it to subtract from the current time so that it displays "2 hours and 29 minutes left" or something. When the time is reached, change the data under that column to "LIVE" and when a score is inputted under the "score" variable in its respective matchboxes, the score is listed on the main page too.

Advertisement