From 29bc36f3f096ffe705762d6cca72486ad36ec3f8 Mon Sep 17 00:00:00 2001 From: mraniki Date: Thu, 20 Apr 2023 16:39:46 +0200 Subject: [PATCH] Fix upload_to_release flag in pyproject.toml and bot.py file. --- pyproject.toml | 2 +- src/bot.py | 19 +++++-------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6d7b56d83..35fc6f888 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ build-backend = "poetry.core.masonry.api" version_variable = ["pyproject.toml:version","src/bot.py:__version__"] branch = "main" upload_to_pypi = false -upload_to_release = true +upload_to_release = false build_command = false remove_dist = false diff --git a/src/bot.py b/src/bot.py index 9aee48a34..d88801104 100644 --- a/src/bot.py +++ b/src/bot.py @@ -1,23 +1,14 @@ -##=============== VERSION ============= +##========== TalkyTrader 🪙🗿 ======== -TTversion="🪙🗿 TT Beta 1.3.3" __version__ = "1.0.1" ##=============== import ============= -##sys import logging, sys, json, requests, asyncio - -##env -import os from config import settings - -#CEX import ccxt -#DEX from dxsp import DexSwap -#messaging platformw #import telegram from telegram.ext import Application, MessageHandler #import telethon @@ -301,7 +292,7 @@ async def handle_exception(e) -> None: #🦾BOT ACTIONS async def post_init(): - startup_message=f"Bot is online {version}" + startup_message=f"Bot is online {__version__}" logger.info(msg = f"{startup_message}") await notify(startup_message) @@ -318,7 +309,7 @@ async def help_command(): if settings.DISCORD_WEBHOOK_ID: helpcommand= helpcommand.replace("", "`") helpcommand= helpcommand.replace("", "`") - bot_menu_help = f"{version}\n{helpcommand}" + bot_menu_help = f"{__version__}\n{helpcommand}" return f"Environment: {defaultenv} Ping: {bot_ping}ms\nExchange: {ex_name} Sandbox: {ex_test_mode}\n{bot_menu_help}" async def account_balance_command(): @@ -418,12 +409,12 @@ async def shutdown_event(): @app.get("/") def root(): - return {f"Bot is online {version}"} + return {f"Bot is online {__version__}"} @app.get("/health") def health_check(): logger.info(msg="Healthcheck_Ping") - return {f"Bot is online {version}"} + return {f"Bot is online {__version__}"} #🙊TALKYTRADER if __name__ == '__main__':