fix: prettier changes again

This commit is contained in:
Jacob Nguyen
2022-05-19 23:16:33 -05:00
parent 571a8044b0
commit d5bb9922df
2 changed files with 10 additions and 5 deletions

View File

@@ -1,19 +1,22 @@
# Sern Handler # Sern Handler
<a href="https://www.npmjs.com/package/sern-handler"> <a href="https://www.npmjs.com/package/sern-handler">
<img src="https://img.shields.io/npm/v/sern_handler?maxAge=3600" alt="NPM version" /></a> <a href="https://www.npmjs.com/package/sern-handler"><img src="https://img.shields.io/npm/dt/sern_handler?maxAge=3600" alt="NPM downloads" /></a> <a href="https://www.npmjs.com/package/sern-handler"><img src="https://img.shields.io/badge/builds-stable" alt="Builds Passing"></a> <img src="https://img.shields.io/npm/v/sern_handler?maxAge=3600" alt="NPM version" /></a> <a href="https://www.npmjs.com/package/sern-handler"><img src="https://img.shields.io/npm/dt/sern_handler?maxAge=3600" alt="NPM downloads" /></a> <a href="https://www.npmjs.com/package/sern-handler"><img src="https://img.shields.io/badge/builds-stable" alt="Builds Passing"></a>
Sern can automate and streamline development of your discord bot with new version compatibility and full customization. Sern can automate and streamline development of your discord bot with new version compatibility and full customization.
- A reincarnation of [this old project](https://github.com/jacoobes/sern_handler) - A reincarnation of [this old project](https://github.com/jacoobes/sern_handler)
## Installation ## Installation
```sh ```sh
npm install sern-handler npm install sern-handler
``` ```
```sh ```sh
yarn add sern-handler yarn add sern-handler
``` ```
```sh ```sh
pnpm add sern-handler pnpm add sern-handler
``` ```
@@ -21,6 +24,7 @@ pnpm add sern-handler
## Basic Usage ## Basic Usage
#### ` index.js ` #### ` index.js `
```js ```js
import { Client, Intents } from 'discord.js'; import { Client, Intents } from 'discord.js';
import { Sern } from 'sern-handler'; import { Sern } from 'sern-handler';
@@ -54,6 +58,7 @@ client.login(token);
``` ```
#### ` ping.js ` #### ` ping.js `
```js ```js
import { Sern, Types } from 'sern-handler'; import { Sern, Types } from 'sern-handler';
import { Ok } from 'ts-results'; import { Ok } from 'ts-results';
@@ -78,8 +83,8 @@ See [documentation](https://sern-handler.js.org) for TypeScript examples and mor
## Contribute ## Contribute
- Pull up on [issues](https://github.com/sern-handler/Sern/issues) and tell us, if there are bugs - Pull up on [issues](https://github.com/sern-handler/Sern/issues) and tell us, if there are bugs
- All kinds of contributions are welcomed! - All kinds of contributions are welcomed!
## TODO ## TODO

View File

@@ -1,4 +1,5 @@
import { hasPrefix, fmt, isNotFromBot } from '../src/handler/utilities/messageHelpers'; import { fmt, hasPrefix, isNotFromBot } from '../src/handler/utilities/messageHelpers';
describe('FUNCTIONS', () => { describe('FUNCTIONS', () => {
test('If hasPrefix is a function', () => { test('If hasPrefix is a function', () => {
expect(typeof hasPrefix).toBe('function'); expect(typeof hasPrefix).toBe('function');
@@ -9,5 +10,4 @@ describe('FUNCTIONS', () => {
test('if isBot is a function', () => { test('if isBot is a function', () => {
expect(typeof isNotFromBot).toBe('function'); expect(typeof isNotFromBot).toBe('function');
}); });
}); });