Skip to content

A client library for accessing the OpenDiscordBots API

License

Notifications You must be signed in to change notification settings

OpenDiscordBots/libodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libodb

A client library for accessing the OpenDiscordBots API

Example Usage

from asyncio import run

from libodb import APIClient
from pydantic import BaseModel


class GuildConfig(BaseModel):
    test: str


async def main():
    c = APIClient("api_key")

    await c.kv_set("abc", "123")
    print(await c.kv_get("abc"))

    await c.set_guild_config(1234, "example", GuildConfig(test="test"))
    print(await c.get_guild_config(1234, "example", GuildConfig))

    await c.close()

run(main())

About

A client library for accessing the OpenDiscordBots API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages