Archive of UNGI's bots.
  • Python 99.5%
  • Shell 0.5%
Find a file
2021-11-20 03:30:01 -05:00
etc fixed typo 2021-07-21 16:37:53 -04:00
ungi_cli added bot management 2021-08-22 03:11:24 -04:00
.gitignore adding gitignore, so we dont leak files! 2021-04-14 19:25:09 -04:00
.gitlab-ci.yml Configure SAST in .gitlab-ci.yml, creating this file if it does not already exist 2021-11-20 06:53:29 +00:00
app.ini added twitch index setting 2021-11-12 21:44:26 -05:00
discord_logger.py adding logging 2021-11-20 03:14:42 -05:00
LICENSE added files 2021-04-06 07:34:01 -04:00
loot.sql added twitch sql 2021-11-12 19:47:17 -05:00
README.md Update readme.md 2021-04-13 02:17:15 -04:00
reddit.py forgoit config stuff. also fixed client not closed 2021-05-06 05:16:32 -04:00
requirements.txt Added Twitch Bot 2021-11-15 06:32:16 -05:00
run_bots.py Added Twitch Bot 2021-11-15 06:32:16 -05:00
start.sh added files 2021-04-06 07:34:01 -04:00
telegram.py Added logging 2021-11-20 03:21:54 -05:00
twitch.py Added Twitch Bot 2021-11-15 06:32:16 -05:00
ungi.py updated ungi.py 2021-05-08 08:24:59 -04:00

ungi-bots

Bots, scrapers and whatever to collect data goes here.

Prerequisites

A working Elastic search install

A linux host

Bots/CLI setup

  1. clone this repo:

git clone https://gitea.gretagangbang.biz:nsaspy/ungi-bots.git

  1. install requirments

cd ungi-bots && pip install --user -r requirements.txt

  1. run ungi.py and type "init"

this will configure the backend, make the required indexes, etc.

Discord Logger setup

To get the Discord loggers you will need tokens, you can obtain them in a cookie or via tampermonkey.

Just Search on the web "How to obtain discord token".

Once you have the token you will place it in a file

NOTE: You can Have as many bots as you need, just input more tokens

Once you have the tokens:

export UNGI_CONFIG="path to config ini"

bash start.sh <token file>

Reddit Setup

To setup the reddit scraper you will need a api token from Reddit.

You can search the web for how to obtain them.

Place the Credientails in the config file

to start:

export UNGI_CONFIG="path to config

for full scrape of the subbreddits

python reddit.py -f

NOTE: if you want it to have it perodically watch a subreddit you will have to make a cron tab

Heres some help on that:

https://stackoverflow.com/questions/19972713/run-cron-job-every-5-min