npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tvz-rezervator-bot

v1.0.2

Published

Bot za rezervaciju termina lab. vježbi na moj.tvz.hr

Downloads

3

Readme

Rezervator bot za moj.tvz.hr

Bot za rezervaciju termina lab. vježbi na moj.tvz.hr

Projekt je neovisan i ne asocira se s TVZ-om

Sve što botu treba su informacije o terminu i on će obaviti prijavu. Bot korisiti Telegram za komunikaciju. Nakon uspješne rezervacije bot će poslati poruku

Instalacija

Potrebo je samostalno hostati bota jer botu trebaju senzitvne informacije poput lozinke i emaila

Potrebni alati:

  • Node.js v16+
  • npm/yarn/pnpm
pnpm -g i tvz-rezervator-bot # ili
npm -g i tvz-rezervator-bot # ili
yarn global add tvz-rezervator-bot

Kreiranje Telegram bota

Tutorial za kreiranje bota

Env varijable

Lista varijabla koje su potrebne za rad bota:

  • TVZ_EMAIL - @tvz.hr email
  • TVZ_PASSWORD - lozinka
  • TG_SECRET - secret koji se dobije kreacijom bota

Varijable TVZ_EMAIL i TVZ_PASSWORD jedno se koriste za login na moj.tvz.hr, spremljene su na disk, te enkriptirane (u svrhu pomućivanja)

Postavljanje varijabla

rez-bot set TVZ_EMAIL [email protected]
rez-bot set TVZ_PASSWORD moj_pass
rez-bot set TG_SECRET ovo_je_ta_tajna

Pokretanje

rez-bot

Nakon pokretanja bot je spreman za korištenje. U slučaju greške pri radu, bot će se automatski restartati

Korištenje

Najprije treba "zaključati" bota

/lock

Dodavanje rezervacije

Bot će sam pronaći sve termine i skupine na danoj stranici kolegija

/schedule <link> # alias s

Također je moguće ručno dodati rezervaciju

/schedule <link> <text skupine> <text termina> <vrijeme>

Primjer

/schedule https://moj.tvz.hr/studijrac/predmet/123456 "​2​2./​2​3." "SRIJEDA 10:00" 17:35-7.2.2023

Warning Tekst u zagradama mora odgovarati tekstu na stranici!

Kako odabrati dobar <text skupine> i <text termina>

Bilo bi dobro da odabrani tekst ne sadrži promjenjive informacije poput broja grupa ili maks. broja studenata

Za danu skupinu primjer dobrog <text skupine> je Laboratorijske vježbe 22./23.

example skupina

Za dani termin primjer dobrog <text termina> je ČETVRTAK: 12:30 - 14:00 (MS LAB)

example termin

Brisanje rezervacije

/delete <id> # alias /d

Za brisanje svih

/delete *

Lisanje rezervacija

/list # alias /ls

Bilo bi dobro imati