Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #34 from Mirasaki/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Mirasaki authored Aug 31, 2022
2 parents 2cb533d + e67e76c commit 606240e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Come try the bot yourself in our official [support server](https://discord.gg/jK
![Demo](https://i.imgur.com/vzoS6cq.gif)

## Step-by-step Video Guide

The people at [Custom DayZ Services](https://discord.gg/customdayzservices) were kind enough to provide us with a step-by-step video guide/tutorial on how to set up the bot and get it online & responsive. The video is located in our [support server on Discord](https://discord.gg/jKja5FBnYf).

[Click me after joining to jump to guide!](https://discord.com/channels/793894728847720468/976508455110193152/976509263818145882)
Expand Down Expand Up @@ -55,7 +56,7 @@ The people at [Custom DayZ Services](https://discord.gg/customdayzservices) were
- `DISCORD_BOT_TOKEN`: After creating your bot on the link above, navigate to `Bot` in the left-side menu to reveal your bot-token
- `CFTOOLS_API_APPLICATION_ID`: Application ID from your [CFTools Developer Apps](https://developer.cftools.cloud/applications) - Authorization has to be granted by navigating to the `Grant URL` that's displayed in your app overview
- `CFTOOLS_API_SECRET`: Same as above, click `Reveal Secret`
- `CFTOOLS_SERVER_API_ID`: Click `Manage Server` in your [CF Cloud Panel](https://app.cftools.cloud/dashboard)
- `CFTOOLS_SERVER_API_ID`: Click `Manage Server` in your [CF Cloud Panel](https://app.cftools.cloud/dashboard) > `Settings` > `API Key` > `Server ID`
7. Add the bot to your server by using the following link: (Replace CLIENT-ID with your CLIENT_ID from before) <https://discord.com/api/oauth2/authorize?client_id=CLIENT-ID&permissions=0&scope=bot%20applications.commands>
8. Run the command `node .` in the project root folder/directory or `npm run start` if you have [PM2](https://pm2.keymetrics.io/) installed to keep the process alive.

Expand Down
21 changes: 19 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@mirasaki/logger": "^1.0.5",
"cftools-sdk": "^1.8.0",
"common-tags": "^1.8.2",
"cross-fetch": "^3.1.5",
"discord.js": "^14.1.2",
"dotenv": "^16.0.0",
"express": "^4.18.1"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/cftClient.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const logger = require('@mirasaki/logger');
const cftSDK = require('cftools-sdk');
const fetch = require('fetch');
const fetch = require('cross-fetch');

// Destructure our environmental variables
const {
Expand Down

0 comments on commit 606240e

Please sign in to comment.