Coder Social home page Coder Social logo

Support for carriage return \n about pingme HOT 6 CLOSED

kha7iq avatar kha7iq commented on August 28, 2024
Support for carriage return \n

from pingme.

Comments (6)

matbgn avatar matbgn commented on August 28, 2024 1

I will take care of it on August due to work load but it's on my todo list 😉

from pingme.

kha7iq avatar kha7iq commented on August 28, 2024

Hello @matbgn ,
The whole messages is treated as a string, i am afraid it won't be possible to achieve this when sending message.
You can use the --title flag when sending a message it will add '\n' between the tittle and message.

pingme teams -w TOKEN --title "Hi, I got a"  --msg  "carriage return. Nice!"

from pingme.

matbgn avatar matbgn commented on August 28, 2024

Again just thank you!

What would be the adaptations necessary to make it work? Could you point me any direction, so I could maybe invest some time to make a PR?

from pingme.

kha7iq avatar kha7iq commented on August 28, 2024

One way would be to analyze the content of message before sending it , check for specified carriage return using regex maybe.
Then recreate the string again, its a messy solution and too many things to consider when implementing it not sure if its worth spending time on it.
You can have a look here how its being added for title and message.

You are welcome, and i hope you find it useful.

from pingme.

matbgn avatar matbgn commented on August 28, 2024

Oh nice it sounds that it's in my possibilities 😄

But still a question, you pointed me out on service/mattermost/mattermost.go but my issue is on Microsoft Teams 🤔 and I see two other services implemented with it (Twilio and Mastodon). What should I take care of?

from pingme.

kha7iq avatar kha7iq commented on August 28, 2024

Mattermost was just an example , and because it not using notify you can see how message is constructed.
But teams and quite a few other services use notify, so this implementation has to be on notify side.

from pingme.

Related Issues (20)

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.