Web interface to manage subscriptions for WhMgr custom member subscriptions for Pokemon, PvP, Raids, Quests, Lures, Invasions, and Gyms.
- Clone repository
git clone https://github.com/versx/WhMgr-UI
- Install dependencies
npm install
- Copy config
cp src/config.example.json src/config.json
- Create a Discord bot at https://discord.com/developers and enter the
botToken
,clientId
, andclientSecret
in yourconfig.json
- Fill out config
vi src/config.json
- Run
npm start
- Access via http://machineip:port/ login using your Discord account
- Run
git pull
- Run
npm run update
Once everything is setup and running appropriately, you can add this to PM2 ecosystem.config.js file so it is automatically started:
module.exports = {
apps : [
{
name: 'WhMgr-UI',
script: 'index.js',
cwd: '/home/username/WhMgr-UI/src/',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
out_file: 'NULL'
}
]
};