Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
/ roleplaybotSDK Public archive

A type-safe Javascript SDK for the RoleplayBot API

Notifications You must be signed in to change notification settings

subtosharki/roleplaybotSDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roleplaybotSDK

A type-safe Javascript SDK for the RoleplayBot API

Example Usage

ESM

import { RoleplayBotSDK } from 'roleplaybot-sdk';

const auth = {
  authKey: 'your api auth key',
  guildId: 'your guild id'
};

const client = new RoleplayBotSDK(auth);

//Get the current API version
const version = await client.getAPIVersion();

//Get all civilians in the guild
const civilians = await client.getAllCivilians();

CJS

const { RoleplayBotSDK } = require('roleplaybot-sdk');

const auth = {
  authKey: 'your api auth key',
  guildId: 'your guild id'
};

const client = new RoleplayBotSDK(auth);

(async () => {
  //Get the current API version
  const version = await client.getAPIVersion();

  //Get all civilians in the guild
  const civilians = await client.getAllCivilians();
})();

About

A type-safe Javascript SDK for the RoleplayBot API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published