Giter Club home page Giter Club logo

torvi's Introduction

Tiedotustorvi

Project image

Tiedotustorvi is a tool created for active members of Blanko ry, to keep their hundreds of members up-to-date with announcements, event information and other happenings. The application sends announcements to Discord, Telegram and email lists - all of this via one click.

Prerequisites

Setup

  • npm install
  • composer install
  • copy secrets.example.php to secrets.php and fill credentials
  • Setup PHP and your favourite web server (such as Apache2 or Nginx) to your favourite environment, and configure document root to point at src directory.

Helper commands for development

SCSS build watcher can be started via gulp watch. Style sheets can be generated in production via gulp sass.

Styling

This project uses SCSS for generating style sheets. npm install does fetch handy tools (such as gulp and it's project-specific dependencies) for generating CSS files easily.

torvi's People

Contributors

fedupoikonen avatar jkarppinen avatar kiklas avatar mariefin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

torvi's Issues

Special characters should be escaped when sending to Telegram

Currently sending the characters <, > and & will fail due to the HTML parser thinking they are a part of a HTML tag in the Telegram sending function.

They should be escaped accordingly: "All <, > and & symbols that are not a part of a tag or an HTML entity must be replaced with the corresponding HTML entities (< with &lt;, > with &gt; and & with &amp;)."

See https://core.telegram.org/bots/api#html-style for more details.

An alternative would be switching to MarkdownV2 parse_mode.

Scheduled message sending

Currently messages are sent instantly to all selected platforms.
If the messages are send at night then people might ignore them along other night time spam notifications.
Scheduling messages to reasonable times (aka when people are awake) should be considered.

Cancelling schedules messages should also be implemented to prevent accidental messages or to make it possible to edit out spelling mistakes etc.

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.