Simple Discord Webhook for FiveM linux server. (The development of this script continues)
Server :
Start Send message to discord special channel when server start
Players :
Connect Send message to discord when user connected
Disconnect Send message to discord when user connected
Chat Send message to discord when user send a chat message in game
Death Send message to discord when user died
cd resources
git clone https://github.com/jalallinux/FiveM-Discord-Bot [jalallinux]/jl_discord
- Add to your server.cfg file
start jl_discord
- Download https://github.com/jalallinux/FiveM-Discord-Bot/archive/master.zip
- Put it in the
[jalallinux]
directory - rename it to jl_discord
- Add to your server.cfg file
start jl_discord
In resources
folder, edit /[jalallinux]/jl_discord/config.lua
with your settings :
Config = {}
Config.SteamKey = '- - - - - Your Steam Key Here - - - - -'
Config.SystemAvatar = 'https://jalallinux.ir/favicon.png'
Config.UserAvatar = 'https://i.imgur.com/KIcqSYs.png'
Config.SystemName = 'JL Discord'
Config.WebhooksUrl = {
System = '- - - - - Discord Channel Webhook URL Here - - - - -',
Kill = '- - - - - Discord Channel Webhook URL Here - - - - -',
Chat = '- - - - - Discord Channel Webhook URL Here - - - - -',
}
- You can get your
SteamKey
from https://steamcommunity.com/dev/apikey but it's optional for temporarily.