Giter Club home page Giter Club logo

weechat-log-to-html's Introduction

weechat-log-to-html

Ongoing Development/PRs etc.

For PRs/Issues et please see the project's main repository at: hg.sr.ht~anelki/weechat-log-html


A script to turn Weechat logs into nicely formatted HTML. Should work both with the contents of the .weechat/logs directory and the output of bufsave.py.

Compile

You can use any Haskell compiler to compile this, eg. ghc.

Usage

./weechat-log-to-html < somelog.weechatlog > somelog.html

Features

This script generates a clean HTML file from a Weechat log file.

v1.3

  • further HTML cleanup, somewhat improved styling and tweaks to the color palette.

v1.2

  • edited the way HTML <meta> tags are written

v1.1

  • now inserts log metadata html ("title", "players", etc.) so you only need to edit the values in each field.
  • minor fixes here and there

v1.0

  • made html output responsive for mobile devices
  • edits to nick colors

Full commit log can be found on hg.sr.ht

To-do

  • use Haskell text instead of linked lists of characters
  • provide a way to use logs from rooms that are bridged, eg., via Matterbridge

Matterbridge support is important because as logs will just show up as the bridge user. In this example, the bridge user's nick is 'matterbridge:'

2021-08-05 08:33:28     matterbridge    <xmpp user> I love XMPP and selfhosting is easy
2021-08-05 08:37:41     matterbridge    <matrix user> nah, Matrix is so secure and flawless
2021-08-05 08:41:04     IRC User	maybe i'm just oldschool, but IRC is still where it's at!

As it is now, this tool will attribute all of the bridged users as a single user, making a log harder to grok. Patches to fix this would be welcome.

License

See LICENSE.txt

weechat-log-to-html's People

Contributors

nguyentito avatar akierig avatar tobast avatar

Watchers

James Cloos avatar

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.