Giter Club home page Giter Club logo

gangsta's Introduction

You've found Sourav Johar

visitors

Stay at 127.0.0.1, wear a 255.255.255.0

Professionally, I write code for VMware R&D. I also code for myself, from automating some of my workflows to working on full-blown projects. You can find some interesting ones on Computer Vision, Deep Learning and Game AIs in my GitHub profile.

More about me:

  • I have a YouTube channel where I try my best to share knowledge on code
  • I have also authored a couple of courses on OpenCV: Packt Pub
  • I've helped digitise the workflow for several small businesses
  • Member @Preflet, a start-up which aims to bring one-click ML to the masses
  • Breaking Bad is the best TV show on the planet (go ahead, try to change my mind)

GitHub Stats

Top Langs

gangsta's People

Contributors

souravjohar avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gangsta's Issues

Bot is not replying

Hello bro,
I watched the tutorial and write the ditto code, even copied yours, but the bot is able to read the messages but not able to reply. Kindly help

Update the code Errors are there Please

13:24 ~ $ cd Jesse/
13:25 ~/Jesse $ python server.py
Traceback (most recent call last):
File "server.py", line 25, in
reply = make_reply(message)
File "server.py", line 10, in make_reply
reply = gizoogle.text(msg)
File "/home/Billy2021/Jesse/gizoogle.py", line 15, in text
giz_text = giz[39].strip("\r\n") # Hacky, but consistent.
IndexError: list index out of range
13:25 ~/Jesse $

KeyError at ['result'] in your code and 2 errors in mine (although I compared it to your code) and it's the same

Hello! My own code written according to the video throws 2 errors:


File "c:\Users\white\Documents\Python Mega Course\chatbot\config.cfg\server.py", line 3, in <module>
    bot=telegram_chatbot("config.cfg")
  File "c:\Users\white\Documents\Python Mega Course\chatbot\config.cfg\bot.py", line 8, in __init__
    self.token = self.read_token_from_config_file(config)
TypeError: read_token_from_config_file() takes 1 positional argument but 2 were given

And in your code downloaded from github there is also an error

File "c:\Users\white\Documents\Python Mega Course\chatbot\config.cfg\teachers\server.py", line 15, in <module>
    updates = updates["result"]
KeyError: 'result'

Please tell me what can possibly be wrong

KeyError: 'message'

Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.6/runpy.py", line 109, in get_module_details
import(pkg_name)
File "/home/ubuntu/gangsta/server.py", line 24, in
from
= item["message"]["from"]["id"]
KeyError: 'message'

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.