A handy bot for creating and managing polls in Matrix rooms.
- !create title: Create a new poll with the specified title.
- !close: Close the current poll.
- !remove : Remove the given item from the poll.
- !list: List all items currently in the poll.
- !add : Add a new item to the poll (if enabled in the configuration).
- !help: Display the help message with available commands.
- A Matrix account (Sign up at Matrix.org)
- Python 3.x
-
Clone the repository:
git clone https://github.com/bennocrafter/pollmatrixbot.git cd PollMatrixBot
-
(Recommended) Build the Docker image:
docker-compose build
- Start the bot in detached mode:
docker-compose up -d
- Install required dependencies:
pip install -r requirements.txt
- Run the main script:
python main.py
The Matrix Poll Bot supports the following commands:
- !create title: Creates a new poll with the specified title.
- !close: Closes the current poll and displays a status report.
- !remove : Removes the given item from the current poll (if enabled).
- !list: Lists all options currently available in the poll.
- !add : Adds a new option to the current poll (if enabled, configurable).
- !help: Displays the help message with available commands.
Create a .env
file in the project's root directory with the following environment variables:
USERNAME=your-matrix-username
PASSWORD=your-matrix-password
HOMESERVER=your-matrix-homeserver
Configure other things in assets/config.yaml