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: 4 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-28T18:52:34.000Z (over 1 year ago)
- Last Synced: 2025-04-13T02:27:49.535Z (about 1 year ago)
- Topics: discord, discord-bot, discord-py, python, rss
- Language: Python
- Homepage:
- Size: 94.7 KB
- Stars: 2
- Watchers: 3
- 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},
"factorio_versions":
{"url": "https://factorio.com/api/latest-releases",
"channel": ,
"latest_stable": "2.0.xx",
"sleep_for": 180,
"webhook_urls": ["", ""]}
}
```
Dependencies:
Python 3.8+
* feedparser
* discord.py 2.0+
* tomd
* requests
* local clone of https://github.com/Bilka2/Wiki-scripts
* (May need the `python3-venv` package installed on Debian for creating the virtualenv)
Virtualenv setup:
```
#pwd should be ~
python3 -m venv wiki_bot_env
source wiki_bot_env/bin/activate
python3 --version # should be 3.13 or higher
python3 -m pip install -r BilkaBot/dependencies.txt
deactivate
bash BilkaBot/easy-update.sh # start bot, as usual
```