Skip to content

poljar/weechat-matrix-rs

Repository files navigation

build-test-release #weechat-matrix license

What is weechat-matrix?

Weechat is an extensible chat client.

Matrix is an open network for secure, decentralized communication.

weechat-matrix-rs is a Rust plugin for Weechat that lets Weechat communicate over the Matrix protocol. This is a Rust rewrite of the weechat-matrix Python script.

Project status

This project is a work in progress and doesn't do much yet. It can connect to a Matrix server and send messages.

If you are interested in helping out take a look at the issue tracker.

Build

After Rust is installed the plugin can be compiled with:

cargo build

On Linux this creates a libmatrix.so file in the target/debug/ folder, this file needs to be renamed to matrix.so and copied to your Weechat plugin directory. A plugin directory can be created in your $WEECHAT_HOME folder, by default .weechat/plugins/.

Alternatively, make install will build and install the plugin in your $WEECHAT_HOME as well.

Configuration

Configuration is completed primarily through the Weechat interface. First start Weechat, and then issue the following commands (replace the placeholders in brackets [] with your own details):

  1. Add a server (make sure the url includes the scheme e.g. 'https://matrix.org'):

    /matrix server add [server-name] [server-url]
    
  2. Set your username and password:

    /set matrix-rust.server.[server-name].username [username]
    /set matrix-rust.server.[server-name].password [password]
    
  3. Now try to connect:

    /matrix connect [server-name]
    
  4. Automatically connect to the server:

    /set matrix-rust.server.[server-name].autoconnect on
    
  5. If everything works, save the configuration:

    /save
    

Helpful Commands

/help matrix will print information about the /matrix command.

/matrix help [command] will print information for subcommands, such as /matrix help server

About

Rust rewrite of the python weechat-matrix script.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published