Chat command to run console command

*Alright so I’m using AdminBuddy logs, however you may only open the logs from a console command which is typically called adminbuddy.

How could I do it so Staff can just type /logs or !logs in-game instead of typing adminbuddy into the console to bring up the logs.

Thanks in advance, much appreciated!*

-- Clientside

hook.Add( "OnPlayerChat", "OpenLogs", function( _, text )
   if ( text == "!logs" or text == "/logs" ) then
      RunConsoleCommand( "logcommandhere" )
end )