OcelotBOT
Search
⌃K
Introduction
Custom Commands
Message Object
Discord module
HTTP Module
JSON Module
Store Module
Built-in Modules
Tutorials
Making a simple custom command
Powered By
GitBook
HTTP Module
The HTTP Module allows you to make GET requests and receive back information. POST requests are not yet implemented.
get(url: string)
Returns the
body
and
statusCode
of the response to the request.
local
http
=
require
(
'http'
);
local
resp
=
http
.
get
(
"https://ocelotbot.xyz/"
);
d
.
send
(
resp
.
statusCode
)
Previous
Command Settings
Next - Custom Commands
JSON Module
Last modified
1yr ago