Comments (5)
Works fine for me. Docker or node? Does other configuration from your .env file get picked up?
Did you check the apprise docs for discord?
Run with DEBUG=1
to see the command used for apprise.
from free-games-claimer.
Running locally with node on Windows 11. Now that you mention it, some variables in the .env are honored, some are not. SHOW=0
, DEBUG=1
, and NOTIFY
seem to be ignored, while BROWSER_DIR
, PG_CLAIMDLC=1
, and username/password/otp entries are all properly utilized.
And before it's asked, there's no particular order that I can tell. BROWSER_DIR
is the first entry, DEBUG
the second, followed by usernames and passwords, then SHOW
.
I don't see anything in the appraise docs that would show any issues. I can attempt running the command with apprise directly tomorrow to ensure it works.
Edit: For the record, when running within docker NOTIFY
does indeed work when the environment variable is set.
from free-games-claimer.
Maybe it's some syntax problem with (see dotenv) or the variables are already in your environment (values from .env have the lowest priority).
You can post the contents and just replace the sensitive data.
from free-games-claimer.
You can also run node test/notify.js
to test with some dummy notifications.
from free-games-claimer.
I was finally able to sit down and work through this.
First issue, is that dotenv doesn't take single quotes, it takes double quotes. And double quotes only appear to be necessary if there is a hash (#
) symbol. This is obviously an issue on my part, but honestly may be a good idea to call out in the documentation for notifications.
Next issue is that node test/notify.js
fails even when this is corrected. The relevant part of the error is the syntax being passed to apprise: apprise discord://[snip]/[snip] -i html -b epic-games:<br>- <a href="https://gaming.amazon.com/home">Epistory - Typing Chronicles</a> (claimed)
This errors on execution. When you run it directly with apprise you get the following:
At line:1 char:136
+ ... [snip] -i html -b epic-games:<br>- <a href=" ...
+ ~
The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported
(For clarification, the error indicator is on the <
in <a
)
When you wrap the body (argument -b
) in single quotes, it no longer errors: apprise discord://[snip]/[snip] -i html -b 'epic-games:<br>- <a href="https://gaming.amazon.com/home">Epistory - Typing Chronicles</a> (claimed)'
However the resulting notification does not actually include the anchor, it is simply displayed as plain text:
Of note, I believe that last point has always been the case. I don't believe I have ever seen an anchor tag work on a discord notification with this project.
from free-games-claimer.
Related Issues (20)
- Enhancement: ditch noVNC for KASM? HOT 1
- GOG AND EG Don't work HOT 3
- GOG #menuUsername hidden with low width HOT 8
- set RECORD=1 error HOT 1
- epic-games login shows blank page HOT 3
- XBOX issue on login
- UE
- Disable proxy when starting Firefox HOT 2
- How to run container everyday? HOT 1
- Epic Games login - got captcha HOT 10
- Error when script clicks link HOT 5
- No chromium browser installed HOT 3
- elementHandle.screenshot: Element is not attached to the DOM HOT 2
- Target page, context or browser has been closed HOT 1
- prime-gaming failed: elementHandle.screenshot: Element is not attached to the DOM HOT 9
- Doesnt skip addons in the epic games store that require base game. HOT 1
- Enhancement: Claim games from IndieGala
- Woke up today with 80 emails from this docker container HOT 1
- epic: stuck at blank page HOT 6
- Ali-Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from free-games-claimer.