From 6e76e52087a8ecc084cfd784e1e4b18c364417bc Mon Sep 17 00:00:00 2001 From: J-Human Date: Fri, 12 Nov 2021 08:50:19 +0800 Subject: [PATCH] Use "const" over "var" in README (#1229) Also remove extra newline in `.eslintrc.yml` --- .eslintrc.yml | 1 - README.md | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 2e3163d87..4db6bea8d 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -88,4 +88,3 @@ rules: custom-inspect-method: - name: "[util.inspect.custom]" type: method - diff --git a/README.md b/README.md index 77d25e515..b3e5731c6 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,12 @@ Ping Pong Example ```js const Eris = require("eris"); -var bot = new Eris("Bot TOKEN"); // Replace TOKEN with your bot account's token +const bot = new Eris("Bot TOKEN", { + intents: [ + "guildMessages" + ] +}); bot.on("ready", () => { // When the bot is ready console.log("Ready!"); // Log "Ready!"