A Discord helper bot for Pokemon Go communities.
Kyogre is a heavily modified fork of Meowth (discordpy-v1 branch), a Discord bot written in Python 3.6.1+ built with discord.py v1.0.0a (rewrite branch)
Kyogre assists with organising Pokemon Go communities with support for:
Python 3.6.1+
Go here for details on how to install Python 3.6.
For all future CLI commands, replace the command name python3
with the relevant interpreter command name for your system (such as the common py
command name on Windows). See details here.
Discord.py
pip install git+https://github.com/Rapptz/discord.py@master -U
Note: You will receive the following warning on your first run, which can be disregarded:
PyNaCl is not installed, voice will NOT be supported
Git
To clone the files from our repository or your own forked repository on GitHub, you will need to have git
installed.
Download the Git for Windows software.
On install, ensure the following:
Windows Explorer integration
component (and all sub-components) is selected.Use Git from the Windows Command Prompt
is selected in the PATH adjustment step.Checkout as-is, commit Unix-style line endings
is selected in the line ending config step.First check if it's already installed with:
git --version
If it's not already installed, use your relevant package manager to install it.
For Debian and Ubuntu, it would usually be:
sudo apt-get install git
After installing Git:
git clone https://github.com/tehstone/Kyogre.git
Required Python Packages
Install pip.
sudo apt-get install python3-pip
Copy the requirements.txt
file from this repo to a local directory and install the listed requirements.
python3 -m pip install -r requirements.txt
Then Install APSW:
python3 -m pip install --user https://github.com/rogerbinns/apsw/releases/download/3.27.2-r1/apsw-3.27.2-r1.zip \
--global-option=fetch --global-option=--version --global-option=3.27.2 --global-option=--all \
--global-option=build --global-option=--enable-all-extensions
Kyogre
Create a Bot user in the Discord Developers panel:
New App
Create App
Create a Bot User
Download the files in this repository, or your own fork if you intend to modify source
Note: If you alter the code significantly, adapt to support platforms we don't or integrate any TOS-breaking features, we ask you don't name your instance Meowth to avoid confusion to users between our instance and yours.
Copy the bot config template config_blank.json
, rename to config.json
and edit it:
bot_token
is the Token you copied down earlier from the Discord Developers page and requires quotes as it's a string.default_prefix
is the prefix the bot will use by default until a guild specifies otherwise with the set prefix
commandmaster
is your personal discord account ID. This should be a long set of numbers like 174764205927432192
and should not have quotes around it, as it's an int
not a string.
User Settings
> Appearance
> Advanced
, which then enables you to right-click your username in chat and select the option Copy ID
\
directly behind the mention for it to escape the mention string that's created, revealing your ID.type_id_dict
specifies what Pokemon Type emojis to use for your bot.
Invite your Bot's User to your guild:
<CLIENT_ID>
with it in the following URL:https://discordapp.com/oauth2/authorize?client_id=<CLIENT_ID>&scope=bot&permissions=268822608
Authorize
Run the launcher from the command prompt or terminal window:
python3 launcher.py
If successful, it should send "Starting up..." as well as basic info on startup.
Simply type !configure
in your server to start the configuration process as normal.
--help, -h Show the help message
--auto-restart, -r Auto-Restarts Kyogre in case of a crash.
--debug, -d Prevents output being sent to Discord DM, as restarting
could occur often.
python3 launcher.py
python3 launcher.py -d
python3 launcher.py -r
docker build -t kyogre .
docker run -d -i \
--name kyogre \
-v ${CONFIG_FULL_PATH}:/src/config.json \
-v ${DATA_PATH}:/src/data \
kyogre