question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discord parser behaves weirdly on strings that begin with "Input #"

See original GitHub issue

echo 'Input #0,string string string \nsometext \nsomemoretext \nmoretext \nwaymoretext\nInput #1 \nanothertext' | apprise -t 'T E S T !' "discord://<name>@<hookID>/<token>/?avatar=off&thumbnail=off"

results in the following… it appears like it parses from one Input to another. E.g. “somemoretext” and “moretext” and “wamoretext” are all being discarded.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TildeSlashC0recommented, Feb 8, 2019

Finally found some time to give this a go … and it’s beautiful! Works as intended and can be merged for all I care 😄.

closing this now. thanks for the quick solution once again.

1reaction
caronccommented, Feb 6, 2019

I could have sworn i fixed this; the output you’re seeing will definitely be present in the master branch, but it shouldn’t be in this one. I can clearly see the markdown being set in your screenshot; but now that should only trigger if one adds ?format=markdown in the URL which i presume you’re not doing.

I’ll re-investigate this later and keep you posted.

That being said it would be nice if apprise would inform you of any errors thrown right away instead of the user having to rely on an -verbose switch 😃

This is great feedback. I personally always enjoyed silence from shell commands unless I ask for noise. I rarely throw errors in apprise because if a notification fails, i just move onto the next (but i’m sure to return a non-zero value in the response). But i do respect that when something doesn’t work, i need to go back and add -vvv to the output which probably isn’t the most intuitive approach.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I grab user input with my Discord bot in Python?
this works because it sends the string back starting with the 4th index place (indexes start at 0 so really [3] is starting...
Read more >
Frequently asked Questions | discord.js Guide
Discord validates and resolves user ids for users not on the server in user slash command options. ... Why do some emojis behave...
Read more >
Discord Developer Portal — Documentation — Channel
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Read more >
Documentation
Complete documentation for Svelte.
Read more >
6.1 Parser overview
6.1 Parser overview. Parsing single chars; Parsing strings directly; Parsing strings with the help of other parsers; Parsing numbers; Parsing whitespace ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found