Make an npmrc file, then use the code below:
require('@zopenzop/initializer')('<module-name>', token, mongo_uri);
-
Schemas: (declared under
client.schemas
)-
Bot Schema
Usage -
client.schemas.bot
Fields -
defaultPrefix
(Default bot prefix)devs
(User IDs of devs)
-
Command Schema
Usage -
client.schemas.command
Fields -
guildId
(Guild ID of document)command
(Name of command)disabled
(True or False)roles
(Array of role IDs whitelisted for this command)channels
(Array of channel IDs whitelisted for this command)
-
Server settings Schema
Usage -
client.schemas.server_settings
Fields -
guildId
(Guild ID of document)premium
(True or False)staff
role
(Role ID)channel
(Channel ID)
suggestionChannel
(Suggestion channel ID)reportChannel
(Report Channel ID)
-
-
Functions: (declared under
client.functions
)
findPrefixes(guildId) //Fetches prefixes for given guild ID from the database
cmdInfo(guildId, commandName) //Fetches prefixes for given guild ID from the database
sendEmbed(message, title, description) //Sends an embed to message.channel
sendSlashEmbed(interaction, title, description, true) //Sends an embed to interaction.channel
isInteger(value) //Checks if given value is an integer
isNumeric(value) //Checks if given value is numeric
isImgLink(URL) //Checks if given URL points to an image
isHexColor(value) //Checks if given value is a Hexadecimal Color Code
- Fonts: (can be directly used in Canvas)
- Roboto
- Roboto-Medium
- Roboto-Bold