title: 'function' object has no attribute 'grab'
body: <p>I was searching how to make a basic bot on games and I found this video, however the video doesn't explain well and i've got a problem no one had.
  The video : <a href="https://www.youtube.com/watch?v=5Jwd69MRYwg" rel="nofollow noreferrer">https://www.youtube.com/watch?v=5Jwd69MRYwg</a>
  my problem :
  <a href="https://i.stack.imgur.com/QoaXJ.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <pre><code>
  from PIL import ImageGrab, ImageOps
  import pyautogui, time
  from numpy import *
  
  class cordinates():
      replaybtn = (480,375)
      dino = (378,245)
      obstacle = (300,395)
  
  def restartgame():
      pyautogui.click(cordinates.replaybtn)
  
  def pressspace():
      pyautogui.keyDown("space")
      time.sleep(0.05)
      print('jump')
      pyautogui.keyUp('space')
  
  def ImageGrab():
      box = (cordinates.dino[0]+78,cordinates.dino[1],cordinates.dino[0]+100,cordinates.dino[1]+30)
      image = ImageGrab.grab(box)
      grayimage = ImageOps.grayscale(image)
      a = array(grayimage.getcolors())
      return a.sum()
  
  while True :
      ImageGrab()
  
  restartgame()
  time.sleep(1)
  pressspace() 
  </code></pre>
  
  <p>So when i try to use the grab function, it says there is no attribute grab but i dont understand because it should works like this..
  thanks</p>