Developer-DAO / Developer-DAO/discord-server-info

Connect bot to Discord

Open
#5 0 comments 0 reactions 1 assignee Claimed by @with-heart View on GitHub
Dominant language
TypeScript
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

In order to begin work on the `bot` package, we need to set up the basics:

- `dotenv` for reading `DISCORD_TOKEN` from the `.env` file
- install `discord.js`
- instantiate a new `discord.js#Client` with `Intents.FLAGS.GUILDS` to enable to it to connect to servers
- call `client.login` with `DISCORD_TOKEN` as the only arguments

This is the minimum we need to connect, so I think that should be enough to satisfy this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.