Giter Club home page Giter Club logo

Comments (11)

Nackophilz avatar Nackophilz commented on May 19, 2024 2

So, there is no issue !
In fact, this Morning that work , he send notification only on new claim ^^

from free-games-claimer.

vogler avatar vogler commented on May 19, 2024

My telegram notifications work fine, config looks something like this: NOTIFY = 'tgram://1..2:A..s/%4..3/'.
The script is just calling apprise:

exec(`apprise ${cfg.notify} -i html -b '${html}'`, (error, stdout, stderr) => {

Using Docker? You can test apprise in the container with docker run --rm -it ghcr.io/vogler/free-games-claimer apprise 'tgram://..'.

from free-games-claimer.

vogler avatar vogler commented on May 19, 2024

https://github.com/caronc/apprise/wiki/Notify_telegram

Type /start now in the same dialog box to enable and instantiate your brand new bot.

I think I had to do this in the chat of the bot, not in the BotFather chat (like the description makes it sound).

from free-games-claimer.

Nackophilz avatar Nackophilz commented on May 19, 2024

When I try to use it with a python script I made with the apprise library, it works

But not in my docker . Do I have to call apprise in the variables?

I defined the NOTIFY variable, but there may be something else I didn't see?

from free-games-claimer.

vogler avatar vogler commented on May 19, 2024

Do I have to call apprise in the variables?

No, just set the services you want to use.

I defined the NOTIFY variable, but there may be something else I didn't see?

Did you set it correctly with -e NOTIFY=...? See #59.

from free-games-claimer.

Nackophilz avatar Nackophilz commented on May 19, 2024

Yes, not in this way because I am on UNRAID, but the command it sends is good

Do we have notification, when there is nothing to claim ? Or a notify test maybe ?

from free-games-claimer.

vogler avatar vogler commented on May 19, 2024

It sends a notification if you need to log in:

notify('epic-games: no longer signed in and not enough options set for automatic login.');

You could use a fresh volume (e.g. -v fgc2:/fgc/data) to try it if you're already logged in.

from free-games-claimer.

Nackophilz avatar Nackophilz commented on May 19, 2024

I see that in your screenshot on the presentation of the project, when you send hi, it answers you with a list of available games, and that are already taken, it would work for us? Or is there any other configuration to do?

from free-games-claimer.

vogler avatar vogler commented on May 19, 2024

when you send hi, it answers you with a list of available games

No, I just made that screenshot after I implemented notifications. They're one-way, the script can't react to the chat.
The format of the notifications is the same as on the screenshot, you just get them when you run the scripts.

You can check what was already claimed in data/*.json.

from free-games-claimer.

Nackophilz avatar Nackophilz commented on May 19, 2024

Oh okay got it !

That would be great to interact with it in that way haha ^^

Thank you for your help !

from free-games-claimer.

vogler avatar vogler commented on May 19, 2024

So what was the issue?
Maybe relevant for someone else on Unraid.

from free-games-claimer.

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.