From d56524b11b095a418bf8a08606f42e60bd2600cd Mon Sep 17 00:00:00 2001 From: Tricked <72335827+Tricked-dev@users.noreply.github.com> Date: Fri, 17 Dec 2021 16:07:48 +0100 Subject: [PATCH] Update README.md --- README.md | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5dafed1..80104a5 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,18 @@ Natico is designed to be a low level and extendable framework for [Discordeno](h
Normal natico | -Using the natico plugin | +Normal natico | +Using the natico plugin |
---|---|---|---|
- + | + ```ts -import { NaticoClient, NaticoClientOptions, NaticoCommandHandler } from "https://deno.land/x/natico/mod.ts"; +import { + NaticoClient, + NaticoClientOptions, + NaticoCommandHandler +} from "https://deno.land/x/natico/mod.ts"; class BotClient extends NaticoClient { constructor(public options: NaticoClientOptions) { super(options); @@ -39,12 +43,14 @@ const botClient = new BotClient({ }); botClient.start(); ``` - + you will have to apply the plugins manually using the naticoclient.plugn() function - - - | - + + + + | + + ```ts import { enableNaticoPlugin, NaticoBot, NaticoPluginOptions, withPlugins } from "../src/plugins/NaticoPlugin.ts"; import { enableCachePlugin, enableCacheSweepers } from "https://deno.land/x/discordeno_cache_plugin@0.0.9/mod.ts"; @@ -77,7 +83,7 @@ async function startUp() { startUp(); ``` - + |