From efe49391e88a98c457174dcc01b79bdda321893c Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Wed, 27 Dec 2023 01:51:41 -0600 Subject: [PATCH] Update README.md --- README.md | 40 +++------------------------------------- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index dcaa22ac..8bbda84b 100644 --- a/README.md +++ b/README.md @@ -19,28 +19,16 @@ - Lightweight. Does a lot while being small. - Latest features. Support for discord.js v14 and all of its interactions. - Start quickly. Plug and play or customize to your liking. -- Switch and customize how errors are handled, logging, and more. - works with [bun](https://bun.sh/) and [node](https://nodejs.org/en) out the box! - Use it with TypeScript or JavaScript. CommonJS and ESM supported. - Active and growing community, always here to help. [Join us](https://sern.dev/discord) - Unleash its full potential with a powerful CLI and awesome plugins. ## 📜 Installation - -```sh -npm install @sern/handler -``` - -```sh -yarn add @sern/handler -``` - -```sh -pnpm add @sern/handler -``` +[Start here!!](https://sern.dev/docs/guide/walkthrough/new-project) ## 👶 Basic Usage -
ping.ts +
ping.ts ```ts export default commandModule({ @@ -54,7 +42,7 @@ export default commandModule({ }); ```
-
modal.ts +
modal.ts ```ts export default commandModule({ @@ -74,29 +62,7 @@ export default commandModule({ }) ```
-
index.ts - - -```ts -import { Client, GatewayIntentBits } from 'discord.js'; -import { Sern, single } from '@sern/handler'; -//client has been declared previously -//Version 3 -await makeDependencies(({ add }) => { - .add('@sern/client', single(() => client) ) -}); - -//View docs for all options -Sern.init({ - defaultPrefix: '!', // removing defaultPrefix will shut down text commands - commands: 'src/commands', - // events: 'src/events' (optional), -}); - -client.login("YOUR_BOT_TOKEN_HERE"); -``` -
## 🤖 Bots Using sern - [Community Bot](https://github.com/sern-handler/sern-community), the community bot for our [discord server](https://sern.dev/discord).