MateBot
  • Welcome to MateBot
  • Why MateBot ?
  • Getting started
  • GUIDES
    • Bots
    • Commands
    • Conversations
    • Debugging
    • Chats
    • Moderations
  • âŒ¨ī¸SCRIPTING
    • â„šī¸Introduction
    • 🚀API
    • đŸ’ŦConversations
    • 🎲Random
    • đŸ“ļHTTP
    • 🧊Resource
    • đŸŦStorage
    • 🎹Keyboard
    • đŸƒâ€â™‚ī¸Run Command
Powered by GitBook
On this page
  1. SCRIPTING

Storage

Store user data using our Storage API

Set

You can store a specific value using .set function from Storage API. Here is an example:

await Storage.set(`key`, `value`);

Value could be either string or json.

Get

You can get the value from bot storage using .get function. Here is an example:

const value = await Storage.get(`key`);

If the value is stored in JSON it will be parsed automaticaly.

Delete

You can delete a specific value using .del function from Storage API. Here is an example:

await Storage.del(`key`);
PreviousResourceNextKeyboard

Last updated 1 year ago

âŒ¨ī¸
đŸŦ