Skip to content

Commit

Permalink
added support for playback from fandom (wikia) cdn. replaced depracat…
Browse files Browse the repository at this point in the history
…ed substr calls with slice (#8)
  • Loading branch information
myozka authored Jan 16, 2023
1 parent 996319c commit 7bc0a9f
Show file tree
Hide file tree
Showing 6 changed files with 564 additions and 13 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ I don't have a permanent place to host this yet, and I doubt it ever will. If so

AOE-taunt-bot also utilizes a config.json file for various canfigurations.

**Naming**: Default name for the file is `config.json` and it is located at the root folder of the project. File location and name can be changed but must be supplied as a running argument.
**Naming**: Default name for the file is `config.json` and it should be located at the root folder of the project. File location and name can be changed but must be supplied as a command-line argument.

```
npm start
Expand All @@ -38,7 +38,7 @@ npm start my_config.json

### Options

Fully typed structure of config file is given below
Fully typed structure of a sample config file is given below

```
{
Expand All @@ -47,7 +47,8 @@ Fully typed structure of config file is given below
maxConcurrentPlayers: number,
disconnectAferInactivityMs: number,
dataDir: string,
myInstantsEnabled: boolean
myInstantsEnabled: boolean,
mediawikiCDNEnabled: boolean
}
}
```
Expand All @@ -62,3 +63,5 @@ Fully typed structure of config file is given below

**botConfig.myInstantsEnabled**: The bot supports replaying buttons from `myinstants.com`. This feature can be toggled by this config. Default is true.

**botConfig.mediawikiCDNEnabled**: The bot supports playing audio from `*.fandom.com`'s CDN (MediaWiki CDN). This feature can be toggled by this config. Default is true.

Loading

0 comments on commit 7bc0a9f

Please sign in to comment.