import wixUsersBackend from 'wix-users-backend'; import {fetch} from 'wix-fetch'; const CLIENT_ID = '1112811133259218974'; const CLIENT_SECRET = 'MorYUCBU0MLMKdAnkggpOxon-GaXSbLG'; const REDIRECT_URI = 'https://www.stockmarketchat.net/_api/wix-public/myapp/auth/callback'; // Handles the authentication callback export function myApp_auth_callback(request) { const code = request.query.code; const tokenEndpoint = `https://discord.com/api/oauth2/token`; const payload = { grant_type: 'authorization_code', code, redirect_uri: REDIRECT_URI }; const options = { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': `Basic ${Buffer.from(`${CLIENT_ID}:${CLIENT_SECRET}`).toString('base64')}` }, body: Object.keys(payload) .map(key => encodeURIComponent(key) + '=' + encodeURIComponent(payload[key])) .join('&') }; return fetch(tokenEndpoint, options) .then(response => response.json()) .then(data => { const accessToken = data.access_token; // Use the access token to authenticate the user and handle the login logic here // e.g., create a session for the authenticated user // wixUsersBackend.createSession() }); }
top of page

BOT COMMANDS

What's the point of using Discord if not to use bots? With our bots, you can keep up real time with stock movements with ease, or find out information about any company in less than 10 seconds - all with easy to understand, boomer proof commands that even an elephant can type out.

1653574121846-147989910278635520-5835.png

Pull up intraday charts - or in any timeframe you want, instantly, using the /c command

newflow.png

Pull option flow tables like a pro in a heartbeat, using the !flow command

out.png

Choose your preferred platform for chart delivery, including TradingView or FinViz

Untitled_edited.jpg

Discover company profiles easily, whether it's about what they do, their current market cap, or its shares free float

bottom of page