Wiki Module

class Wiki(*args: Any, **kwargs: Any)

Bases: Cog

Module 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

Permissions

Author: Everyone (subject to channel/guild command restrictions)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

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

Permissions

Author: Everyone (subject to channel/guild command restrictions)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

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.

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async trivia_test(ctx, page_name: str)

Debug command to test trivia from a specific page already in the database. Usage: !!triviatest “A-RISE”

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

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.

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

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)

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async wiki_app(interaction: Interaction, query: str)

App command version of the wiki command. Returns the LoveLive! (fandom) Wiki page requested.

Permissions

Author: Everyone (subject to channel/guild command restrictions)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

Syntax:

/wiki
async wiki2_app(interaction: Interaction, query: str)

App command version of the wiki2 command. Returns the School Idol Wiki page requested.

Permissions

Author: Everyone (subject to channel/guild command restrictions)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

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.

Permissions

Author: Everyone (subject to channel/guild command restrictions)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

Syntax:

/wikitrivia