You have to grant Manage Messages
to your bot
Python Pokemon Sniper
Simple chat bot to delete messages that not contain lat/long and pokemon name
So message for spottings
need to be in this format
lat,long pokemon_name [IV] [extra info]
or
pokemon_name lat,long [IV] [extra info]
or
PokeSniper2 Log Copy-Paste:
Pokemon: aerodactyl
Latitude, Longitude: -36.860048, 174.774678
[7:27:59 PM] Looking for a Aerodactyl at -36.860048, 174.774678.
[7:28:04 PM] Using a RazzBerry.
[7:28:04 PM] We caught a Aerodactyl.
- CP: 1113
- IV: 100
- Move 1: SteelWingFast
- Move 2: HyperBeam
[7:28:05 PM] We have 130 Pokeballs and 101 berries left. We have 92 Pokemon.
[7:28:05 PM] Caught everything we could find.
If not, the messages will be deleted automatically.
- Python 3.5+
aiohttp
librarywebsockets
libraryPyNaCl
library (optional, for voice only)- On Linux systems this requires the
libffi
library. You can install in debian based systems by doingsudo apt-get install libffi-dev
.
- On Linux systems this requires the
Usually pip
will handle these for you.
git clone [email protected]:enjoy2000/discord-pokemon-go-snipe-bot.git
# if you got `permission denied` message use this command
# git clone https://github.com/enjoy2000/discord-pokemon-go-snipe-bot.git
cd discord-pokemon-go-snipe-bot
pip3 install -r requirements.txt
cp config.json.sample config.json
Grab your api_key
(bot token) and put it in config.json
, also modify your channel name
Finaly start your bot
python3 bot.py # For messages management
python3 bot.py scrawl # For pokenipers.com scrawler
python3 bot.py trackemon # For trackemon.com scrawler, check config `scrawl_trackemon`
*You can use some processes monitor
like Monit or Supervisor to keep your bot alive.
- Go to Discord Developers Page to create your bot.
- Open this url with your client_id to authorize your app
https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot&permissions=0
- If you got this error
JSONDecodeError
please check yourconfig.json
syntax - If you got
Permission Denied
when clone
try withhttps
source - Scrawlers post nothing
check configscrawl_channels
or maybe theapi
is dead