Skip to content

MaxTheSyntax/SyntaxToolkit

Repository files navigation

Syntax Toolkit

Still in development

Introduction

SyntaxToolkit is planned to have a set of tools that will merge multiple apps into one using the APi's of said programs. This app is still in its very early stages of development, so right now the only tool available is to view and play your Steam library.

How to use

Step 1

Create a new file called .env in the root project folder, and in it, type:

STEAM_API_KEY = 'API KEY';
STEAM_ID = 'STEAM ID';

DC_TOKEN = 'DISCORD BOT TOKEN';
APP_ID = 'DISCORD BOT APP ID';
GUILD_ID = 'DISCORD SERVER ID';

The server will run on localhost:80.

Click here for how to find your API key

Click here for how to find your Steam ID

Click here for how to setup a Discord bot

Step 2

Make sure you have npm installed. Open 3 terminals (ex. powershell) in the project directory. In one type:

npm i
npm run frontend

And in the second one type:

npm run backend

And in the last one, type:

npm run dcbot

Finding your API key

You can find your Steam API key on this website.

Finding your Steam ID

Step 1

Go to your Steam profile on this website or Steam client, hover over your profile name, and click on Profile.

Step 2

Once you're on your Steam profile, click on the Edit Profile button.

Step 3

On the Edit Profile page, scroll down until you see Custom URL. Delete any text that is in the textbox (it might already be empty) and copy your Steam ID into the URL below the textbox.

Discord bot setup

Step 1

Firstly, go to the Discord developer website and click on the New Application button in the top-right corner.

Step 2

Name your bot and make sure to accept the DTOS and Developer Policy

Step 3 (Getting Your Token and ID's)

App ID

You should find your app ID on the General Information page. Click on the copy button to copy it.

Token

Go to the Bot tab. You should find a Reset Token button under your bot's name. Click on it and make sure to copy the token, as otherwise you will have to regenerate it.

Guild ID

This is the ID of the server the bot will operate on. First, enable Developer Mode by going to the Advanced tab in settings.

After you have enabled Developer Mode, you should be able to right-click on any Discord server and see a Copy Server ID button. Click on it to get your Guild ID.

Getting your IP

If you plan to host the application on your computer for yourself, you can just type in localhost and you're good to go. But if you plan to use the site on a different machine, then you have to:

Step 1

Click Windows\Super + R, type in cmd into the windows that appeared, and click OK.

Step 2

Type in ipconfig if on Windows or ifconfig if on MacOS or Linux into the window that just appeared. The IPv4 section is what you're looking for.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published