User:Rizbot
Rizbot | |
---|---|
Description | A bot that automatically updates Rizline pages with game data. |
Creator | User:TadeLn |
Source code | GitLab |
License | GNU General Public License v3.0 |
A bot created by User:TadeLn that automatically updates Rizline data on the wiki. Source code is available on GitLab.
Status
Last Login
Last login to Rizbot occurred at: 2025-01-10T18:35:41.947939211Z (using mediawiki-rizbot)
Functionality and scope
This bot is a work-in-progress. Currently not all functionality is implemented.
Input
The bot fetches JSON data from the following pages to generate blocks of wikitext:
Output
When run, the bot automatically updates:
- Lists of songs (using the
rizline_song_list
command), which are in the following pages: - Instances of RizlineSongInfoBox templates (using the
rizline_song_info_box
command), which are in all pages contained in Category:Rizline songs.
Planned functionality includes automatic updating and generation of:
- Song statistics - note counts, colors, etc.
- Asset tables for songs
Usage
The sections that the bot should edit are marked manually with special tags within HTML comments:
<!-- ## RIZBOT BEGIN section_type ## -->
, and<!-- ## RIZBOT END section_type ## -->
,
where section_type
is the type of the section that the bot should generate (for example, rizline_song_info_box
, or rizline_song_stats
). Additional space-separated arguments may be added after the section_type
in the BEGIN
marker.
The bot searches the wiki for these markers, and finds the appropriate function to use. It then replaces the text between the BEGIN
and END
markers with generated content. If the content is different from what it was originally, the bot makes an edit and saves the new version of the page.
Warning: It is important to remember that anything that is between the BEGIN
and END
markers will be overwritten. Manual changes to the content in-between the markers will be lost when the bot will be launched again.
Rizline Song Info Box (rizline_song_info_box)
To generate a song info box using Rizbot, use the following syntax:
<!-- ## RIZBOT BEGIN rizline_song_info_box RizlineSongID ## --> <!-- ## RIZBOT END rizline_song_info_box ## -->
RizlineSongID
- internal ID of the level for which to generate the info box.- for example:
PastelLines.RekuMochizuki.0
- for example:
You can see a use of this function in action on the page: Rizline:Pastel Lines.