Skip to content

@importpreview

Permission: ADMIN

Preview a BogusTrivia .ques format question file before importing. Parses the file, validates questions, detects duplicates (85% fuzzy threshold), and shows a summary. Takes one file; wildcards are not expanded (use tools/import_questions.py for several files). Optional default_category applies to questions without an explicit category.

The file must be inside Limnoria's data directory (supybot.directories.data, by default data/ next to the bot's config file) or a subdirectory of it. Paths outside it, including symlinks that point outside it, are refused with Import path is outside allowed directory. Give an absolute path; a relative path is resolved against the bot's working directory. See Where to Put Import Files.

Syntax

@importpreview <file_path> <question_set> [default_category]

Example

@importpreview /home/bot/limnoria/data/questions.ques General
@importpreview /home/bot/limnoria/data/imports/myset.ques MySet Uncategorized