GithubHelp home page GithubHelp logo

firefly-iii-telegram-bot's Introduction

  • 👋 Hi, I’m Igor Tsupko, I've got more than 13 years of experience in web-development&devops
  • 🌱 I’ve started as developer and grown to engineering manager positions
  • 👀 Sometimes I work on pet projects made on PHP, Python & Kubernetes
  • 🔗 My Linkedin: https://www.linkedin.com/in/i-tsupko/
  • 📫 More info https://tsupko.tech/

firefly-iii-telegram-bot's People

Contributors

may-cat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

firefly-iii-telegram-bot's Issues

Trouble with subtraction, when bot asking for account's amount

Игорь Цупко, [26.09.18 08:32]
[In reply to MyTinyFFBot]
1010

MyTinyFFBot, [26.09.18 08:32]
You have spent -2524.

MyTinyFFBot, [26.09.18 08:32]
[In reply to Игорь Цупко]
Choose budget:

Игорь Цупко, [26.09.18 08:32]
-2524 Foods

Sometimes negative numbers appear.

took command doen't work

Sometimes I take money from my pocket. It's expected took 999 to start conversation on where did I get those money.

It doesn't work that way for the moment

CRITICAL: bot doesn't create transactions or reply

After #3 fixed bot doesn't create transactions or reply:

Игорь Цупко, [05.10.18 13:43]
[In reply to MyTinyFFBot]
5950

MyTinyFFBot, [05.10.18 13:44]
You have spent 2550.

MyTinyFFBot, [05.10.18 13:44]
[In reply to Игорь Цупко]
Choose budget:

Игорь Цупко, [05.10.18 13:44]
2550 Foods

Before #3 minus symbol was going to transaction's description. Now it doesn't and transaction can't run. Bot fails with exception. User doesn't understand what happened.

Should be fixed in a couple of days!

what should be on data.json?

I've

  1. git clone https://github.com/may-cat/firefly-iii-telegram-bot
  2. installed python3-pip from debian archive
  3. installed requirements
  4. got the API key from botfather@telegram
  5. put it in config.json
  6. and finally ran python3 bot.py

and what I got was...

$ python3 bot.py 
Traceback (most recent call last):
  File "bot.py", line 91, in <module>
    users=users.User()
  File "/home/revi/firefly-iii-telegram-bot/users.py", line 24, in __init__
    content_file = open(self._filename, 'r')
FileNotFoundError: [Errno 2] No such file or directory: 'data.json'

Checking for data file displayed...

$ ls | grep data
data.json.example
$

but I have no idea what should be the value for the data.json. I think this should be on how-to setup page. Can you document it? Thanks!


FYI:
python version/pip3 install -r requirements.txt

Python 3.7.3 (default, Apr 3 2019, 05:39:12) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
$ pip3 install -r requirements.txt
Requirement already satisfied: schedule==0.5.0 in /home/revi/.local/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (0.5.0)
Requirement already satisfied: oauth2==1.9.0.post1 in /home/revi/.local/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (1.9.0.post1)
Requirement already satisfied: requests==2.9.1 in /home/revi/.local/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (2.9.1)
Requirement already satisfied: pyTelegramBotAPI==3.6.6 in /home/revi/.local/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (3.6.6)
Requirement already satisfied: httplib2 in /usr/lib/python3/dist-packages (from oauth2==1.9.0.post1->-r requirements.txt (line 2)) (0.11.3)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pyTelegramBotAPI==3.6.6->-r requirements.txt (line 4)) (1.12.0)
$ ```

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.