Skip to content

Commit edc62f2

Browse files
committed
2.0 BETA COMMIT
1 parent ac82c86 commit edc62f2

510 files changed

Lines changed: 96046 additions & 69168 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,28 @@
2222
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2323
hs_err_pid*
2424

25-
config/config.ini.ex
26-
config/*ini
27-
config/*.json
28-
filters/*.json
29-
feeds/*.txt
30-
node_modules
25+
*/*.ini
26+
27+
*/*.json
28+
*/*/*.ini
29+
*/*/*.nonobfuscated
30+
configs/*.json
31+
configs/discords/*.json
32+
configs/geofences/*.json
33+
configs/filters/*.json
34+
*/*/*/*.ini
35+
configs/embeds/*.js
36+
configs/db/*.js
37+
38+
package-lock.json
39+
40+
src/static/PvPRank.js
41+
src/static/data/*ini
42+
src/static/dbMigrate.js
43+
44+
*.old
3145
*.DS_Store
32-
filters/*.DS_Store
33-
static/out/*
34-
static/*.js
35-
ingress_scraper/*.ini
36-
embeds/*.js
37-
geofences/*.DS_Store
38-
static/Images/pokemon_icons
39-
geofences/*.json
40-
static/*.DS_Store
41-
modules/*.DS_Store
42-
oauth2-stripe/*.js
43-
oauth2-stripe/templates
44-
config/*.js
45-
Pokebot.js
4646
*.conf
47-
*.nonobfuscated
48-
filters/*.nonobfuscated
47+
*.nonobfuscated.js
48+
*.ini
49+
*.obf

Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,57 @@
77

88
## This bot requires intermediate knowledge of discord and bots. You will need a minimun of TWO bot tokens, one for channels and one for subscriptions. This is **not** for a beginner user. You will not receive beginner level support for this.
99

10+
## As of Release 2.0 you will need to run the sub migration script. /src/static/dbMigrate.js.example. Add db info, and rename to .js
11+
1012
# Installation:
11-
## 1: `git clone https://gitlab.com/webhookdatareceiver/Webhook-Data-Receiver.git/` to desired location or download the zip and unzip.
13+
## 1: `git clone https://github.com/PartTimeJS/WDR.git` to desired location or download the zip and unzip.
1214

13-
## 2: cd to the new WebhookDataReceiver folder
15+
## 2: cd to the new WDR folder
1416

1517
## 3: Type `node -v` in your terminal to determine if node is installed on your machine.
16-
- If not or version is less than 10.14, upate or download node.js from here: https://nodejs.org/en/
18+
- If not or version is less than 12, update or download node.js from here: https://nodejs.org/en/
1719
- Type `node -v` again in your terminal post install to confirm installation.
1820

1921
## 4: Install npm package requirements.
2022
- Run `npm install` in your cloned directory.
2123

2224
## 5: Edit the Config files and save them without the `.example` on them.
23-
- Emotes.ini
25+
- Emojis
2426
You will need to join emoji servers, or add the emoji to your own server:
25-
https://discord.gg/zqVCfPy - WEATHER, TEAMS, GYMS, TYPES
26-
https://discord.gg/AnECN8U - Legendary boss emojis
27-
- Discords.json
28-
- You need to add each Discord you plan on serving. WebhookDataReceiver is multi-discord capable. The geofence should encompass the whole area that the discord covers. Must be in geojson format.
29-
- Geojson.json
30-
- Geofences of areas to label your pokemon/raid/quest posts with and for users to subscribe to alerts with.
31-
- Go to http://geojson.io/ and draw your geofences. You MUST add a "name" field to each geofence. If you want to use sub areas (smaller detailed geofences within larger geofences), you must add a sub_area field and then true or false as the value. All geofences must be in geojson format.
27+
https://discord.gg/u9yBJ3T - WEATHER, TEAMS, GYMS, TYPES
28+
https://discord.gg/tstAUtZ - Legendary boss emojis
29+
## Discords in configs/discords
30+
- You need to add a file each Discord you plan on serving. WebhookDataReceiver is multi-discord capable. The geofence should encompass the whole area that the discord covers. Must be in geojson format.
31+
## Geofences in configs/geofences
32+
- Add geofences for each city/discord.
3233
- config.ini
3334
- All directions for this files are contianed within this file.
3435
- Make sure to create bot tokens (2 min) at https://discordapp.com/developers/applications/
3536
- Grant Permissions and invite bots to all servers you will be running on. (Bot needs administrator privileges) https://finitereality.github.io/permissions-calculator/?v=0
3637

38+
## Embeds in configs/geofences
39+
- Copy each embed exmaple and rename without .ex
40+
- Make any changes you want with the variable key.
41+
42+
## Filters in configs/filters
43+
- Copy each embed example and rename without .ex
44+
- Make any changes you want or create your own. Must name the filter in your channels.
45+
46+
## Subscription Presets in configs/sub_presets
47+
- These are presets users can select instead of manually creating a subscription.
48+
- Follow the example files.
49+
3750
## 6: Channels
38-
- Fill out each channels.ini file with the channels, chosen filter, and areas. If you do not want to filter by area, use the name that you gave your discord in discords.json.
39-
- channels_pokemon.ini
40-
- channels_raids.ini
41-
- channels_quests.ini
42-
- channels_lures.ini
43-
- channels_invasion.ini
51+
- Within the configs folder, you will have folders for each type of feed channel. Create files identical to the examples.
4452

4553
## 7: Filters
46-
In /filters you will find examples of spawns, quest, and raid feeds. These files can be named whatever you want, there is no more name requirement. These are spawn filters based on PA type, also with a min_iv and max_iv override. If you do not include a Channel_ID, the bot will ignore the filter.
54+
In /filters you will find examples of spawns, quest, and raid feeds. These files can be named whatever you want, there is no more name requirement. These are spawn filters based on PA type, also with a min_iv and max_iv override.
4755

4856
#### Quests
49-
- The "Type" field must be "quest".
5057
- Quest feeds can be filtered by reward and/or encounter. Add each reward our encounter to the "Rewards" array.
5158
- They are case sensitive, so please see examples. Refer to /static/en.json for all rewards.
5259

5360
#### Raids
54-
- The "Type field must be "raid".
5561
- Raids can be filtered by type, levels, and ex eligibility.
5662
- If you DO NOT want to filter by Ex Eligibility, REMOVE the "Ex_Eligible" field completely from the filter.
5763
- You can add as many or as few levels to the filter as you with 1-5 as the examples show.
@@ -65,12 +71,11 @@
6571
- More specific IVs can be set for each monster (replace `True`/`False` with `{"min_iv":"80"}`), but that value must be within the min_iv and max_iv you set.
6672
- You can set the bot to post without IVs using the "Post_Without_IV" field. Set this to `true` or `false`.
6773

68-
## 8: Start the bot. `pm2 start wdr.js`
69-
- If you get errors that are not because of missing configs, Contact me via discord.
74+
## 8: Start the bot. `pm2 start wdr.js --name WDR`
75+
- If you get errors that are not because of missing configs.
7076
- PM2 Docs http://pm2.keymetrics.io/docs/usage/cluster-mode/
7177

7278
## Subscriptions
73-
7479
- Subscription commands can only be used in the command channel set in the discords.json.
7580
- Type `.help` (or whatever prefix you set) for command instructions.
7681
- Rewards that users can subscribe to are set in `quest_config.json` in the configs folder. These are case sensitive and the Encounter rewards must state "Encounter" after the monster name just as the example shows.

config/channels_quests.ini.example

Lines changed: 0 additions & 27 deletions
This file was deleted.

config/channels_raids.ini.example

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)