Updates
Writing this plugin in python has been nothing but a joy. I've honestly never had an easier time just whipping out a script and adding features to it. I almost did it in perl, as weechat has a scripting interface for perl and I am more knowledgeable with perl, but I feel as if I would have had a harder time writing this in perl.
Recent changes to the script include:
- Now sends entire message body as a reply. (IMAP breaks the message body into multiple lines, and this was tripping up my script since I expected it all on one line)
- Does not send the user's signature or quoted messages if user defines strings that indicate a signature:
- User can define what strings are present that indicate a signature so that the entire message history is not sent.
i.e. Gmail on Android sends my signature asTony Lademan
so I add that to the array, but Gmail on the web sends my signature as
-- Tony Lademan
so I also add "--" to the array as well. Similarly, if you don't have a signature, but your client quotes messages with a string such as On DATE, NAME wrote:, then you can add wrote: or the name to your array. Commands are described in the comment body of the script. Multiple strings can be stored and will be used to determine when the script should stop reading the message body.
- Rudimentary help descriptions for the commands.
There's no change log in the file itself yet, not sure if I should do that or push this to its own git repo and make a separate CHANGELOG file that aggregates all of the relevant logs from my current "scripts" repo. Or just push my entire scripts repo somewhere public and not give a shit.
Link to the original post with links to the source.
Here it is
As promised, I'm releasing the code to my recent weechat script in a state that I am mildly comfortable with.
Pretty source
Download (My server tries to execute .py files, so you'll need to rename it)
In my haste, I do not have error checking for things like failed logins. Make sure your username and password are correct if you try to use this.
You will need to have the imaplib python module installed.
Seven in the morning
Well, thanksgiving break is over and now there's one week of classes and then midterms. Everything moves way too quickly. It feels like I never have enough time to prepare for anything.
If you're looking for a fun strategy game, let me recommend Greed Corp. It's a turn based game based around eliminating the other players. It's a tile based game, and that aspect reminds me heavily of physical board games like Carcassonne or Settlers of Catan. The build options are very limited in Greed Corp, though. You can build and destruct harvesters, build armories that let you build units (of which there is a single kind) and carriers, and turrets.
On the surface, it seems pretty simple, but one of the unique parts about this game is that the tiles have layers, and certain actions can strip these layers until that tile is destroyed. By the end of a specific match, the level will look nothing like what you started with. This can obviously really mess up transportation or harvesting plans, and so is a very valuable or detestable strategy.
I bought it for $2.50 since it is on sale until noon today central time over at http://steampowered.com. Normally it's only ten dollars, which is still a pretty good price for this game.
And now off to campus for thirteen hours.
Posted from WordPress for Android
There used to be a bike attached to this.
Posted from WordPress for Android
Super Stressed
Was gonna write a bunch of stuff here, but then I watched last night's Adventure Time and I've calmed down well enough to work on calming down more.
It was a really dark episode, definitely did not expect that. Totally awesome, though.
Posted from WordPress for Android
