Skip to content

Commit 2321b9e

Browse files
committed
Update documentation for new credential application
1 parent 70d1ab3 commit 2321b9e

11 files changed

+30
-38
lines changed

.dockerignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
docs/
2-
node_modules/
3-
src/credentialApplication/node_modules/
2+
node_modules/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ A NodeJS Discord Bot that uses the [rustplus.js](https://github.com/liamcottle/r
4646
4747
## **Credentials**
4848

49-
> You can get your credentials by running the `rustplusplus credential application`. Download it [here](https://github.com/alexemanuelol/rustplusplus-credential-application/releases/download/v1.2.0/rustplusplus-1.2.0-win-x64.exe)
49+
> You can get your credentials by running the `rustplusplus credential application`. Download it [here](https://github.com/alexemanuelol/rustplusplus-credential-application/releases/download/v1.4.0/rustplusplus-1.4.0-win-x64.exe)
5050
5151

5252
## **How to run the bot**

docs/commands.md

+6-13
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Slash Command | Description
1414
[**/blacklist**](commands.md#blacklist) | Blacklist a user from using the bot.
1515
[**/cctv**](commands.md#cctv) | Posts CCTV codes for a monument.
1616
[**/craft**](commands.md#craft) | Display the cost to craft an item.
17-
[**/credentials**](commands.md#credentials) | Set/Clear the FCM Credentials for the user account.
17+
[**/credentials**](commands.md#credentials) | Set/Clear the Credentials for the user account.
1818
[**/decay**](commands.md#decay) | Display the decay time of an item.
1919
[**/help**](commands.md#help) | Display help message.
2020
[**/item**](commands.md#item) | Get the details of an item.
@@ -105,27 +105,20 @@ Subcommand | Options | Description | Required
105105

106106
## **/credentials**
107107

108-
> **Add/Remove the FCM Credentials for the user account.**
108+
> **Add/Remove the Credentials for the user account.**
109109
110110
Subcommand | Options | Description | Required
111111
---------- | ------- | ----------- | --------
112-
`add` |   | Add FCM Credentials. |  
113-
  | `keys_private_key` | Keys Private Key. | `True`
114-
  | `keys_public_key` | Keys Public Key. | `True`
115-
  | `keys_auth_secret` | Keys Auth Secret. | `True`
116-
  | `fcm_token` | FCM Token. | `True`
117-
  | `fcm_push_set` | FCM Push Set. | `True`
118-
  | `gcm_token` | GCM Token. | `True`
119-
  | `gcm_android_id` | FCM Android ID. | `True`
112+
`add` |   | Add Credentials. |  
113+
  | `gcm_android_id` | GCM Android ID. | `True`
120114
  | `gcm_security_token` | GCM Security Token. | `True`
121-
  | `gcm_app_id` | GCM App ID. | `True`
122115
  | `steam_id` | Steam ID. | `True`
123116
  | `issued_date` | Issued date of the credentials. | `True`
124117
  | `expire_date` | Expire date of the credentials. | `True`
125118
  | `hoster` | Should be hoster. | `False`
126-
`remove` |   | Remove FCM Credentials. |  
119+
`remove` |   | Remove Credentials. |  
127120
  | `steam_id` | Steam ID. | `False`
128-
`show` |   | Show all registered FCM Credentials. |  
121+
`show` |   | Show all registered Credentials. |  
129122
`set_hoster` |   | Set the hoster. |  
130123
  | `steam_id` | Steam ID. | `False`
131124

docs/credentials.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# FCM Credentials Documentation
1+
# Credentials Documentation
22

3-
> To be able to use an instance of the bot properly, you want to setup your FCM Credentials. Adding these credentials makes it possible for you to pair with servers as well as connecting to them.
3+
> To be able to use an instance of the bot properly, you want to setup your Credentials. Adding these credentials makes it possible for you to pair with servers as well as connecting to them.
44
5-
## Retrieving FCM Credentials
5+
## Retrieving Credentials
66

7-
* Download and install the [rustplusplus credential application](https://github.com/alexemanuelol/rustplusplus-credential-application/releases/download/v1.2.0/rustplusplus-1.2.0-win-x64.exe)
7+
* Download and install the [rustplusplus credential application](https://github.com/alexemanuelol/rustplusplus-credential-application/releases/download/v1.4.0/rustplusplus-1.4.0-win-x64.exe)
88
* Once downloaded and installed, open it and press the button `Connect with Rust+`.
99

10-
![rustplusplus FCM Credential Application Image](images/bot_setup/fcm_credential_application_connect.png)
10+
![rustplusplus Credential Application Image](images/bot_setup/fcm_credential_application_connect.png)
1111

1212
* Another window will pop up where you need to login with your Steam Account.
1313

@@ -20,15 +20,15 @@
2020

2121
* Paste the Slash command in your Discord Server Text Channel. Which Text Channel you run the Slash Command is not important, as long as the bot has access to it.
2222

23-
![FCM Credentials discord Image](images/bot_setup/credentials_discord.png)
23+
![Credentials discord Image](images/bot_setup/credentials_discord.png)
2424

2525
* This process is the same for the owner of the bot as well as any teammate that want to register their credentials (mainly for the purpose to extend the usage of the leader command). Once a teammate have registered their credentials, they just need to go inside the game and pair with the server. Which teammates that have paired with the server can be seen in the information channel, they should have the P icon beside their name, see below:
2626

2727
![Teammates Paired with Server](images/bot_setup/teammates_paired.png)
2828

29-
## Why is FCM Credentials necessary?
29+
## Why is Credentials necessary?
3030

31-
FCM Credentials are necessary in order to get the following:
31+
Credentials are necessary in order to get the following:
3232

3333
* Server Pairing Notifications
3434
* Smart Devices Pairing Notifications

docs/credentials_web_version.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# FCM Credentials Documentation (Web Version)
1+
# Credentials Documentation (Web Version)
22

3-
> To be able to use an instance of the bot properly, you need to set up your FCM Credentials. Adding these credentials makes it possible for you to pair with servers as well as connecting to them. Note that unlike the previous .exe version, the web version requires Chrome or Firefox browsers.
3+
> To be able to use an instance of the bot properly, you need to set up your Credentials. Adding these credentials makes it possible for you to pair with servers as well as connecting to them. Note that unlike the previous .exe version, the web version requires Chrome or Firefox browsers.
44
55
## **❗️Before You Start**
66
> Make sure you are using **`Chrome or Firefox browsers`** before starting the credential setup process.
77
> This is because the web version uses browser extensions to simplify the process, which is more lightweight and convenient compared to the relatively heavy .exe application.
88
9-
## Retrieving FCM Credentials
9+
## Retrieving Credentials
1010

1111
1. **First, navigate to the [rustplusplus-credentials page](https://rustplusplus-credentials.netlify.app/).**
12-
12+
1313
2. **Click the Install Extension button located at the top right corner of the page to install the extension, then refresh the page. (After installation, the Log In button should be visible)**
1414

1515
> [rustPlusPlus-Credentials Chrome Extension](https://chromewebstore.google.com/detail/rustplusplus-credential-a/ooahmkklkanfgfmphpknpcgdpdcoikhe)
1616
1717
> [rustPlusPlus-Credentials Firefox Extension](https://addons.mozilla.org/en-US/firefox/addon/rustplusplus-credential-app)
1818
1919
![rustplusplus Click Install Extension Image](images/bot_setup/click_install_extension.png)
20-
20+
2121
![rustplusplus After Click Install Extension Image](images/bot_setup/after_click_install_extension.png)
2222

2323
3. **Click the Log In button to proceed with the Steam login.**
@@ -27,7 +27,7 @@
2727
4. **After logging in, you will be redirected to the display page where the slash command will be shown `/credentials add ....`**
2828

2929
![rustplusplus Display Page](images/bot_setup/rustplusplus_display_page.png)
30-
30+
3131
5. **Click `Copy` to copy the Slash Command.**
3232

3333
![Credentials copy Image](images/bot_setup/click_copy_to_clipboard.png)
@@ -40,9 +40,9 @@
4040

4141
![Teammates Paired with Server](images/bot_setup/teammates_paired.png)
4242

43-
## Why are FCM Credentials Necessary?
43+
## Why are Credentials Necessary?
4444

45-
FCM Credentials are necessary to enable the following features:
45+
Credentials are necessary to enable the following features:
4646

4747
* Server Pairing Notifications
4848
* Smart Devices Pairing Notifications

docs/discord_text_channels.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
## Servers Channel
5454

55-
> The Server Channel lists all the paired Rust Servers. Given that you have setup your FCM Credentials properly, once you pair a Rust Server In-Game via `ESC -> Rust+ -> Pair With Server`, it should automatically appear in the `servers` channel. From there you can decide which server you want the bot to connect to by clicking the `CONNECT` button for that server.
55+
> The Server Channel lists all the paired Rust Servers. Given that you have setup your Credentials properly, once you pair a Rust Server In-Game via `ESC -> Rust+ -> Pair With Server`, it should automatically appear in the `servers` channel. From there you can decide which server you want the bot to connect to by clicking the `CONNECT` button for that server.
5656
5757
The server embed displays a bunch of information. The title of the embed is the name of the server. The Battlemetrics Id is also displayed as well as if the server is streamer mode or not. The Description of the embed is basically the description of the Rust Server. Here you can also find the connect information that could be found in `information` channel. You can also see who is the hoster of the bot for the server.
5858
<br>

docs/documentation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
* [**Installation**](installation.md)
66
* [**Discord Bot Setup**](discord_bot_setup.md)
7-
* [**FCM Credentials**](credentials.md) OR [**FCM Credentials(WebVersion)**](credentials_web_version.md)
7+
* [**Credentials**](credentials.md) OR [**Credentials(WebVersion)**](credentials_web_version.md)
88
* [**Pair & Connect Server**](pair_and_connect_to_server.md)
99
* [**Commands**](commands.md)
1010
* [**Discord Text Channels**](discord_text_channels.md)

docs/full_list_features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- **/blacklist** - Blacklist a user from using the bot.
77
- **/cctv** - Get cctv camera codes for monuments.
88
- **/craft** - Display the cost to craft an item.
9-
- **/credentials** - Setup FCM-Credentials.
9+
- **/credentials** - Setup Credentials.
1010
- **/decay** - Display the decay time of an item.
1111
- **/help** - Get help message.
1212
- **/item** - Get the details of an item.

docs/pair_and_connect_to_server.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pair and Connect to a Server
22

3-
1. Make sure that you've setup the FCM Credentials and that the bot is currently running (`npm start run`).
3+
1. Make sure that you've setup the Credentials and that the bot is currently running (`npm start run`).
44
2. Login to the Rust server you want to play.
55
3. Click `ESC` and then on `Rust+`.
66
4. Click `PAIR WITH SERVER`.

docs/smart_devices.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Smart Devices
22

3-
> Smart Devices is an umbrella term for three different devices, `Smart Switches`, `Smart Alarms` and `Storage Monitors`. To pair a Smart Device with rustplusplus, make sure you've [setup the FCM-Credentials](credentials.md). When the FCM-Credentials are setup, you just need a `wire tool` and start pairing like you would with the [Rust+ Companion App](https://rust.facepunch.com/companion). Once you've paired your Smart Devices, they should appear in their respective Discord Text-Channel (`switches`, `alarms` or `storagemonitors`).
3+
> Smart Devices is an umbrella term for three different devices, `Smart Switches`, `Smart Alarms` and `Storage Monitors`. To pair a Smart Device with rustplusplus, make sure you've [setup the Credentials](credentials.md). When the Credentials are setup, you just need a `wire tool` and start pairing like you would with the [Rust+ Companion App](https://rust.facepunch.com/companion). Once you've paired your Smart Devices, they should appear in their respective Discord Text-Channel (`switches`, `alarms` or `storagemonitors`).
44
<br>
55
66
It is possible to change the display image for all the different Smart Devices by running the corresponding Slash Command. The Slash Commands to change Smart Device images is `/switch`, `/alarm` and `/storagemonitor`.

src/discordTools/discordButtons.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ module.exports = {
516516
module.exports.getButton({
517517
style: Discord.ButtonStyle.Link,
518518
label: 'CREDENTIALS',
519-
url: 'https://github.com/alexemanuelol/rustplusplus-Credential-Application/releases/v1.2.0'
519+
url: 'https://github.com/alexemanuelol/rustplusplus-Credential-Application/releases/v1.4.0'
520520
})
521521
)];
522522
},

0 commit comments

Comments
 (0)