Git Product home page Git Product logo

recent-messages2's People

Contributors

dependabot[bot] avatar randers00 avatar wissididom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

recent-messages2's Issues

Implement `?since=` request parameter

Add a ?since= query parameter to the /api/v2/recent-messages/:channel endpoint.

This new parameter should make it so only messages received after this timestamp are returned.

Should combine with the limit parameter, still.

This would be useful in a scenario where a client was briefly disconnected from Twitch chat and wishes to fill in the missed messages after a successful reconnect, without having to request messages based upon a guessed limit parameter or an unnecessarily highly-set limit parameter.

See Chatterino/chatterino2#4989

Website does not document that IRC tags are in non-deterministic order

The original message from twitch:

@badge-info=predictions/YES,subscriber/1;
badges=predictions/blue-1,subscriber/0,sub-gifter/10;
color=#FF0000;
display-name=NotoriousRobEG;
emotes=;
first-msg=0;
flags=;
id=32b02467-7424-47ae-9feb-c20ee9789f9d;
mod=0;
returning-chatter=0;
room-id=39763722;
subscriber=1;
tmi-sent-ts=1673747902193;
turbo=0;
user-id=192901116;
user-type= :[email protected] PRIVMSG #star0chris :Ain beat getting over it yesterday

Same line stored in RM2:

@mod=0;
color=#FF0000;
user-type=;
user-id=192901116;
first-msg=0;
badges=predictions/blue-1,subscriber/0,sub-gifter/10;
subscriber=1;
flags=;
emotes=;
tmi-sent-ts=1673747902193;
turbo=0;
room-id=39763722;
historical=1;
rm-received-ts=1673747902506;
badge-info=predictions/YES,
subscriber/1;
returning-chatter=0;
id=32b02467-7424-47ae-9feb-c20ee9789f9d;
display-name=NotoriousRobEG :[email protected] PRIVMSG #star0chris :Ain beat getting over it yesterday

Why everything is shuffled around?

image

vs

image

Every single line starts differently. Why?

Build fails on `master`

Building the master branch is currently not possible as the https://github.com/RAnders00/warp dependency cannot be fetched. cargo build fails with the following error:

error: failed to get `warp` as a dependency of package `recent-messages2 v0.1.0 (/home/leon/Projects/recent-messages2)`

Caused by:
  failed to load source for dependency `warp`

Caused by:
  Unable to update https://github.com/RAnders00/warp?branch=v030-backports#b6475f57

Caused by:
  failed to fetch into: /home/leon/.cargo/git/db/warp-e1f8cd67c8f62af6

Caused by:
  failed to authenticate when downloading repository

  * attempted to find username/password via git's `credential.helper` support, but failed

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  failed to acquire username/password from local configuration

Handle `CLEARMSG` messages while converting to `NOTICE`

Upon deleting a single message from a user (instead of timing them out, banning or clearing chat) Twitch returns target-msg-id tag containing ID of the single message that has been deleted in CLEARMSG message.

Example (I deleted my message in my own chat):
@login=zneix;room-id=;target-msg-id=91061af6-fad1-49a1-8b33-0c131cc297b6;tmi-sent-ts=1626452108291 :tmi.twitch.tv CLEARMSG #zneix :-tags

As spotted on https://recent-messages.robotty.de/api I see that ?clearchat_to_notice=true covers three msg-ids for different kinds of CLEARCHAT messages (rm-clearchat rm-timeout rm-permaban), but CLEARMSG isn't taken into account at all.
While I realize it is another message, other than CLEARCHAT, I think it's worth taking CLEARMSG messages into account while using ?clearchat_to_notice=true param or introducing something like ?clearmsg_to_notice=true.

I'd suggest adding handling for those kinds of messages and introducing of a new msg-id, e.g.: rm-msg or rm-msg-deleted.

Privacy setting: Ignore user in all channels

For example, if a user enables this, their messages are filtered out in all channels (not recorded, possibly replaced with a marker that a message was omitted here for privacy reasons).

403 Error: RemoteHostClosedError

Since couple days ago all my ips lost access to chat history api and I get "Error: RemoteHostClosedError" error
cant even open robotty.de anymore

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.