Code Monkey home page Code Monkey logo

tgmb-beta's People

Contributors

ksssomesh12 avatar sssomeshhh avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

tgmb-beta's Issues

How to deploy? and THANKS

HI;
i hope its ready to deploy now, so will u plz add some instructions regarding how to deploy it and what features it has.
Thanks for bringing this up.

json.decoder.JSONDecodeError: Invalid control character at: line 5 column 55 (char 179)

Heroku suspends the app right after pushing
Setting stack to container... done You will need to redeploy ⬢ gglolapp for the change to take effect. Run git push heroku main to trigger a new build on ⬢ gglolapp. $ git push heroku master remote: ! The application "gglolapp" was suspended. If you believe this is an error please contact support. fatal: unable to access 'https://git.heroku.com/gglolapp.git/': The requested URL returned error: 403

What is this issue?
Generated 'config.template.json' ! Do You Want to Use Dynamic Config? n Do You Want to Update Config? y Do You Want to Use User Account Auth? n Traceback (most recent call last): File "setup.py", line 171, in <module> configVars = {**configTemplateVars, **jsonFileLoad(configJsonFile)} File "setup.py", line 60, in jsonFileLoad return json.loads(open(jsonFileName, 'rt', encoding='utf-8').read()) File "/usr/lib/python3.8/json/__init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid control character at: line 5 column 55 (char 179)

Error Deploying

Getting this build error on Heroku:

-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Python app detected
-----> No Python version was specified. Using the buildpack default: python-3.9.6
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
cp: cannot stat '/tmp/build_c317441a/requirements.txt': No such file or directory
-----> Installing python-3.9.6
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
Obtaining file:///tmp/build_c317441a (from -r /tmp/build_c317441a/requirements.txt (line 1))
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/build_c317441a/setup.py'"'"'; file='"'"'/tmp/build_c317441a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-8rpf8_5h
cwd: /tmp/build_c317441a/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/build_c317441a/setup.py", line 1, in
import googleapiclient.discovery
ModuleNotFoundError: No module named 'googleapiclient'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed

Bot replying to every command used in group.

On using any command other than bots's specific command it will reply with this :

screen

Here are some logs :
2021-08-18T06:33:41.518728+00:00 app[worker.1]: 2021-08-18 12:03:41.518 | DEBUG | telegram.ext.utils.webhookhandler:post:172 - Webhook triggered 2021-08-18T06:33:41.519013+00:00 app[worker.1]: 2021-08-18 12:03:41.518 | DEBUG | telegram.ext.utils.webhookhandler:post:177 - Webhook received data: {"update_id":572062085, 2021-08-18T06:33:41.519015+00:00 app[worker.1]: "message":{"message_id":82253,"from":{"id":1091602920,"is_bot":false,"first_name":"Chaitanya","username":"oneironaut2209","language_code":"en"},"chat":{"id":-1001372805029,"title":"Black Listed Bois","type":"supergroup"},"date":1629268421,"text":"/anyotherbotcommand","entities":[{"offset":0,"length":19,"type":"bot_command"}]}} 2021-08-18T06:33:41.519325+00:00 app[worker.1]: 2021-08-18 12:03:41.519 | DEBUG | telegram.ext.utils.webhookhandler:post:180 - Received Update with ID 572062085 on Webhook 2021-08-18T06:33:41.519821+00:00 app[worker.1]: 2021-08-18 12:03:41.519 | DEBUG | telegram.ext.dispatcher:start:376 - Processing Update: {'update_id': 572062085, 'message': {'message_id': 82253, 'date': 1629268421, 'chat': {'id': -1001372805029, 'type': 'supergroup', 'title': 'Black Listed Bois'}, 'text': '/anyotherbotcommand', 'entities': [{'type': 'bot_command', 'offset': 0, 'length': 19}], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1091602920, 'first_name': 'Chaitanya', 'is_bot': False, 'username': 'oneironaut2209', 'language_code': 'en'}}} 2021-08-18T06:33:41.520252+00:00 app[worker.1]: 2021-08-18 12:03:41.520 | DEBUG | telegram.ext.conversationhandler:check_update:534 - selecting conversation (-1001372805029, 1091602920) with state None 2021-08-18T06:33:41.520613+00:00 app[worker.1]: 2021-08-18 12:03:41.520 | DEBUG | telegram.ext.conversationhandler:check_update:534 - selecting conversation (-1001372805029, 1091602920) with state None 2021-08-18T06:33:41.521051+00:00 app[worker.1]: 2021-08-18 12:03:41.520 | DEBUG | telegram.bot:decorator:126 - Entering: send_message 2021-08-18T06:33:41.818702+00:00 app[worker.1]: 2021-08-18 12:03:41.818 | DEBUG | telegram.bot:decorator:128 - {'message_id': 82254, 'date': 1629268421, 'chat': {'id': -1001372805029, 'type': 'supergroup', 'title': 'Black Listed Bois'}, 'reply_to_message': {'message_id': 82253, 'date': 1629268421, 'chat': {'id': -1001372805029, 'type': 'supergroup', 'title': 'Black Listed Bois'}, 'text': '/anyotherbotcommand', 'entities': [{'type': 'bot_command', 'offset': 0, 'length': 19}], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1091602920, 'first_name': 'Chaitanya', 'is_bot': False, 'username': 'oneironaut2209', 'language_code': 'en'}}, 'text': 'Sorry, the command is not registered with a CommandHandler !', 'entities': [], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1737922429, 'first_name': 'Morningstar bot', 'is_bot': True, 'username': 'heroku69bot'}} 2021-08-18T06:33:41.818938+00:00 app[worker.1]: 2021-08-18 12:03:41.818 | DEBUG | telegram.bot:decorator:129 - Exiting: send_message 2021-08-18T06:44:33.405219+00:00 app[worker.1]: 2021-08-18 12:14:33.405 | DEBUG | telegram.ext.utils.webhookhandler:post:172 - Webhook triggered 2021-08-18T06:44:33.405403+00:00 app[worker.1]: 2021-08-18 12:14:33.405 | DEBUG | telegram.ext.utils.webhookhandler:post:177 - Webhook received data: {"update_id":572062086, 2021-08-18T06:44:33.405404+00:00 app[worker.1]: "message":{"message_id":82255,"from":{"id":1091602920,"is_bot":false,"first_name":"Chaitanya","username":"oneironaut2209","language_code":"en"},"chat":{"id":-1001372805029,"title":"Black Listed Bois","type":"supergroup"},"date":1629269073,"text":"/anyotherbotcommand","entities":[{"offset":0,"length":19,"type":"bot_command"}]}} 2021-08-18T06:44:33.405708+00:00 app[worker.1]: 2021-08-18 12:14:33.405 | DEBUG | telegram.ext.utils.webhookhandler:post:180 - Received Update with ID 572062086 on Webhook 2021-08-18T06:44:33.406230+00:00 app[worker.1]: 2021-08-18 12:14:33.406 | DEBUG | telegram.ext.dispatcher:start:376 - Processing Update: {'update_id': 572062086, 'message': {'message_id': 82255, 'date': 1629269073, 'chat': {'id': -1001372805029, 'type': 'supergroup', 'title': 'Black Listed Bois'}, 'text': '/anyotherbotcommand', 'entities': [{'type': 'bot_command', 'offset': 0, 'length': 19}], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1091602920, 'first_name': 'Chaitanya', 'is_bot': False, 'username': 'oneironaut2209', 'language_code': 'en'}}} 2021-08-18T06:44:33.406637+00:00 app[worker.1]: 2021-08-18 12:14:33.406 | DEBUG | telegram.ext.conversationhandler:check_update:534 - selecting conversation (-1001372805029, 1091602920) with state None 2021-08-18T06:44:33.406989+00:00 app[worker.1]: 2021-08-18 12:14:33.406 | DEBUG | telegram.ext.conversationhandler:check_update:534 - selecting conversation (-1001372805029, 1091602920) with state None 2021-08-18T06:44:33.407492+00:00 app[worker.1]: 2021-08-18 12:14:33.407 | DEBUG | telegram.bot:decorator:126 - Entering: send_message 2021-08-18T06:44:33.752672+00:00 app[worker.1]: 2021-08-18 12:14:33.752 | DEBUG | telegram.bot:decorator:128 - {'message_id': 82256, 'date': 1629269073, 'chat': {'id': -1001372805029, 'type': 'supergroup', 'title': 'Black Listed Bois'}, 'reply_to_message': {'message_id': 82255, 'date': 1629269073, 'chat': {'id': -1001372805029, 'type': 'supergroup', 'title': 'Black Listed Bois'}, 'text': '/anyotherbotcommand', 'entities': [{'type': 'bot_command', 'offset': 0, 'length': 19}], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1091602920, 'first_name': 'Chaitanya', 'is_bot': False, 'username': 'oneironaut2209', 'language_code': 'en'}}, 'text': 'Sorry, the command is not registered with a CommandHandler !', 'entities': [], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1737922429, 'first_name': 'Morningstar bot', 'is_bot': True, 'username': 'heroku69bot'}} 2021-08-18T06:44:33.752865+00:00 app[worker.1]: 2021-08-18 12:14:33.752 | DEBUG | telegram.bot:decorator:129 - Exiting: send_message

Error with setup.py

I tried to deply from deploy folder and also installed reqiurements.txt with pip3. I am getting this error while running setup.py :

image

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.