Giter Site home page Giter Site logo

neosay's Introduction

donuts-are-good's followers donuts-are-good's stars donuts-are-good's visitors

๐ŸŽ‰ Neosay

Neosay is an easy CLI tool that allows you to send messages and code from files or stdin to Matrix.

๐Ÿ“ฅ Click the banner to download

image

Download a copy of Neosay for your system by clicking the big green banner above.

๐Ÿš€ Building It Yourself

To build Neosay, you'll need to clone the repository and build the binary:

git clone https://github.com/donuts-are-good/neosay.git
cd neosay
go build

๐Ÿ“ Configuration (Environment Variables)

You may want to use Neosay with environment variables instead of a config file.

echo "Hello, world!" | ./neosay

You can load in your configuration details as environment variables like this in your environment:

export MATRIX_HOMESERVER_URL="https://matrix.example.com"
export MATRIX_USER_ID="@yourusername:example.com"
export MATRIX_ACCESS_TOKEN="your_access_token"
export MATRIX_ROOM_ID="!yourroomid:example.com"

๐Ÿ“ Configuration (JSON)

Neosay can optionally use a JSON configuration file to store the Matrix homeserver URL, user ID, access token, and room ID. This makes it easy to switch between rooms.

Note: Be careful using this method, anybody can inmpersonate you with this information. It's best to make a different account for this.

Here's an example of the JSON configuration file:

{
  "homeserverURL": "https://matrix.example.com",
  "userID": "@yourusername:example.com",
  "accessToken": "your_access_token",
  "roomID": "!yourroomid:example.com"
}

๐ŸŒŸ Examples

Sending a simple message

echo "Hello, world!" | ./neosay config.json

Sending a multi-line message

cat yourfile.txt | ./neosay config.json

Sending a code block

echo "Hello, world!" | ./neosay -c config.json

Sending a multi-line code block

cat yourcodefile.py | ./neosay --code config.json

๐Ÿค– Neosay in the wild

Here are some other ways to use Neosay:

  • Share code snippets with your team in a Matrix room
  • Send logs or debugging information from a script
  • Share inspirational quotes or jokes
  • Send notifications from your CI/CD pipelines or monitoring tools

๐Ÿ“ก Contributing

I'll take help however you can get it to me, whether that be a pull request, a .patch file, a sticky note, smoke signals, bribes, you name it.

๐Ÿ–‡๏ธ License

neosay is licensed under the MIT license. Check out the LICENSE file for more info. If you dont get it don't worry about it.

neosay's People

Contributors

donuts-are-good avatar mpldr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

neosay's Issues

Add LICENSE file

From README.md:

neosay is licensed under the MIT license. Check out the LICENSE file for more info. If you dont get it don't worry about it.

It would be nice if the LICENSE file could be added. Makes it a bit easier to see the license at first glance.

Missing license file

In the readme you are stating that the code is licensed under the bsd license and say to take a look at the license file for more info but that file is missing.

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.