Skip to content

Commit

Permalink
Merge pull request #252 from mraniki/dev
Browse files Browse the repository at this point in the history
Fix upload_to_release flag in pyproject.toml and bot.py file.
  • Loading branch information
mraniki authored Apr 20, 2023
2 parents 9ee92b9 + 29bc36f commit 5a6ae5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 5 additions & 14 deletions src/bot.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

Expand All @@ -318,7 +309,7 @@ async def help_command():
if settings.DISCORD_WEBHOOK_ID:
helpcommand= helpcommand.replace("<code>", "`")
helpcommand= helpcommand.replace("</code>", "`")
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():
Expand Down Expand Up @@ -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__':
Expand Down

0 comments on commit 5a6ae5f

Please sign in to comment.