Skip to content

Artnod-FiveM-Mods/discord_hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub license 🔹 Discord

discord_hook

IS NOT A SCRIPT FOR FIVEM. It's a third party script.

Features:

  • Check IP and TCP port every X seconds.
  • Send one or more message with a simple command.

Installation

tcp_hook

python -m pip install --upgrade pip
pip install requests lxml
  • Go in discord_hook folder. Run as Administrator:
python tcp_hook.py --startup auto install

cmd_hook

  • Install Python 3
  • Run as Administrator:
python -m pip install --upgrade pip
pip install requests lxml
  • Go in discord_hook folder. Run:
python cmd_hook.py HOOKNAME

Configuration

Edit settings.py file.

LOG_CONF = {
    'log_dir' : 'E:\\', # end with "/" or "\\"
    'max_bytes' : 5000000,
    'backup_count' : 5,
}

tcp_hook

WEBHOOK_CONF = {
    'webhook_url' : 'changeme',
}

Replace changeme by your webhook url

FIVEM_CONF = {
    'server_name' : 'ArtNod test server',
    'server_ip'   : '51.15.244.36',
    'server_port' : 30120,
    'check_delay' : 5
}

Replace by your custom settings
Update service with (Run as Administrator):

python tcp_hook.py --startup auto update

cmd_hook

You can add your custom messages in settings.py

  • webhook_url
  • color
  • msg
  • message
    • author: name and icon
    • desc_text
    • fields: name and value
    • thumbnail
    • footer: text and icon

Releases

No releases published

Packages

No packages published

Languages