Setup discord webhook with nexus admin

When I used adonis admin , I had command logs on my game , however I recently switched over to Nexus Admin , and am wondering if there is a way to use the logging feature to send a message with the command when a command is run.

This is actually very simple to do and shouldnt take up too much work!

You could use the Chatted event to log when a player chats.
After this you can split the string and shorten it to see if it has the prefix you have set on your admin commands (You should use string.sub and string.split in your code).

After this you should be all set with some sort of discord webhook to log your commands (I would recommend a function assignment for cleaner code)

Hope this helped!

I’ll take a look at this , thanks.

1 Like