Developer-DAO / Developer-DAO/discord-server-info
Connect bot to Discord
Open
- 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
Assessment
This issue has not been assessed yet.