From 4a4fb16ee7380e4bbdbcf0edb5e84d813119a185 Mon Sep 17 00:00:00 2001 From: Skillz Date: Sat, 20 Jun 2020 08:06:53 -0400 Subject: [PATCH] updating docs example getting started --- docs/docs/gettingstarted.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/docs/gettingstarted.md b/docs/docs/gettingstarted.md index b60e0ea55..8da6b46ce 100755 --- a/docs/docs/gettingstarted.md +++ b/docs/docs/gettingstarted.md @@ -44,10 +44,11 @@ Starting with Discordeno is very simple, you can start from scratch without any import Client from "https://raw.githubusercontent.com/Skillz4Killz/Discordeno/v5/module/client.ts"; import { sendMessage } from "https://raw.githubusercontent.com/Skillz4Killz/Discordeno/v5/handlers/channel.ts"; import { Intents } from "https://raw.githubusercontent.com/Skillz4Killz/Discordeno/v5/types/options.ts"; +import config from "./config.ts"; -const BotOptions = { - token: "token", - intents: [Intents.GUILD_MESSAGES], +Client({ + token: config.token, + intents: [Intents.GUILD_MESSAGES, Intents.GUILDS], eventHandlers: { ready: () => { console.log(`Logged!`); @@ -58,9 +59,7 @@ const BotOptions = { } } } -}; - -Client(BotOptions); +}); ``` Alternatively, you can use boilerplate template repositories that were created by wonderful developers. This will get the base of your bot pre-built for you. Overtime, developers create other command frameworks for this library and they will be listed here: