Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

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