Skip to content

A handy bot for creating and managing polls in Matrix rooms.

License

Notifications You must be signed in to change notification settings

BennoCrafter/PollMatrixBot

Repository files navigation

Lunchy Logo

🍽️ Poll Matrixbot

A handy bot for creating and managing polls in Matrix rooms.

Stars Forks Open Issues Last Updated simplematrixbotlib


🧭 Overview

Poll Matrixbot (a.k.a. Lunchy) is your perfect Matrix bot for running polls with friends or teams — perfect for deciding lunch spots or anything else that needs a quick team decision.


✨ Features

  • 🗳️ Create and manage polls directly from your Matrix room
  • ➕ Add or remove items
  • 🚫 Opt out of polls when you’re not joining
  • 🔒 Close and reopen polls
  • 📋 Check poll status anytime
  • 🧰 Simple setup with Docker or Python

💬 Commands

Command Description Example
!lunchy <name> Start a new poll !lunchy Pizza Day
!add <quantity>x <item> Add an item to the poll !add 2x Pepperoni Pizza
!remove <quantity>x <item> Remove an item from the poll !remove 1x Garlic Bread
!status Show all items currently in the poll !status
!nothing Mark that you’re not joining the poll !nothing
!close Close the active poll !close
!reopen Reopen the most recently closed poll !reopen
!releasenotes View the bot’s latest release notes !releasenotes
!help Display all available commands !help

Installation

Prerequisites

  • A Matrix account (Sign up at Matrix.org)
  • Python 3.x

Using Docker Compose

  1. Clone the repository:

    git clone https://github.com/bennocrafter/pollmatrixbot.git
    cd PollMatrixBot
  2. Build the Docker image:

docker-compose build
  1. Start the bot in detached mode:
docker-compose up -d

Running without Docker

  1. Install required dependencies:
pip install -r requirements.txt
  1. Run the main script:
python main.py

Configuration

Create a .env file in the project's root directory with the following environment variables:

HOMESERVER=your-matrix-homeserver
USERNAME=your-matrix-username
PASSWORD=your-matrix-password
ACCESS_TOKEN=your-matrix-access-token

or have a look at .env.example

Use password or access token to authenticate

Configure other things in assets/config.yaml

About

A handy bot for creating and managing polls in Matrix rooms.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages