Module

x/telescope_sdk_deno/example.ts

Mirror of https://gitlab.com/telescope-meetings/sdk/deno
Latest
File
import TelescopeIntegration from "./mod.ts";import { opine } from "https://deno.land/x/opine@1.8.0/mod.ts";
const intg = new TelescopeIntegration({ name: "discord", token: "OTA3MDIzMDgtNGI1NC00YTNiLTk3YzgtMjQ4ZDU2MzQ1OGVlZGlzY29yZA==", baseUrl: "http://localhost:3000",});
const app = opine();
app.get("/", function (_, res) { res.redirect(intg.connectUrl);});
app.get("/connect", (req, res) => { intg.verifyKey(req.query, { test: "hi" }); res.json(req.query);});
app.listen(5001, () => console.log("server has started on http://localhost:3000 🚀"));