imply.py

Sign up for a GitHub account Sign in All Gists public qpfiffer / imply.py Created 2014-05-07 Gist Detail Revisions 1 Download Gist Clone this gist Embed this gist Link to this gist imply.py Python File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import weechat as wc import os , commands from datetime import date wc . register ( "imply" , "pepperouni" , "1.0" , "GPL3" , "Greentext it!" , "" , "" ) def imply ( data , buffer , args ): entry = args '''Multimply''' x = entry . rfind ( "#" ) if ( x !=- 1 ): imply ( data , buffer , entry [ 0 : x ]) entry = entry [ x + 1 : len ( entry )] '''Flags''' entry = entry . replace ( "%y" , str ( date . today () . year )) entry = entry . replace ( "%ay" , str ( date . today ...

Linked on 2014-05-08 00:52:07 | Similar Links