Bot features #7

Merged
H4CK3R-01 merged 7 commits from bot-features into main 2022-03-17 15:29:16 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 2961bbb429 - Show all commits

View File

@ -169,6 +169,9 @@ def send_update(message):
with open(json_path) as json_file: with open(json_path) as json_file:
json_share_data = json.load(json_file) json_share_data = json.load(json_file)
int_share_count = int(json_share_data['share_count']) int_share_count = int(json_share_data['share_count'])
str_username = str(json_share_data['user'])
bot.send_message(chat_id=user_id, text=f'Hello {str_username}. Here is the update on your currently owned shares:')
for i in range(int_share_count): for i in range(int_share_count):

View File

@ -1,5 +1,5 @@
{ {
"user": "NormalParameter", "user": "FloKell",
"share_count": 2, "share_count": 2,
"shares": [ "shares": [
{ {