Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/the-programmers-hangout/tph-docs-bot


https://github.com/the-programmers-hangout/tph-docs-bot

Last synced: about 14 hours ago
JSON representation

Awesome Lists containing this project

README

        

# tphdocsbot

A Discord bot to display documentation

## Currently supported docs

* discord.js (includes main/stable branch, includes djs-voice, djs-builders and djs-collection documentations)
* Javascript ([mdn](https://developer.mozilla.org/))

## Docker

To build and run the Docker container locally:

```console
docker build . -t tphdocsbot:latest
```

```console
docker run -e TOKEN= -e APPLICATIONID= -e GUILDID= tphdocsbot:latest
```

### Cofiguration

* `TOKEN` [required] the Discord bot token to run under
* `APPLICATIONID` [required] the Discord bot's application ID. Get it from [Dev portal](https://discord.com/developers/applications) -> your bot -> General Information -> Application ID
* `GUILDID` (required to register on a specific guild) the guild id to register commands on, recommended to register on a specific guild for testing

### Registering

In order to register the commands globally, run

```console
npm run register-global-commands
```

For registering guild-specific commands (Recommended for testing)

```console
npm run register-guild-commands
```

Afterwards to reset guild commands, (To avoid duplication of global and guild-specific commands)

```console
npm run reset-guild-commands
```