OcelotBOT
  • Introduction
  • Custom Commands
    • Message Object
    • Discord module
      • Command Settings
    • HTTP Module
    • JSON Module
    • Store Module
    • Built-in Modules
  • Tutorials
    • Making a simple custom command
Powered by GitBook
On this page

Was this helpful?

  1. Custom Commands

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)

PreviousCommand SettingsNextJSON Module

Last updated 4 years ago

Was this helpful?