A bot for Pokemon Go Discord servers - meant to assist the Meowth Discord helper bot that is already in so many servers.
This was created for features that are difficult to bake into the Meowth project.
- Updates directions for newly created raid channels
- Python 3.6+
- discord.py
rewritebranch and its dependencies - gspread library
- oauth2client library
- Google Spreadsheet
To install discord.py (rewrite branch), use the following:
python3 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite
pip should take care of all other libraries.
Because Meowth is programmed to ignore commands from other bots, Tiny Meowth can only reply with Google Maps links in order to update raid locations.
-
Create your own Discord Bot and make note of the bot token.
-
Create and download a Service Account Key for the Google Sheets API. General procedure can be found in the gspread documentation. Place the key JSON file in the same folder as the bot.
-
Create a new Google spreadsheet with the FIRST worksheet in the following format:
- Column A: Gym name
- Column B: Google Maps link, GPS coordinates, or street address of gym location
HINT: If your area requires driving to raids, you may want to use best parking location instead of actual gym location.
- Create a SECOND worksheet in your Google spreadsheet for any Gym Aliases - ie, common names/mispellings people use for gyms other than the actual gym name. Use the same format as above:
- Column A: Gym alias
- Column B: Google Maps link, GPS coordinates, or street address of gym location
- Open the Google Sheets Service Account Key and look for the
client_emailfield. Share the Google spreadsheet with this email address, with a minimum of read access. Example of this field:
"client_email": "user@bot.iam.gserviceaccount.com",-
Make a note of the spreadsheet ID. This can be found in the URL of the spreadsheet. Example:
https://docs.google.com/spreadsheets/d/spreadsheet_ID/edit#gid=0 -
Make a copy of
config_blank.jsonand name itconfig.json. This will be where you change your settings. Open the JSON file and take the information noted in the previous steps and replace the strings in the following fields, then save:
"bot_token": "yourtoken",
"service_account_file": "filename.json",
"gsheet_id": "your sheet id",
"loc_list": "orange+county+ca"NOTE: Make sure your strings are enclosed by " and that your server location uses + to join multiple words!
- (optional) By default, Tiny Meowth listens to the public version Meowth that can be invited to your server. If you are running your own instance of Meowth (or somehow the underlying ID changes), change the
mainMeowth_idkey to reflect the new main Meowth ID:
"mainMeowth_id": 346759953006198784,To get this ID, enable developer view in Discord, right click on Meowth, and select 'Copy ID'.
- Run
__main__.pyand you should see your bot come online. It will be listening to Meowth and respond if necessary!