From a012ef17d0c42e4081539fea0b2f74b6aecd5dc9 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 7 Oct 2025 23:41:22 -0700 Subject: [PATCH] Update survey.py --- modules/survey.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/survey.py b/modules/survey.py index 0992fa6..fc5a70e 100644 --- a/modules/survey.py +++ b/modules/survey.py @@ -1,5 +1,12 @@ # Survey Module for meshbot 2025 # Provides a survey function to collect responses and put into a CSV file +# this module reads survey definitions from JSON files in the data/surveys directory +# Each survey is defined in a separate JSON file named _survey.json +# Example survey file: example_survey.json +# Example survey response file: example_responses.csv +# Each survey consists of multiple questions, which can be multiple choice, integer, or text +# Users can start a survey, answer questions, and end the survey +# Module acts like a game locking DM until the survey is complete or ended import json import os # For file operations