Skip to content

cabalcx/urlmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urlmon

Bot for url monitoring in Discord. Streams data from a specific channel and posts it somewhere. Originally known as job-board-bot.

Approved channels

The bot will only stream data from channels that have been approved. Incoming content must be in the list in discord-channels.csv. The guild.id and channel.id are required and must be in a sha256 hash format.

Python dev setup

Set up a virtual environment by running

/root/urlmon/bin/python3 -m virtualenv .

This will initalize a virtual environment in this directory.

To enter the virtual environment, run

source bin/activate

To install library dependencies, run

pip install -r requirements.txt

Bot tokens

A token for the bot can be retrieved from the Discord Developer Applications panel. You may save it to a file named config.json, styled like so:

{
    "discord_bot_token":"<bot_token>"
}

This page has more info on how to add the bot to the server: https://discordpy.readthedocs.io/en/stable/discord.html.

Adding the bot to your server will depend on authorizing it via the Discord OAuth2 url generated here: https://discord.com/api/oauth2/authorize?client_id=928752486817341460&response_type=code&scope=messages.read

Adding new channels

To add new channels, edit discord-channels.csv with the sha256 of the guild.id and the channel.id you want ingested (assuming the bot has already been added to the Discord).

Deploying

Set up the dependencies:

sudo apt update -y && sudo apt-upgrade -y;
sudo apt install /root/urlmon/bin/python3-pip
/root/urlmon/bin/python3 -m pip install -r requirements.txt

About

Job board for awesome jobs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages