Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paring-chan/uniquebots-js-sdk
https://github.com/paring-chan/uniquebots-js-sdk
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/paring-chan/uniquebots-js-sdk
- Owner: paring-chan
- Created: 2020-12-12T13:11:47.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:17:25.000Z (about 1 year ago)
- Last Synced: 2024-12-31T07:45:58.437Z (3 days ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uniquebots JS SDK
### 설치
- npm에 퍼블리시 된 버전은 현재 이용 불가능합니다.
```shell
# npm
npm install pikokr/uniquebots-js-sdk
# yarn
yarn add pikokr/uniquebots-js-sdk
```### UniqueClient
Typescript
```ts
import { UniqueClient } from "@uniquebots/sdk"const client = new UniqueClient({
token: "uniquebots token",
updateInverval: 1000 * 60 * 30,
})client.login("token")
```Javascript
```js
const { UniqueClient } = require("@uniquebots/sdk")const client = new UniqueClient({
token: "uniquebots token",
updateInverval: 1000 * 60 * 30,
})client.login("token")
```### UniqueBot
Typescript
```ts
import { UniqueBot } from "@uniquebots/sdk"const client = new UniqueBot("uniquebots token")
client.updateGuilds(123 /*Your guilds count*/)
```Javascript(CommonJS)
```ts
const { UniqueBot } = require("@uniquebots/sdk")const client = new UniqueBot("uniquebots token")
client.updateGuilds(123 /*Your guilds count*/)
```### UniqueBots
Javascript(CommonJS)
```js
const { UniqueBots } = require("@uniquebots/sdk")// get all bots
await UniqueBots.getAllBots()// get bot by id
await UniqueBots.getBot("id")
```Typescript
```js
import { UniqueBots } from "@uniquebots/sdk"// get all bots
await UniqueBots.getAllBots()// get bot by id
await UniqueBots.getBot("id")
```