SA-MP Forums Archive
Discord Connector Plugin and logs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Discord Connector Plugin and logs (/showthread.php?tid=665630)



Discord Connector Plugin and logs - Ferreck - 11.04.2019

Hello, i didn't find any tutorial or topic about this, so i am creating a new one, if there is any topic please send.

My question is, i already have a .log system, that shows logs in the scriptfiles paste and i want to know if its possible to show the logs on the discord.

I already have the Discord connector Plugin too and it's working.

If its possible, can someone give me a tip or something? Just to know where do i need to start. Thanks


Re: Discord Connector Plugin and logs - Markski - 11.04.2019

If you have the Discord connector, then you should just integrate that into your logging function.

You probably format a string before saving it to the .log file. After that, you could just send the same string through the Discord connector. Make sure you're sending it to the desired channel and through the desired bot/webhook, though.


Re: Discord Connector Plugin and logs - Ferreck - 11.04.2019

Yeah dude it worked, thanks ^^