İçeriğe geç

Project config

Bu içerik henüz dilinizde mevcut değil.

makecord.json sits at the root of every project. This table is generated from the schema the runtime validates against.

AlanTipVarsayılanAçıklama
specVersionzorunlu1—Format version of the project files
namezorunlustring—Shown in the IDE
runtimestring"^0.1.0"Semver range of @makecord/runtime the project targets
intentsintent[]["Guilds"]Gateway intents to request from Discord
devGuildIdstring—Register slash commands to this server only, so changes show up instantly
pluginsstring[][]npm package names of plugins to load. The core plugin is always loaded
secretsstring[]["DISCORD_TOKEN"]Names of the secrets the bot expects. Values never live in the project
cacheobject—discord.js cache limits. Keeps memory flat in big servers
cache.messagesnumber50Messages kept per channel
cache.membersnumber200Members kept per server (the bot itself is always kept)
cache.presencesnumber0Presences kept per server
cache.reactionsnumber0Reactions kept per message
cache.sweepIntervalSecondsnumber3600Seconds between sweeps of messages older than 30 minutes. 0 turns sweeping off
makecord.json
{
"specVersion": 1,
"name": "My bot",
"runtime": "^0.1.0",
"intents": ["Guilds", "GuildMembers"],
"devGuildId": "123456789012345678",
"plugins": [],
"secrets": ["DISCORD_TOKEN"],
"cache": { "messages": 50, "members": 200, "presences": 0, "reactions": 0, "sweepIntervalSeconds": 3600 }
}