Skip to main content

An automated CLI tool using AI to solve Menti quiz questions.

Project description

Ruff Pyright Python Versions License

MentAI

An automated CLI tool using AI to solve Menti quiz questions.

Table of Contents

Installation

pip3 install mentai-cli

Usage

First Steps

After installing MentAI you need to run it once to create the config file. You can just provide a random 8-digit number:

➜ mentai 12345678
OpenAI API key is missing.
Please fix the error and restart the program.
You can find your settings file in: "/Users/<YourUser>/Library/Application Support/Mentai/config.toml". 
Opening it...

The config.toml will be opened in your default editor. Add an OpenAI API key and save it. All other values can be left as is. Here is a quick example of a config.toml:

[SOLVER]
OPEN_AI_API_KEY = "youropenapikeyhere"
OPEN_AI_MODEL = "gpt-5"

[QUIZ]
PLAYER_NAME = "MentiBot"
MINIMUM_DELAY_IN_MS = 500
MAXIMUM_DELAY_IN_MS = 3000
CONTEXT = "/Path/To/TextFile.txt"
  • SOLVER:
    • OPEN_AI_API_KEY: your OpenAI API key
    • OPEN_AI_MODEL: OpenAI model to use (you can find all models here)
  • QUIZ:
    • PLAYER_NAME: name to use if custom names are allowed (leave empty if you always want to use a random generated username)
    • MINIMUM_DELAY_IN_MS: shortest time to wait before submitting an answer
    • MAXIMUM_DELAY_IN_MS: longest time to wait before submitting an answer
    • CONTEXT: path to a plain text file with additional context to use when solving the quiz questions

DELAYS: This setup would generate a random delay from 500 to 3000 milliseconds for each answer submission.

Solving Quizzes

You can call mentai --help for an overview of all possible options:

➜ mentai --help
                                                                   
 Usage: mentai [OPTIONS] Participation Details                     
                                                                   
 An automated CLI tool using AI to solve Menti quiz questions.     
                                                                   
╭─ Arguments ─────────────────────────────────────────────────────╮
│ *    participation_d…      Participation      Participation     │
│                            Details            code / link of    │
│                                               the Menti quiz.   │
│                                               [required]        │
╰─────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────╮
│ --name             -n      Name               Name to use for   │
│                                               the player if     │
│                                               custom names are  │
│                                               allowed.          │
│ --additional-con…  -a      Addtional Context  Path to a text    │
│                                               file containing   │
│                                               additional        │
│                                               context to add to │
│                                               the prompt for    │
│                                               solving           │
│                                               questions.        │
│ --help                                        Show this message │
│                                               and exit.         │
╰─────────────────────────────────────────────────────────────────╯

The default use is mentai 12345678 with 12345678 being the participation code. You can also use the participation link to join a quiz: https://www.menti.com/abcdefghijkl.
All other flags can be configured using the config.toml. However, the value of the flags will be prioritized. This means if you have the name MentAI set in your config.toml but run mentai 12345678 -n John you will join the Menti quiz as John.

What this tool can do

This tool can handle all slides for "Quiz competitions" which is "Select Answer" (single choice) and "Type Answer" (free text question). Please note that "Select Answer" questions can have multiple correct answers. The participant however can only ever pick one.

What this tool can't do

This tool cannot handle any slides on Menti that are not of the category "Quiz competitions". This includes slides such as "Word Cloud", "Guess the Number" and "Multiple Choice" which does not give players a score either.
This tool does not guarantee you a perfect score.

Slide Types

When to use this tool

This tool can only be used for Menti presentation that use "Quiz competitions" slides.
As a student / participant, you can use it to automatically solve quizes.
As a teacher / presenter, you can use it to prepare the quiz to be unsolvable for AI.
Please make sure to use this tool in a fair manner.

Disclaimer

MentAI is in no way affilliated with, authorized, maintained or endorsed by Menti or any of its affiliates or subsidiaries. It is an independent and unofficial project. Use it at your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mentai_cli-0.1.0.post2.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mentai_cli-0.1.0.post2-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file mentai_cli-0.1.0.post2.tar.gz.

File metadata

  • Download URL: mentai_cli-0.1.0.post2.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for mentai_cli-0.1.0.post2.tar.gz
Algorithm Hash digest
SHA256 aab7e324fc45a384def6ce252539a4fb719bbce249405d9ac2b3f79ebcb01c6e
MD5 52e3bde460b6354455604bb922ff5d75
BLAKE2b-256 529c20b9601e2be780ca6ff242ad9d17163ee28b774fd0d8c5cd59c8cedd9bc1

See more details on using hashes here.

File details

Details for the file mentai_cli-0.1.0.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for mentai_cli-0.1.0.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3a0656808875b525508a0effcd2847287c6893b672de4740ed288c8ec277260
MD5 df36831a77828cd7992818ec4200565f
BLAKE2b-256 3bf01f64b4760ac96c1b889bfbb4a98b6418633d1bf0a22e92f7568352a416d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page