I want to show lfs server messages in Discord, how can I do it? can you help me?
<?php
#####DISCORD VARIABLES#####
$DiscordToken = "";
$DiscordChannelReceive = ""; #discordchannel to sent commands to LFSLapper. (Rightclick on the channel and click 'Copy ID')
$DiscordBotStatus = "Powered by LFSLapper";
?>
sendmessagetodiscord($DiscordChannel,$Message);
<?php
Event OnMSO( $userName, $text ) # Player event
$idxOfFirtsSpace = indexOf( $text, " ");
IF( $idxOfFirtsSpace == -1 ) THEN
$command = $text;
$argv = "";
ELSE
$command = subStr( $text,0,$idxOfFirtsSpace );
$argv = trim( subStr( $text,$idxOfFirtsSpace ) );
ENDIF
SWITCH( $command )
CASE "!message":
$Message = $argv;
$DiscordChannel = "";
sendmessagetodiscord($DiscordChannel,$Message);
BREAK;
ENDSWITCH
EndEvent
?>