From c45a10c950f1e0f71a677de7d3e21a28136670a0 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Wed, 15 Feb 2023 21:28:25 -0600 Subject: [PATCH] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3a60a0b..01631cd 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,8 @@ const client = new Client({ }); export const useContainer = Sern.makeDependencies({ build: root => root - .add({ '@sern/client': single(client) }) - .upsert({ '@sern/logger': single(new DefaultLogging()) }) + .add({ '@sern/client': single(() => client) }) + .upsert({ '@sern/logger': single(() => new DefaultLogging()) }) }); //View docs for all options @@ -86,9 +86,8 @@ client.login("YOUR_BOT_TOKEN_HERE"); const { CommandType, commandModule } = require('@sern/handler'); exports.default = commandModule({ - name: 'ping', - description: 'A ping pong command', type: CommandType.Slash, + description: 'A ping pong command', execute(ctx) { ctx.reply('pong!'); }