Git Product home page Git Product logo

holysee's Introduction

๐Ÿฆ€ Hello there! ๐Ÿฆ€

I am Bigo, italian living in London ๐Ÿ‡ฌ๐Ÿ‡ง!

๐Ÿšง I enjoy building things with ...

Rust Python GoLang

๐Ÿ”ญ Iโ€™m currently working on ...

๐Ÿ’ป Writing code ...

I maintain a pretty complex and bloated Neovim IDE configuration that makes my editor as powerful as IntelliJ or Vscode!

holysee's People

Contributors

crisidev avatar uovobw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

holysee's Issues

irc reconnection is not handled correctly

if the bot gets disconnected, via ping timeout for example, it will not handle reconnection on the irc side automatically, instead the irc receiver (and sender) threads will panic with

thread '<unnamed>' panicked at 'The connection timed out due to no ping response.', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/irc-0.12.5/....

i think this is a different bug from the netsplit one as in this case the core.run() call panics and the thread must be restarted anew

Avoid flooding when there is more than one title

Please avoid this:

https://www.economist.com/blogs/johnson/2011/03/italian_worldviews                                                                                                                                    
18:53         -- โ”‚ Notice(tapirigram): Dietrologia - Italian worldviews                                                                                                                                                        
18:53         -- โ”‚ Notice(tapirigram): the economist                                                                                                                                                                           
18:53         -- โ”‚ Notice(tapirigram): down icon                                                                                                                                                                               
18:53         -- โ”‚ Notice(tapirigram): down icon                                                                                                                                                                               
18:53         -- โ”‚ Notice(tapirigram): user icon                                                                                                                                                                               
18:53         -- โ”‚ Notice(tapirigram): down icon                                                                                                                                                                               
18:53         -- โ”‚ Notice(tapirigram): magnifier icon                                                                                                                                                                          
18:53         -- โ”‚ Notice(tapirigram): hamburger icon                                                                                                                                                                          
18:53         -- โ”‚ Notice(tapirigram): close icon                                                                                                                                                                              
18:53         -- โ”‚ Notice(tapirigram): up icon                                                                                                                                                                                 
18:53         -- โ”‚ Notice(tapirigram): up icon                                                                                                                                                                                 
18:53         -- โ”‚ Notice(tapirigram): up icon                                                                                                                                                                                 
18:53         -- โ”‚ Notice(tapirigram): twitter icon                                                                                                                                                                            
18:53         -- โ”‚ Notice(tapirigram): facebook icon

netsplit is not handled correctly

the irc transport does not reconnect if there is a netsplit on the server, thus rendering the transport basically useless. investigating the log provides the type of message

Consider supporting NOTICE irc messages to relay to telegram

I am not sure if telegram supports this kind of things (from a rapid look at the doc it appears not), but at the moment we have the travis-ci bot logging in a test channel and writing the output of the build via a notice. it MIGHT be useful to have another configuration option, for example relay_notice, that only applies to irc (?) that, honouring the allow_receive directive, sends this kind of messages to the telegram channel as well.

UrlPreviewCommand does not honor allow_receive

A mesage sent with allow_receive on telegram set to false will nonetheless relay not the message, but the url preview on the other side, making it confusing and annoying

To reproduce:

  • configure the bot with allow_receive set to false for telegram
  • send a link on irc (with or without the !tg is irrelevant)
  • note the link preview getting written to telegram without the original link

Implement "rant" command

Implement a new command which disable the transport between IRC and Telegram.

!rant something

ironic use of ! breaks the line

if a user sends an ironic line, like

this bot is really !great, i love it

the message is sent to the other transport as

this bot is really, i love it

cause the !<token> is captured

Another ping-timeout-related panic on IRC

when the stream gets killed during negotiation of a new connection, we get a ping error like:

thread '' panicked at 'Stream was already obtained once, and cannot be reobtained.', /checkout/src/libcore/option.rs:839:4

and the stream is not restarted, blocking the process until restarted. ironically, this also loses data as the messages from telegram are read anyway but propagated to nowhere.

Fix LastSeenCommand when run in query

We need to divide LastSeen in 2 parts:

  1. A filter running on all messages and updating the database
  2. An actual command responding to !seen and using stop_processing = true

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.