Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make Adonis Admin Logs via Discord Webook?

Asked by 5 years ago
Edited 5 years ago

I've tried basically everything, but nothing I find seems to work! If somebody knows how to do this, please tell me, it would really help me. The code I've tried but doesn't seem to work usually is something along the lines of this

01local WebhookId     = ""
02local WebhookToken  = ""
03 
04server = nil
05service = nil
06 
07local Http = game:GetService("HttpService")
08local webHook = require(script.WebhookAPI)
09local Discord_Webhook = webHook.new(WebhookId,WebhookToken)
10local PlaceName = game:GetService('MarketplaceService'):GetProductInfo(game.PlaceId).Name
11 
12 
13return function()
14 
15    function LvlFromNum(p)
View all 75 lines...

And the Webhook API Script is

01local webHook = {}
02 
03webHook.__index = webHook
04 
05local Http = game:GetService("HttpService")
06 
07function webHook.new(id,key)
08    local mt = setmetatable({id=id,key=key}, webHook)
09    return mt
10end
11 
12function webHook:post(config,host)
13local data = nil
14 
15local success = pcall(function()
View all 28 lines...

Please help if you can, thank you!

1 answer

Log in to vote
0
Answered by 5 years ago

I don't think you can actually sent it to a server via a webhook unless you set up a special bot connected with Adonis. I know you can log commands via Trello, so go into the Settings script until you find the set-up prompt for Trello services (also includes setup instructions). Hope this helps!

0
Is there a way to have the webhook send a message containing any message that starts with ":", and say which user and when it happened? Explorer2021 22 — 5y
0
Honestly, you most likely can, and the script is most likely in java. Sorry. TotalElevation 45 — 5y
Ad

Answer this question