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: 4 months ago
JSON representation

A discord bot, used to dispatch wiki scripts when RSS feeds update, or on command

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
```