Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
docs(README.md) : added utility commands to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
animafps committed Jan 6, 2021
1 parent b6caaae commit b9ac796
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,29 @@ or from source `npm ci` or `npm install` then `npm start`
Note: When building or runing from source you have to input your own discord token in /src/config.json or in the environment variables under `DISCORD_TOKEN` before building or running

## Usage

<required|alternitive option>
[optional]

| Command | Arguments | Description | Example |
| -------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ----------------------- |
| /cm | <sens> <game|yaw> <cpi> | Converts Senstivity to cm/360 | /cm 6 ow 1600 |
| /deg | <sens> <game|yaw> <cpi> | Converts Senstivity to deg/mm | /deg 1.9 0.022 800 |
| /convert | <sens> <initial game|yaw> <output game|yaw> | Converts Different Sensitivities from one game to another | /convert 3 ow 0.022 |
| /fov | <input fov> <input aspect ratio|game> <output aspect ratio|game> | Converts fovs from one type to another or finds the equivilent for a differnet resolution aspect ratio | /fov 90 16:9 quake |
| /focal | <sens> <old fov> <new fov> | Focal Length Scales a desired sens between 2 fov values of the same type | /focal 3 90 100 |
| /sens | <cm/360> <game|yaw> <cpi/dpi> [-cm|-deg|-inch] | Converts cm/360|deg/mm|inch/360 to a game sensitivity | /sens 28 quake 1600 -cm |
### Main Commands

| Command | Arguments | Description | Example |
| -------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------- |
| /cm | <sens> <game|yaw> <cpi> | Converts Senstivity to cm/360 | `/cm 6 ow 1600` |
| /deg | <sens> <game|yaw> <cpi> | Converts Senstivity to deg/mm | `/deg 1.9 0.022 800` |
| /convert | <sens> <initial game|yaw> <output game|yaw> | Converts Different Sensitivities from one game to another | `/convert 3 ow 0.022` |
| /fov | <input fov> <input aspect ratio|game> <output aspect ratio|game> | Converts fovs from one type to another or finds the equivilent for a differnet resolution aspect ratio | `/fov 90 16:9 quake` |
| /focal | <sens> <old fov> <new fov> | Focal Length Scales a desired sens between 2 fov values of the same type | `/focal 3 90 100` |
| /sens | <cm/360> <game|yaw> <cpi/dpi> [-cm|-deg|-inch] | Converts cm/360|deg/mm|inch/360 to a game sensitivity | `/sens 28 quake 1600 -cm` |

### Utility Commands

| Command | Arguments | Description | Example |
| ---------- | -------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------- |
| /prefix | <prefix|none|default> | Shows or sets the command prefix. | `/prefix !` |
| /help | none | Displays a list of available commands, or detailed information for a specified command. | `/help` |
| /games | none | Displays the supported games for this bot | `/games` |
| /getobject | <game> <yaw|name|fovt> | Displays the object from the array assoiated for a game | `/getobject ow yaw` |

## Supported Games

Expand Down
2 changes: 1 addition & 1 deletion src/commands/math/sens.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = class sensCommand extends commando.Command {
'`/sens 28.5 quake 1600`',
'`/sens 28.5 ow 1600 -cm`',
'`/sens 1.21 cs 1600 -deg`',
'/sens 11.22 fortnite 1600 -inch',
'`/sens 11.22 fortnite 1600 -inch`',
],
format: '<cm/360|deg/mm|inch/360> <game|yaw> <cpi> [-cm|-deg|-inch]',

Expand Down

0 comments on commit b9ac796

Please sign in to comment.