Wiki Module
- class Wiki(*args: Any, **kwargs: Any)
Bases:
CogModule to handle Fandom Wiki requests.
Attention
All commands assume minimum bot permissions: View Channel, Send Messages.
- async wiki(ctx, *, query)
Returns the LoveLive! (fandom) Wiki page requested.
Initially attempts the direct URL of the page, if the URL does not exist, it will do a general search for the page.
Syntax:
!!wiki <query>Example:
!!wiki Kotori !!wiki Aqours
- Returns:
Sends an embedded message with the LoveLive! Wiki page summary and image if available.
- Return type:
discord.Embed
- async wiki2(ctx, *, query)
Returns the School Idol Wiki page requested.
Provides a summary and image from the School Idol Wiki for the given search term.
Syntax:
!!wiki2 <query>Example:
!!wiki2 Kotori !!wiki2 Aqours
- async migrate_trivia(ctx)
One-time migration command to update the trivia table structure. This should only be run once when upgrading to the new trivia system.
- async trivia_test(ctx, page_name: str)
Debug command to test trivia from a specific page already in the database. Usage: !!triviatest “A-RISE”
- async clear_trivia(ctx)
Admin command to clear all trivia data from the database. Use this when you want to start fresh with updated formatting.
- async update_trivia(ctx, limit: int = None)
Admin command to scan the Love Live! wiki for pages with trivia sections and update the database. Only searches for new pages since last update.
Usage: !!updatetrivia - Check all pages !!updatetrivia 100 - Check only first 100 pages (for testing)
- async wiki_app(interaction: Interaction, query: str)
App command version of the wiki command. Returns the LoveLive! (fandom) Wiki page requested.
Syntax:
/wiki
- async wiki2_app(interaction: Interaction, query: str)
App command version of the wiki2 command. Returns the School Idol Wiki page requested.
Syntax:
/wiki2
- async wiki_trivia_app(interaction: Interaction)
App command for wiki trivia. Pulls a random trivia point from the database of pages with trivia content.
Syntax:
/wikitrivia