BotMate
Search
⌃K
BotMate
Search
⌃K
Welcome to BotMate
Why BotMate?
Getting started
Guides
Bots
Commands
Conversations
Debugging
Chats
Moderations
⌨
scripting
ℹ
Introduction
🚀
API
💬
Conversations
🎲
Random
📶
HTTP
🧊
Resource
🏬
Storage
🎹
Keyboard
🏃♂
Run Command
Powered By
GitBook
📶
HTTP
Make HTTP requests
Here are the methods you can use to make HTTP calls.
GET
Http
.
get
(
"https://randomuser.me/api"
).
then
((
{
data
}
)
=>
{
const
response
=
data
;
Bot
.
reply
(
response
.
results
[
0
].
name
.
first
)
})
POST
const
body
=
{}
Http
.
post
(
"URL"
,
body
).
then
((
{
data
}
)
=>
{
const
response
=
data
;
})
scripting - Previous
Random
Next - scripting
Resource
Last modified
9mo ago