mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
28 lines
1.9 KiB
Markdown
28 lines
1.9 KiB
Markdown
## Overview ##
|
||
Recent changes Gamepedia compatible Discord webhook is a project made from earlier recent changes module of FriskBot. It has been remade as independent script for public usage.
|
||
|
||
### Dependencies ###
|
||
* **Python3 3.6>**
|
||
* requests 2.18.4>
|
||
* beautifulsoup4 4.6.0>
|
||
* lxml 4.2.1>
|
||
|
||
### Features ###
|
||
* Fetch recent changes from Gamepedia wiki and send them to Discord channel using a webhook
|
||
* Send day overview, that lists how active was the wiki this day
|
||
* Customable with many different settings
|
||
* Can support multiple languages
|
||
|
||
### settings.json ###
|
||
Explanation for settings:
|
||
`cooldown` – interval for how often changes are retrieved from the wiki (due to used solutions, the real interval is ~1 sec longer)
|
||
`wiki` – wiki prefix the bot is supposed to work with (for example, for English Minecraft Wiki it's minecraft (https://**minecraft**.gamepedia.com) and for Polish Minecraft Wiki minecraft-pl (https://**minecraft-pl**.gamepedia.com)
|
||
`header` – it's recommended to leave this value as it is, it's a header the script will use to communicate with Gamepedia. Please note that without it, no communication will be possible.
|
||
`limit` – amount of actions retrieved every `cooldown` amount of seconds. The higher it is the more network data will be used and the data will be processed longer, setting it to higher values is not recommended, but if you want to make sure no edit is omitted (which only happen if there are more actions in last `cooldown` seconds than this value).
|
||
`webhookURL` – webhook URL you can get using channel settings in Discord
|
||
`limitrefetch` – limit of how many changes can be retrieved when refetch happens, cannot be lower than limit. -1 if you want to disable auto-refetch
|
||
|
||
### How to use ###
|
||
Make sure you have installed all of dependencies and filled settings.json properly.
|
||
When you are sure, use `python rcgcdw.py` command to run the script.
|