Skip to content

Commit 18bd2f6

Browse files
author
xyzjesper
committed
Improve config docs and move to top of the node
1 parent 9910cc8 commit 18bd2f6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/main/config.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,18 @@ export async function configStartup() {
8787

8888
doc.commentBefore = ` DisBot Config v${botData.configVersion} of version ${botData.version}\n Read more: https://doc.xyzhub.link/s/disbot/doc/config-yXEob11woF`;
8989

90-
generateConfigCommentIn(doc, ["Bot", "DiscordBotToken"], " Discord Bot Token from https://discord.com/developers/applications/<bot-id>/bot")
91-
generateConfigCommentIn(doc, ["Bot", "DiscordApplicationId"], " Discord Bot Token from https://discord.com/developers/applications/<bot-id>/information")
92-
generateConfigCommentIn(doc, ["Bot", "DiscordClientSecret"], " Discord Bot Token from https://discord.com/developers/applications/<bot-id>/oauth2")
93-
generateConfigCommentIn(doc, ["Bot", "AdminGuildId"], " Bot Admin Guild for Internal Commands (https://github.com/DisBotDevelopment/DisBot-Bot/tree/main/src/internal)")
94-
generateConfigCommentIn(doc, ["Bot", "ShardCount"], " Use this only if you know what you are doing")
95-
generateConfigCommentIn(doc, ["Modules", "Verification", "VerifyRedirectUrl"], " Redirect from the Auth")
96-
generateConfigCommentIn(doc, ["Modules", "Verification", "VerifyAuthUrl"], " Discord Auth Url from the https://discord.com/developers/applications/<bot-id>/oauth2 Portal")
97-
generateConfigCommentIn(doc, ["Modules", "Bot", "NewsChannel1"], " Only for DisBots Discord Server as Info Channel")
98-
generateConfigCommentIn(doc, ["Modules", "Customer", "PelicanApi"], " Currently in Development and not inclued in the Bot (CODE: https://github.com/DisBotDevelopment/DisBot-Bot/tree/main/templates/unusedModules/customer)")
99-
generateConfigCommentIn(doc, ["Modules", "Notifications", "SpotifyClientId"], " Auth for your notifications")
100-
generateConfigCommentIn(doc, ["Modules", "Vanity", "VanityPort"], " Port for the Redirect of the vanity.")
101-
generateConfigCommentIn(doc, ["Modules", "Vanity", "MainPageRedirect"], " Main Page Redirect to any site (dchat.link -> https://google.com)")
90+
generateConfigCommentBeforeIn(doc, ["Bot", "DiscordBotToken"], " Discord Bot Token from https://discord.com/developers/applications/<bot-id>/bot")
91+
generateConfigCommentBeforeIn(doc, ["Bot", "DiscordApplicationId"], " Discord Bot Token from https://discord.com/developers/applications/<bot-id>/information")
92+
generateConfigCommentBeforeIn(doc, ["Bot", "DiscordClientSecret"], " Discord Bot Token from https://discord.com/developers/applications/<bot-id>/oauth2")
93+
generateConfigCommentBeforeIn(doc, ["Bot", "AdminGuildId"], " Bot Admin Guild for Internal Commands (https://github.com/DisBotDevelopment/DisBot-Bot/tree/main/src/internal)")
94+
generateConfigCommentBeforeIn(doc, ["Bot", "ShardCount"], " Use this only if you know what you are doing")
95+
generateConfigCommentBeforeIn(doc, ["Modules", "Verification", "VerifyRedirectUrl"], " Redirect from the Auth")
96+
generateConfigCommentBeforeIn(doc, ["Modules", "Verification", "VerifyAuthUrl"], " Discord Auth Url from the https://discord.com/developers/applications/<bot-id>/oauth2 Portal")
97+
generateConfigCommentBeforeIn(doc, ["Modules", "Bot", "NewsChannel1"], " Only for DisBots Discord Server as Info Channel")
98+
generateConfigCommentBeforeIn(doc, ["Modules", "Customer", "PelicanApi"], " Currently in Development and not inclued in the Bot (CODE: https://github.com/DisBotDevelopment/DisBot-Bot/tree/main/templates/unusedModules/customer)")
99+
generateConfigCommentBeforeIn(doc, ["Modules", "Notifications", "SpotifyClientId"], " Auth for your notifications")
100+
generateConfigCommentBeforeIn(doc, ["Modules", "Vanity", "VanityPort"], " Port for the Redirect of the vanity.")
101+
generateConfigCommentBeforeIn(doc, ["Modules", "Vanity", "MainPageRedirect"], " Main Page Redirect to any site (dchat.link -> https://google.com)")
102102

103103
generateConfigComment(doc, "Other", " Internal use and currently in rework (API Update)")
104104
generateConfigCommentBefore(doc, "Logging", " DisBot Logs and Debug Logging (Webhook)")

0 commit comments

Comments
 (0)