Skip to content

Latest commit

 

History

History
220 lines (150 loc) · 8.64 KB

index.md

File metadata and controls

220 lines (150 loc) · 8.64 KB

Gotcha

Auto spammer / catcher for discord bot pokecord

Please check the FAQ before posing an issue.

This is a VB.NET application to automate catching / leveling pokemon in Pokecord the discord bot. This will also send email notifications if selected for the following:

  • Legendary
  • Mythic
  • Ultra Beast
  • Alola

This bot also has quick commands for pokecord to simplify the need for typing. ex:

  • Toggle detailed view for p!info
  • Order p!info by
    • Alphabetical
    • Number
    • Level
    • IV
  • Select Latest pokemon caught
  • Info via p!info <selected/latest>
  • Pokemon [p!pokemon] by
    • All
    • Shiny
    • Alolan
    • Mega
    • Legendary
    • Mythical
    • Ultra Beast
  • Pokedex via p!pokedex <owned/unowned>
  • Nickname change
  • Favorites list
  • Check ballance
  • Claim pokedex rewards

The bot also saves your output logs to /logs/ so you can quick search if you need to.

Download Latest version of Gotcha!

v1.0.0.13

Please keep in mind if you use multiple monitors, this only scans your primary monitor You will have to play with the window size of the discord app, you want it big enough for the bot to try more than once if there is no catch, but enough to bump the pokemon off the screen if there is a catch, but not a level. It's tricky but doable, somewhere near 1117 x 647 on my monitor.

THIS BOT IS NOT PERFECT AND DEPENDS HEAVILY ON IMAGE DETECTION

Step by Step

  1. Download

  2. Extract bot zip to folder

    • Folder View
  3. Run

    • Discord and login.
    • Gotcha.exe
  4. Set basic settings

    • Click 'Basic' tab, located under the 'Settings' section
    • Select the pokemon you would like to catch
    • Add text strings you would like the bot to use
    • Set bot interval (suggested is 1000 - 1500 to avoid discords spam delay)
    • Click Save
  5. Set advanced settings

    • Click 'Advanced' tab, located under the 'Settings' section
    • Set catch delay (suggested is 1500)
    • Set discord channel names (this bot looks for the window name for discord, and that include the channel name. The first box with 'general' is the bot you want to watch for pokemon spawns and to spam. The one labeled pokebag is for your quick commands
    • Set the directory for the /img/ folder

    Img Dir

    • If you want email notifications, set your email (gmail only supported)

    Email Settings

    • Set password to email
    • Dont edit the 'SMTP Port' or 'SMTP Host'
    • Set subject for notifications
    • Check 'Send to alternate email?' if you would like to send the logs to a second email, otherwise they will be sent to the email that is also sending.

    Alt Email

    • Set pokemon types you would like to be notified about
    • Click "Send test email" button to test that the settings are correct

    Test Email

  6. Create Discord channels if not yet made (these are set to work with basic settings)

    • Create channel named 'general' (note variations work for this ex: general2, general3 etc.)
    • Create channel named 'store'
    • Create channel named 'pokebag'
  7. Click 'Image Scrape' button

    • Click 'Image Scrape' tab

    Image Scrape Tab

    • Select the 'store' channel in discord

      • Send message > p!market search --name bulbasaur
      • Send message > p!market view idOfPokemonAbove
      • Click the Gotcha image scraper form from before.
      • Make sure discord and the bulbasaur from before is still visible
      • Hover the mouse in the center of the ear on the left side of the image of bulbasaur

      Bulbasaur Ear Example

      • Press F5 with your mouse still in position. This will update the x and y coordinates in the textboxes on the image scraper form
    • Click 'Invite Bot' button

      Invite Bot

      • This will open a link to https://discordapp.com/developers/applications/ You will need to create a bot and invite it to your server as follows

        • Click the 'New Application' button

        New Application

        • Enter a name for this bot and click create

        Name Bot

        • Click the 'Bot' tab under settings on the right toolbar

        Bot Tab

        • Click the 'Add Bot' button

        Add Bot

        • Click 'Yes do it' in the pop-up

        Yes do it

        • Click 'Copy' button located under the token

        Copy Token

        • Paste copied token into bot scrape window

        Token

        • Go back to the Discord Developer Portal and select 'OAuth2' tab under settings on the right toolbar

        OAuth2

        • Select 'Bot' checkbox from the scopes list and copy the link

        Bot OAuth2

        • Paste the copied link into a new tab / new window

        • Select the server you want to invite the bot to and click 'Authorize'

        Authorize Bot

  8. Click start on the image scraper

    • This will start the image scraper in the 'store' channel. This is a long process, just wait for it to finish.
    • CHECK THE /IMG/ FOLDER ONCE THIS IS COMPLETED AND ENSURE THERE ARE NO ALL GREY SQUARES. IF THERE ARE THEN YOU WILL NEED TO CHANGE THE LOCATION OF WHERE THE BOT IS SCREEN SHOTTING FOR THOSE, SO THIS IS THE PROCESS.

      • Write the names of the pokemon you need to delete in a notepad or somewhere in person.
      • Delete the images from the /img/ folder.
      • Repeat in 'store' channel the command p!market search --name NameOfPokemonDeleted and then p!market view idOfPokemonFromList
      • Go to image scraper window with discord visible in background
      • Press F5 with your cursor in the top left of a distinct 50x50 pixel space on a pokemon (see other pokemon in /img/ for examples).
      • Delete Melmetal.png from /img/ folder
      • Restart image scraper
      • Repeat with each pokemon as needed
  9. Download lightshot (or other desktop screenshot software)

  10. Screen shot 3 things in discord 50x50 pixel image and save them in the bots main folder. (not the /img/ folder)

    • A level up

    Level Up

    • A pokemon encounter

    Encounter

    • A pokemon evolution

    Evolution

  11. Select 'general' channel in discord

  12. Close gotcha bot and re-open it

  13. Press 'Start' button on 'Home' tab

Important notes; Please use discord on your primary monitor if you use more than one monitor. If this bot stops tracking levels or evolutions or encounters then you will need new screen shots. To test your pokemon screen shots use the 'Image tester' in advanced settings.

Switching your primary monitors in windows 10

Gotcha! About

Gotcha! About

Gotcha! Logs

Gotcha! Logs

Gotcha! Advanced Settings

Gotcha! Advanced Settings

Gotcha! BasicSettings

Gotcha! Search

Gotcha! Basic - Search

Gotcha! Select / Deselect

Gotcha! Basic - Select / Deselect

Gotcha! Add / Remove

Gotcha! Basic - Add / Remove

Gotcha! Quick Commands

Gotcha! Quick Commands

Gotcha! Stats

Gotcha! Stats

Gotcha! Home

Gotcha! Home