Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bilka2/bilkabot
A discord bot, used to dispatch wiki scripts when RSS feeds update, or on command
https://github.com/bilka2/bilkabot
discord discord-bot discord-py python rss
Last synced: 15 days ago
JSON representation
A discord bot, used to dispatch wiki scripts when RSS feeds update, or on command
- Host: GitHub
- URL: https://github.com/bilka2/bilkabot
- Owner: Bilka2
- License: mit
- Created: 2018-05-11T08:46:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T13:35:06.000Z (25 days ago)
- Last Synced: 2024-10-23T09:27:11.817Z (23 days ago)
- Topics: discord, discord-bot, discord-py, python, rss
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BilkaBot
A discord bot, used to dispatch wiki scripts when RSS feeds update, or on command.
config.json needs to be added and should look like this:
```json
{
"token": "",
"path_to_wiki_scripts": ""
}
```Encoding the token:
```python
import base64
print(base64.b64encode(''.encode('utf8')).decode('utf8'))
```feeds.json:
```json
{
"fff":
{"url": "https://www.factorio.com/blog/rss",
"channel": "",
"time_latest_entry": "",
"sleep_for": 60,
"webhook_urls": ["", ""]},
"wiki":
{"url": "https://wiki.factorio.com/api.php?days=14&limit=50&action=feedrecentchanges&feedformat=rss&hidebots=1",
"channel": "",
"time_latest_entry": "",
"sleep_for": 180},
"forums_news":
{"url": "https://forums.factorio.com/app.php/feed/news",
"channel": "",
"time_latest_entry": "",
"sleep_for": 60,
"reddit_rss": "https://www.reddit.com/user/FactorioTeam/.rss",
"webhook_urls": ["", ""]}
}
```Dependencies:
Python 3.8+
* feedparser
* discord.py 2.0+
* tomd
* requests
* beautifulsoup4
* local clone of https://github.com/Bilka2/Wiki-scriptsVirtualenv setup:
```
#pwd should be ~
python3 -m venv wiki_bot_env
source wiki_bot_env/bin/activate
python3 --version # needs to be 3.8 or higher
python3 -m pip install -r BilkaBot/dependencies.txt
deactivate
bash BilkaBot/easy-update.sh # start bot, as usual
```