[UtopMod] Price task add and destroy

First, I made radical changes in the project. I added 3 new libraries in the project. I did this to DB migrate and to check more. This was necessary to provide a better working environment while adding new features.

1.png

PR link: https://github.com/tolgahanuzun/Utopmod/pull/2

New Feature

I added a command that follows Steem-dollar exchange rate. This task warns you when the desired threshold value is reached.

Price task

This feature is meant to generate profits at high rates. It gives a signal according to a threshold value that you create.

  • You need to log in to the telegram bot. (/register username)

  • Make a threshold value. Like $ 5. (/price_task 5)

  • You can create only 1 task.

  • If you can delete the task. (/price_destroy)

2.png

  • The bot checks a market value every 10 minutes. If it is above the threshold, it will send you a message.

3.png

It's an idea I got from friends in Discord. I also think that it will be helpful in myself.

Code

  • New libraries have been added for database control. Provides more specific control.

4.png

5.png

6.png

  • Database control now exists. (migrate) Added new table. This tabloda has price tasks.

7.png

  • Two commands have been added to the telegram bot.

8.png

  • price_task : Price allows you to set a threshold value..

9.png

  • price_destroy: It will delete the task. (if like)

10.png

  • Every 10 minutes it scans all the tasks in the database. A message is sent if there is a desired situation.

11.png

Idea proposal

I'm looking for new suggestions for a telegram bot.



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now