Skip to content

Commit

Permalink
Use "const" over "var" in README (#1229)
Browse files Browse the repository at this point in the history
Also remove extra newline in `.eslintrc.yml`
  • Loading branch information
J-Human authored Nov 12, 2021
1 parent 5db41aa commit 6e76e52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ rules:
custom-inspect-method:
- name: "[util.inspect.custom]"
type: method

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 6e76e52

Please sign in to comment.