Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes authored Dec 27, 2023
1 parent 3140f80 commit efe4939
Showing 1 changed file with 3 additions and 37 deletions.
40 changes: 3 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<details open><summary>ping.ts</summary>
<details><summary>ping.ts</summary>

```ts
export default commandModule({
Expand All @@ -54,7 +42,7 @@ export default commandModule({
});
```
</details>
<details open><summary>modal.ts</summary>
<details><summary>modal.ts</summary>

```ts
export default commandModule({
Expand All @@ -74,29 +62,7 @@ export default commandModule({
})
```
</details>
<details open><summary>index.ts</summary>


```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");
```
</details>

## 🤖 Bots Using sern
- [Community Bot](https://github.com/sern-handler/sern-community), the community bot for our [discord server](https://sern.dev/discord).
Expand Down

0 comments on commit efe4939

Please sign in to comment.