Coder Social home page Coder Social logo

dbrgn / xc-bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 191 KB

A chat bot that notifies you about new paragliding cross-country flights.

License: GNU Affero General Public License v3.0

Rust 98.23% Dockerfile 1.77%
paragliding xcontest threema chatbot threema-gateway

xc-bot's Introduction

XC Bot

CircleCI

A chat bot that notifies you about new paragliding cross-country flights published on XContest as part of the Swiss Cross Country Cup. Inspired by the Telegram bot XC Switzerland by Sergey Popov.

Supported messenger backends:

More may follow in the future.

Usage

Show the help screen:

help

Follow a pilot:

follow <username>

List pilots being followed:

list

Stop following a pilot:

stop <username>

Show the current bot version:

version

Architecture

The bot is written in Rust using a SQLite database for keeping track of the processed flights and flight subscriptions.

Docker Image

The repository includes a Dockerfile.

Important paths:

  • /etc/xc-bot/config.toml: Configuration file
  • /xc-bot/: Work directory (including database)

You'll probably want to mount both files into the container.

Note: This container runs as default user by default. If you use podman, you can run the container as non-root.

License

Licensed under the AGPL version 3 or later. See LICENSE.md file.

Copyright (C) 2021โ€“2024 Danilo Bargen

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

xc-bot's People

Contributors

dbrgn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xc-bot's Issues

Admin commands

For certain users (specified in the configfile), allow processing admin commands.

  • stats: Return the number of users, the number of subscriptions and the number of flights.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.