Skip to content

Commit

Permalink
Merge pull request #362 from harmonyland/change-version
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
AkiaCode authored Oct 9, 2023
2 parents 1f731a3 + 9ac7489 commit e504976
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,20 @@

You can import the package from https://deno.land/x/harmony/mod.ts (with latest version) or can add a version too, and raw GitHub URL (latest unpublished version) https://raw.githubusercontent.com/harmonyland/harmony/main/mod.ts too.

We also have a (fancy) custom registry for importing Harmony! It's at [code.harmony.rocks](https://code.harmony.rocks), example import URL: `https://code.harmony.rocks/v2.6.1`.

## Usage (Node.js)

You can install and use the NPM package published under `@harmonyland/harmony`.

## Documentation

Documentation is available [main branch](https://doc.deno.land/https/raw.githubusercontent.com/harmonyland/harmony/main/mod.ts) or [latest stable version (v2.6.1)](https://doc.deno.land/https/deno.land/x/harmony@v2.6.1/mod.ts). You can also check out the [guide](https://harmony.mod.land).
Documentation is available [main branch](https://doc.deno.land/https/raw.githubusercontent.com/harmonyland/harmony/main/mod.ts) or [latest stable version](https://doc.deno.land/https/deno.land/x/harmony/mod.ts). You can also check out the [guide](https://harmony.mod.land).

## Example

For a quick example, run this:

```bash
deno run --allow-net https://deno.land/x/harmony@v2.6.1/examples/ping.ts
deno run --allow-net https://deno.land/x/harmony/examples/ping.ts
```

And input your bot's token.
Expand All @@ -48,7 +46,7 @@ import {
Client,
Message,
GatewayIntents
} from 'https://deno.land/x/harmony@v2.6.1/mod.ts'
} from 'https://deno.land/x/harmony/mod.ts'

const client = new Client({
intents: [
Expand Down Expand Up @@ -83,7 +81,7 @@ import {
Command,
CommandContext,
GatewayIntents
} from 'https://deno.land/x/harmony@v2.6.1/mod.ts'
} from 'https://deno.land/x/harmony/mod.ts'

const client = new CommandClient({
prefix: '!',
Expand Down Expand Up @@ -124,7 +122,7 @@ import {
command,
CommandContext,
GatewayIntents
} from 'https://deno.land/x/harmony@v2.6.1/mod.ts'
} from 'https://deno.land/x/harmony/mod.ts'

class MyClient extends CommandClient {
constructor() {
Expand Down

0 comments on commit e504976

Please sign in to comment.