Coder Social home page Coder Social logo

weechat-scripts's Introduction

weechat-scripts

Scripts for WeeChat.

weechat-scripts's People

Contributors

aristeu avatar jamielinux avatar stfnm avatar tasmo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

weechat-scripts's Issues

pushover: Suppport for secure data

I'm not sure if this is a pushover issue or a more general Weechat API issue? I tried to store my pushover token and user ID in secure data, using the ${sec.data.foo} notation, but that comes in verbatim into pushover, instead of being replaced by the actual data.

pushover started giving HTML source of some page with errors.

19:33:24 [pushover] Error:  url:https://api.pushover.net/1/messages.json 0  
19:33:24 [pushover] Error:  url:https://www.notifymyandroid.com/publicapi/notify 0  
19:33:24 [pushover] Error:  url:https://www.notifymyandroid.com/publicapi/notify 0  
19:33:24 [pushover] Error:  url:https://www.notifymyandroid.com/publicapi/notify 0  
19:33:24 [pushover] Error:  url:https://www.notifymyandroid.com/publicapi/notify 0  
19:33:24 [pushover] Error:  url:https://www.notifymyandroid.com/publicapi/notify 0  
19:33:24 [pushover] Error:  url:https://www.notifymyandroid.com/publicapi/notify 0  
19:33:24 [pushover] Error:  url:https://www.notifymyandroid.com/publicapi/notify 0  
19:33:24 [pushover] Error:  url:https://api.pushover.net/1/messages.json 0 <!DOCTYPE html>
19:33:24 <html>
19:33:24 <head>
19:33:24   <title>Pushover: Simple Mobile Notifications</title>
19:33:24   <link rel="shortcut icon" href="https://pushover.net/favicon.ico" />
19:33:24   <meta name="viewport" content="width=device-width, initial-scale=1.0">
19:33:24   <link href="https://pushover.net/assets/application.css" media="all" rel="stylesheet" type="text/css" />
19:33:24   <script src="https://pushover.net/assets/application.js" type="text/javascript"></script>
19:33:24 </head>
19:33:24 <body>
19:33:24   <div id="whitey" class="">
19:33:24     <div class="navbar navbar-fixed-top">
19:33:24       <div class="navbar-inner">
19:33:24         <div class="container">
19:33:24           <a class="brand" href="https://pushover.net/" style="width: 83px; height: 18px;">
19:33:24             <img alt="Pushover" height="18" src="https://pushover.net/assets/writing-header.png" style="margin-bottom: -1px;" width="83" />
19:33:24           </a>     
19:33:24         </div>     
19:33:24       </div>       
19:33:24     </div>         
19:33:24                    
19:33:24     <div class="container" style="min-height: 400px;">
19:33:24   <div class="row">
19:33:24     <div class="span12">
19:33:24       <h2>Uh oh</h2>
19:33:24 
19:33:24       <p>
19:33:24   An error occured on our server while processing your request.  Please try
19:33:24   again later.
19:33:24       </p>
19:33:24     </div>
19:33:24   </div>
19:33:24 </div>
19:33:24 
19:33:24   </div>
19:33:24 
19:33:24   <div class="dark_footer">
19:33:24     <div class="container" style="padding: 2em;">
19:33:24 
19:33:24   </div>
19:33:24 
19:33:24   <div class="dark_footer">
19:33:24     <div class="container" style="padding: 2em;">
19:33:24 
19:33:24       <div class="row">
19:33:24         <div class="span6" id="trademark">
19:33:24           Pushover is a trademark and product of
19:33:24           <a href="http://superblock.net/">Superblock, LLC</a>.
19:33:24         </div>
19:33:24         <div class="span6" id="copyright">
19:33:24           Copyright &copy; 2012-2013 Superblock, LLC.  All rights reserved.
19:33:24         </div>
19:33:24       </div>
19:33:24 
19:33:24     </div>
19:33:24   </div>
19:33:24 </body>
19:33:24 </html>
19:33:24  
19:33:24 [pushover] Error:  url:https://api.pushover.net/1/messages.json 0 <!DOCTYPE html>
19:33:24 <html>
19:33:24 <head>
19:33:24   <title>Pushover: Simple Mobile Notifications</title>
19:33:24   <link rel="shortcut icon" href="https://pushover.net/favicon.ico" />
19:33:24   <meta name="viewport" content="width=device-width, initial-scale=1.0">
19:33:24   <link href="https://pushover.net/assets/application.css" media="all" rel="stylesheet" type="text/css" />
19:33:24   <script src="https://pushover.net/assets/application.js" type="text/javascript"></script>
19:33:24 </head>
19:33:24 <body>
19:33:24   <div id="whitey" class="">
19:33:24     <div class="navbar navbar-fixed-top">
19:33:24       <div class="navbar-inner">
19:33:24         <div class="container">
19:33:24           <a class="brand" href="https://pushover.net/" style="width: 83px; height: 18px;">
19:33:24             <img alt="Pushover" height="18" src="https://pushover.net/assets/writing-header.png" style="margin-bottom: -1px;" width="83" />
19:33:24           </a>
19:33:24         </div>
19:33:24       </div>
19:33:24     </div>
19:33:24 
19:33:24     <div class="container" style="min-height: 400px;">
19:33:24   <div class="row">
19:33:24     <div class="span12">
19:33:24       <h2>Uh oh</h2>
19:33:24 
19:33:24       <p>
19:33:24   An error occured on our server while processing your request.  Please try
19:33:24   again later.
19:33:24       </p>
19:33:24     </div>
19:33:24   </div>
19:33:24 </div>
19:33:24 
19:33:24   </div>
19:33:24 
19:33:24   <div class="dark_footer">
19:33:24     <div class="container" style="padding: 2em;">
19:33:24 
19:33:24       <div class="row">
19:33:24         <div class="span6" id="trademark">
19:33:24           Pushover is a trademark and product of
19:33:24           <a href="http://superblock.net/">Superblock, LLC</a>.
19:33:24         </div>
19:33:24         <div class="span6" id="copyright">
19:33:24           Copyright &copy; 2012-2013 Superblock, LLC.  All rights reserved.
19:33:24         </div>
19:33:24       </div>
19:33:24 
19:33:24     </div>
19:33:24   </div>
19:33:24 </body>
19:33:24 </html>
19:33:24  

This has happened for three times now, I think.

isgd.pl: Ignore any urls originating from my nick or the topic

Currently isgd.pl will shorten both other users urls as well as my own. This doesn't make a lot of sense as if I have access to the url then I am unlikely to need it shortened.
This also means is.gd's services are used unnecessarily.


Another issue are channel topics with urls. This usually isn't ever an issue as I don't join/part frequently but it is also another case of using a service unnecessarily for many urls, for example:
1
This isn't usually a problem now as the recently added length limit will prevent the vast majority of otherwise already short urls from being selected for shortening so please feel free to ignore this second part.

Please consider adding Pushbullet support back

I was wondering for a while how come Pushbullet notifications stopped working when I finally discovered that support for it was removed. Pushover requires a license purchase on every platform one would want to use it on last time I checked, which is greater long-term compared to Pushbullet's subscription service, but it doesn't change that Pushbullet is still free for the purposes of using it for notifications.

I have kept my Pushbullet configuration options in weechat since those weren't automatically removed in hopes that one day it can be reconsidered.

pushover.pl in Weechat script repository not working

Hi,

I'm using Weechat 1.0.1 with pushover.pl 1.4 installed through the Weechat script repository (/script install pushover.pl). Since February 21 2017 the script has stopped working. When using plugins.var.perl.pushover.verbose = 2 I get the following message:

[pushover] Error:
url:https://api.pushover.net/1/messages.json 0
{"message":"cannot be blank","errors":["message cannot be blank"],"status":0,"request":"77bb4803-4dc4-48e0-b25e-7abaae5f589c"}

Maybe this is fixed in the newer version of pushover.pl in this Github repository? If so, would you mind updating the version in the Weechat repository? https://weechat.org/scripts/source/pushover.pl.html/

Thank you!

Black list for private messages

Hi,

Thx for this very useful script. It could it be handy to have a black list for private messages with something like:

/set plugins.var.perl.pushover.blacklist "a-painful-colleague,another-painful-colleague"

No?

Sorry, I'm unable to implement that properly.
Regards.

isgd.pl: Use of uninitialized value $send in numeric eq

I've been noticing a bunch of

warning: Use of uninitialized value $send in numeric eq (==) at /home/kyrias/.config/weechat/perl/isgd.pl line 164.

as of late, on different lines. http://sprunge.us/YJjQ

Not sure when it started, have been seeing it rarely for a while, but at least with the latest version I'm getting it quite often.

isgd.pl: URL regex matches incorrectly

I've been noticing that any URL correctly (as per RFC recommendation) quoted with <url> angled brackets causes the match to incorrectly include the trailing > and the resulting is.gd link redirects me to a url with an escaped %3E (>) at the end of the url, invalidating it.

For example:

<http://msdn.microsoft.com/en-US/windows/desktop/aa366556(v=vs.85).aspx>
→
http://is.gd/XXXXX (msdn.microsoft.com)
→
http://msdn.microsoft.com/en-US/Message-Error.htm?aspxerrorpath=/en-us/library/windows/desktop/aa366556(v=vs.85).aspx%3E

isgd.pl: Shorten urls only if the url exceeds a chosen length

Not all urls are equal, some well behaved urls are short and work well.

Others (I'm looking at you google and github) can exceed the width of my screen, for these urls I would like isgd to shorten and ignore everything below a set limit

E.g. plugins.var.perl.isgd.length. If set to 50 isgd will not shorten any urls which do not exceed 50 characters in length.

Pushover postfields issue

Up until today pushover support was working fine for me, but it is now failing.

Currently in notify_pushover, postfields is being joined with a ;. Changing that to & resolves the problems.

my $hash = { "post"  => 1, "postfields" => join("&", @post) };

instead of:

my $hash = { "post"  => 1, "postfields" => join(";", @post) };

Also, as a side note, the version here in this repo is 2.0, where as what is at https://weechat.org/scripts/source/pushover.pl.html/ is 1.4

Pushover: please add an option to ignore NOTICEs

On the channels where I am in, NOTICEs are mainly used by bots as the RFC tells to use them and thus treated as less important than PRIVMSGs, and when my WeeChat reconnects to IRC, it will get multiple NOTICEs and with one notice per minute my Pushover account receives InfoServ NOTICE which isn't useful for me.


4.4.2 Notice

      Command: NOTICE
   Parameters: <nickname> <text>

   The NOTICE message is used similarly to PRIVMSG.  The difference
   between NOTICE and PRIVMSG is that automatic replies must never be
   sent in response to a NOTICE message.  This rule applies to servers
   too - they must not send any error reply back to the client on
   receipt of a notice.  The object of this rule is to avoid loops
   between a client automatically sending something in response to
   something it received.  This is typically used by automatons (clients
   with either an AI or other interactive program controlling their
   actions) which are always seen to be replying lest they end up in a
   loop with another automaton.

   See PRIVMSG for more details on replies and examples.

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.