DiscordPy Guild Data Management Module
Project description
JSON READER:
DiscordPy GuildData Management Module
Important Info:
A /data folder must exist
Common Terms:
key: file name to save/pull from (Stored as guild_KEY.json) guild: ID of the guild (automatically turned into a string)
Functions
create_file()
Creates a Key
Returns: Success(T/F)
- bot: Bot Instance
- key: File/Key to make
- default: Default value stored for each guild
- wipe: Wipes the file if it exists
read_file()
Read a Key from a guild ID
Returns: JSON for that guild
- guild: ID of the guild
- key: File/Key to read
write_file()
Write to a key
Returns: Success(T/F)
- guild: ID of the guild
- key: File/Key to read
- value: Modified Value
remove()
Remove a guild from a Key
Returns: Success(T/F)
- guild: ID of the guild
- key: File/Key to remove guild from
check_exist()
Checks if a Key exists
Returns: Success(T/F)
- key: Check the existance of a key/file
dump()
Dumps the entire JSON
Returns: JSON of the Key
- key: Key to dump full json from
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
guildreader-1.1.1.tar.gz
(2.7 kB
view hashes)
Built Distributions
guildreader-1.1.1-py3.8.egg
(4.6 kB
view hashes)
Close
Hashes for guildreader-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f7a44891378c2d4bbd3d87f06c05c5e3dc7f6971a407573c7ea3cad6828786 |
|
MD5 | 9541edccb1e4fb08cc5c84667ede6ba2 |
|
BLAKE2b-256 | 5d8167dfc1147ce99a30df3730d682652a0452a254c9a8ef6e7853f7b336561a |