The contents of this repository are intended to be used with its sister repository, Roblox-To-Discord-Bot. However, it can be used without it but you will need to find a method to generate OAuth 2.0 links.
If you wish to build and run this project on your own machine, please:
-
Install Node.js. Instructions on how to install Node on your system: Downloading and Installing Node.js and npm
-
Run
npm i. -
Create a
.envfile inside the project's folder, and have it contain the following:SUPABASE_URL=supabase_url SUPABASE_KEY=supabase_api_key ROBLOX_CLIENT_ID=roblox_client_id ROBLOX_SECRET=roblox_secret_key -
Create an OAuth 2.0 App on ROBLOX with the
openidscope. Please ensure one of the Redirect URLs matches the url where you are hosting this repository, with /redirect added at the end (e.x.: https://example.com/redirect). -
Create a project on Supabase. Please see the Database Setup section below for further details.
-
Obtain your
.envvariables:SUPABASE_URLandSUPABASE_KEYcan be found on the initial page of your new Supabase project. They can also be found under Project Settings.ROBLOX_CLIENT_IDandROBLOX_SECRETwill be located on the page for your new ROBLOX OAuth 2.0 app.
-
Build the files by running
npm run build. -
Finally, to start the server run
npm start.
If you wish to host this project on Vercel, please fork this repository and visit Vercel's website to select your newly forked repository to be deployed. You will need to add environment variables, and can do so by creating new variables with names that match the above .env file's variable's names. Of course, the values of each Vercel environmental variable should also match the corresponding .env file's variable's values.
Please create the following tables with the following columns:
roblox_discord_links(realtime)discord_id: text (primary key)guild_id: textroblox_id: text
roblox_oauth_sessionsstate: text (primary key)discord_id: textexpires_at: timestampguild_id: text
settingsguild_id: text (primary key)verify_log_channel_id: text