A trivia bot designed to work on the Meshtastic network. Pre-loaded with 150 trivia questions.
The python script 'meshtrivia.py' connects to your Meshtastic node, and allows other nodes to play a game of trivia with it, by sending PM/DMs to it.
Keeps track of a leaderboard.
The following instructions are for Linux. It does work on Windows with most of the below commands, except for running persistently (work that out yourself for Windows).
- cd ~
- git clone https://github.com/brad28b/meshtastic-trivia-bot.git
- cd meshtastic-trivia-bot
- pip3 install -r requirements.txt
First decide if you will connect to your Meshtastic node via serial or tcp, and then edit and save the meshtrivia.py file with your serial or tcp credentials.
Then give execute permissions to start_trivia_bot.sh:
- chmod +x start_trivia_bot.sh
To run the Triva Bot:
- python meshtrivia.py
To quit the trivia bot, use CTRL-C.
- ./start_trivia_bot.sh
The above command will restart the trivia bot if for some reason it crashes. To quit, use CTRL-C twice.