"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scl/discord/discord.conf" between
syslog-ng-3.33.1.tar.gz and syslog-ng-3.33.2.tar.gz

About: syslog-ng (syslog "next generation") is a high performance, stable central logging system. Open source edition.

discord.conf  (syslog-ng-3.33.1):discord.conf  (syslog-ng-3.33.2)
skipping to change at line 27 skipping to change at line 27
# #
# As an additional exemption you are allowed to compile & link against the # As an additional exemption you are allowed to compile & link against the
# OpenSSL libraries as published by the OpenSSL project. See the file # OpenSSL libraries as published by the OpenSSL project. See the file
# COPYING for details. # COPYING for details.
# #
############################################################################# #############################################################################
# Rate limits: https://discord.com/developers/docs/topics/rate-limits#global-rat e-limit # Rate limits: https://discord.com/developers/docs/topics/rate-limits#global-rat e-limit
# Max message length: https://discord.com/developers/docs/resources/webhook#exec ute-webhook # Max message length: https://discord.com/developers/docs/resources/webhook#exec ute-webhook
@requires http
@requires json-plugin @requires json-plugin
@requires basicfuncs @requires basicfuncs
block destination discord( block destination discord(
url() url()
template("${MSG:-[empty message]}") template("${MSG:-[empty message]}")
max-msg-length(2000) max-msg-length(2000)
throttle(5) throttle(5)
username("") username("")
avatar-url("") avatar-url("")
tts(false) tts(false)
use-system-cert-store(yes) use-system-cert-store(yes)
...) ...)
{ {
@requires http "The discord() driver depends on the syslog-ng http module, pleas
e install the syslog-ng-mod-http (Debian & derivatives) or the syslog-ng-http (R
HEL & co) package"
http( http(
url('`url`') url('`url`')
method("POST") method("POST")
headers("Content-type: application/json") headers("Content-type: application/json")
body("$(format-json body("$(format-json
content=$(substr '`template`' 0 `max-msg-length`) content=$(substr '`template`' 0 `max-msg-length`)
username='`username`' username='`username`'
avatar_url='`avatar-url`' avatar_url='`avatar-url`'
tts=`tts`)") tts=`tts`)")
throttle(`throttle`) throttle(`throttle`)
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)