text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
rightTop[activeTab]} align="left" /> <SideCell activeTab={activeTab} value={LAYOUT.rightBottom[activeTab]} align="left" /> </div> </div> </div> </div> ...
cursor-austria
components/sections/events.tsx
TypeScript
1104ce066a3817563f022caa69805d1b4f6039c2927dbeb90dcc518c62958a7d
2
896
to-t from-black/80 via-black/20 to-transparent pointer-events-none rounded-[20px]" /> <div className="relative z-10 px-4 pb-6 pt-12 sm:px-6 sm:pb-7"> <p className={`text-white font-medium text-pretty leading-snug ${isLarge ? "text-lg sm:text-xl" : "text-base sm:text-lg"}`}> {study.title} ...
cursor-austria
components/sections/events.tsx
TypeScript
c865d88ffa97ecab6c7c440dd3132e596f6e6785013820cc655b2fb268f93879
3
161
"use client"; import Image from "next/image"; import type { MotionValue } from "motion/react"; import { motion, useScroll, useTransform } from "motion/react"; import { Card, CardContent } from "@/components/ui/card"; import { cn } from "@/lib/utils"; export type HeroImageConfig = { id: number; src: string; alt...
cursor-austria
components/sections/hero-images.tsx
TypeScript
8372c7c857d656a9ebef888145a7094cf6dfdfb09eae231e489a9407ae0a48d2
0
896
={cn("rounded-[20px] md:rounded-3xl", image.spanClasses)} style={{ x, y, scale, rotate }} > <div className="relative flex size-full rounded-[20px] md:rounded-3xl col-span-1 row-span-1 after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:opacity-0 after:shadow-2xl after:tr...
cursor-austria
components/sections/hero-images.tsx
TypeScript
40d83b268da420f38b7462241d908bf6407d8939ad0a30f7396574b33d42e020
1
368
import React from "react"; import { HeroImages, type HeroImageConfig } from "./hero-images"; /** Overlay positions: at the outmost of the hero (edges/corners). scatterX: left (negative) / right (positive); scatterY: vertical in hero (negative = top, positive = bottom). */ const heroImages: HeroImageConfig[] = [ { ...
cursor-austria
components/sections/hero.tsx
TypeScript
7f2e1b61b313580283b26a7aac864f6aafc07d5a1a07aba84842ad1954b39785
0
896
/article@2x.webp", alt: "Article", positionClasses: "right-3 top-[760px] lg:right-[calc(50%-min(50vw,800px)+160px)] lg:top-[740px] lg:translate-x-1/2", spanClasses: "lg:col-span-1 col-span-1 lg:row-span-1 row-span-1", baseScale: 0.783, baseRotate: 5.2, framed: false, scatterX: 450, ...
cursor-austria
components/sections/hero.tsx
TypeScript
39bf92ee1f602cf18ceddbccb9aa4d135a8b9309681b76989d11b6dee671997c
1
896
auto-rows-[156px] sm:grid-cols-[repeat(2,156px)] sm:gap-5 auto-rows-[122px] grid-cols-[repeat(2,122px)] gap-4"> <div className="relative -z-1 rounded-[20px] bg-gray-100 md:rounded-3xl lg:col-span-1 col-span-1 lg:row-span-1 row-span-1"></div> <div className="relative -z-1 rounded-[20px] bg-gray-1...
cursor-austria
components/sections/hero.tsx
TypeScript
92e37276ca22ad9763e9ce3142677b232f9b09d205d88a853c4f90afa399d42c
2
420
"use client"; import { motion, useScroll, useTransform, type MotionValue } from "motion/react"; import Image from "next/image"; import { cn } from "@/lib/utils"; import { Card, CardContent } from "@/components/ui/card"; // Types type HeroImageConfig = { id: number; src: string; alt: string; positionClasses: s...
cursor-austria
components/sections/profile-grid.tsx
TypeScript
a2c3bce78ebde7a5693d2cd7439106ffc8cd43e525eb83354daf46a56af5d5ca
0
896
0 bg-white shadow-sm dark:bg-gray-900 md:rounded-3xl", "before:pointer-events-none after:pointer-events-none", "before:absolute before:inset-0 before:rounded-[inherit] before:shadow-sm before:transition-opacity", "after:absolute after:inset-0 after:rounded-[inherit] after:opacity-0 after:s...
cursor-austria
components/sections/profile-grid.tsx
TypeScript
2563cc3113e396adeb87a7d595b553505ae0b026bc23baef20326c30c5fee690
1
896
-full flex-col items-start gap-4 text-left sm:flex-row sm:items-center sm:gap-2 rounded-[20px] md:rounded-3xl"> <span className="relative rounded-full inline-flex size-20 shrink-0 basis-auto sm:size-23 bg-gray-100 overflow-hidden"> <img className="absolute inset-0 h-full w-ful...
cursor-austria
components/sections/profile-grid.tsx
TypeScript
2615a2e3e17d57b99110191a514261c2d9959d09db65f0ef52795cc71771b08a
2
524
import React from "react"; const Header = () => { return <header></header>; }; export default Header;
cursor-austria
components/shared/header.tsx
TypeScript
6518cf186525cfa0e9e69dea405c4cb6b8bfb5707cd4872003e6e24ab4bbfe8b
0
30
"use client"; import { animate, motion, useMotionValue, useTransform } from "motion/react"; import type { ReactNode } from "react"; import React, { useEffect } from "react"; const VIEWBOX_WIDTH = 1920; const VIEWBOX_HEIGHT = 1080; const CENTER_X = VIEWBOX_WIDTH / 2; const CENTER_Y = VIEWBOX_HEIGHT / 2; const ICON_SIZ...
cursor-austria
components/ui/animated-beams.tsx
TypeScript
228c50e4abf0813c1dfdda12d7d82bf46d91fd01c6c8f25566628d2494c78dab
0
896
/g> ); } export type AnimatedBeamsProps = { /** Center of the beam hub in viewBox coordinates. Defaults to viewBox center. */ centerX?: number; centerY?: number; /** Nodes to render: initial (x, y) and icon content. */ nodes: AnimatedBeamNode[]; /** Optional className on the root SVG container. */ clas...
cursor-austria
components/ui/animated-beams.tsx
TypeScript
1b56d472d9139b7c63aa89da0687c160c06df450a81cff67f17d5936fd77437d
1
210
import * as React from "react" import { cva, type VariantProps } from "class-variance-authority" import { Slot } from "radix-ui" import { cn } from "@/lib/utils" const buttonVariants = cva( "inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outlin...
cursor-austria
components/ui/button.tsx
TypeScript
cc36af0f8b5019c33cc039fbf03bb952a513072b15b55b53c592b78af3e5f4c4
0
712
import * as React from "react" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const cardVariants = cva( "flex flex-col rounded-xl border bg-card text-card-foreground shadow-sm", { variants: { variant: { default: "gap-6 py-6", image: "ov...
cursor-austria
components/ui/card.tsx
TypeScript
79362ddb0b81f86e6a3136b9a61909d41dc8d4d98d8a716b37e075b92eaf3791
0
729
"use client" import * as React from "react" import { cva, type VariantProps } from "class-variance-authority" import { Tabs as TabsPrimitive } from "radix-ui" import { cn } from "@/lib/utils" function Tabs({ className, orientation = "horizontal", ...props }: React.ComponentProps<typeof TabsPrimitive.Root>) { ...
cursor-austria
components/ui/tabs.tsx
TypeScript
84fea503dd38c0375c4648477315146d2158182050667682897aea8378f6d028
0
896
after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1...
cursor-austria
components/ui/tabs.tsx
TypeScript
403e425e2a81f66e1f71cd6d48a9843df6284cae07c5bc5d6bb88dfe6c46fdea
1
240
import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) }
cursor-austria
lib/utils.ts
TypeScript
7c8c3dfc0cdd370d44932828eb067ef771c8fe7996693221d5d4b90af6d54f2d
0
44
node_modules dist .git .env .env.local .env.*.local *.log coverage .nyc_output .DS_Store .vscode .idea .cursor *.swp *.swo *.pid .turbo .vercel .output docker-compose.override.yml .docker *.db *.sqlite data
cursor-vienna-discord
.dockerignore
Docker Ignore
a5755542e9a22bed5c890657e7bbae90e15d3b29f9027a0c43be9e50f636f491
0
61
# Dependencies node_modules/ # Build dist/ *.tsbuildinfo # Environment (keep .env.example) .env .env.local .env.*.local .env.development .env.production .env.test # Generated app config (IDs written by populate-server --write-config) src/config/generated-ids.json # Logs *.log npm-debug.log* bun-debug.log* pino-*.lo...
cursor-vienna-discord
.gitignore
Git Ignore
166b3f3f7c2889f8feb6f49c00397709639823455f83e9fcc532fce6633f7ac9
0
197
version: "3.8" services: bot: build: context: . dockerfile: Dockerfile depends_on: - redis restart: unless-stopped redis: image: redis:7-alpine restart: unless-stopped volumes: - redis_data:/data volumes: redis_data:
cursor-vienna-discord
docker-compose.yml
YAML
045a6b0640e161f49be25a674e21cd4435f7b63b7fe490036113fc4ceb1f472d
0
51
FROM oven/bun:1 AS base WORKDIR /app FROM base AS install RUN mkdir -p /temp/dev COPY package.json bun.lock* /temp/dev/ RUN cd /temp/dev && \ if [ -f bun.lockb ] || [ -f bun.lock ]; then \ bun install --frozen-lockfile; \ else \ bun install; \ fi FROM install AS prerelease RUN mkdir -p /temp/p...
cursor-vienna-discord
Dockerfile
Dockerfile
06c0040bc63e8f86789a9b0d3d03e96d2c55381d79f8ce03b61d7eae24c30b08
0
236
import { defineConfig } from "drizzle-kit"; import * as dotenv from "dotenv"; dotenv.config({ path: ".env.local" }); export default defineConfig({ schema: "./src/db/schema.ts", out: "./drizzle/migrations", dialect: "postgresql", dbCredentials: { url: process.env.DATABASE_URL!, }, });
cursor-vienna-discord
drizzle.config.ts
TypeScript
8d1de4a1811801fcd7112c0bc719d37eac79df8751a4e8e9a16438478f17dd97
0
88
{ "name": "cursor-vienna-discord", "version": "1.0.0", "description": "", "main": "src/index.ts", "scripts": { "dev": "bun run --watch src/index.ts", "build": "tsc", "start": "bun run db:migrate && bun run dist/index.js", "deploy-commands": "bun run src/deploy-commands.ts", "populate-serve...
cursor-vienna-discord
package.json
JSON
701808fe86746bfcd67f2b10b3c3302c530ffcd409f60f75377b4f8ef229dec7
0
521
# CursorBot Vienna — Product Requirements Document **Version:** 2.0 **Author:** Julian (Cursor Ambassador Vienna) **Date:** February 14, 2026 **Status:** Ready for Development **Build Tools:** Claude Code + Cursor --- ## 1. Executive Summary CursorBot Vienna is a custom Discord bot for the Cursor Community Vienna s...
cursor-vienna-discord
prd.md
Markdown
611b7d8d829f1be69f96b4ecfcff8907e9a8dfb76affa6cf4eb49e649f1dfb44
0
896
Use non-inline for longer descriptions. #### Interaction UX Guidelines - **Ephemeral by default**: All confirmation and error messages should be ephemeral unless they're useful to the community - **Defer early**: Any operation taking >1s should `deferReply()` immediately - **Disable on completion**: Always edit the o...
cursor-vienna-discord
prd.md
Markdown
135249f4dbc822d617b624834804eb04ed4fde047b7e5826db81019695ca7495
1
896
Admin, Moderator, Verified tiers - Channel-specific permission overwrites managed by bot during setup #### Other v14 Features - **Webhook management**: For styled bot messages in announcement channels - **Audit Log integration**: Cross-reference bot actions with Discord audit log - **Presence/Activity**: Bot status c...
cursor-vienna-discord
prd.md
Markdown
26dfe0f65d41773e610cd02be6146bb52f06902343fc73a28e4c145e2ea3c26e
2
896
tallying │ │ ├── forums/ │ │ │ ├── auto-tag.ts # Tag enforcement on new posts │ │ │ ├── templates.ts # Post template validation │ │ │ ├── archiver.ts # Auto-archive stale threads │ │ │ └── solved.ts # Solved state management for help forum │ │ ├── moderat...
cursor-vienna-discord
prd.md
Markdown
b53659890251a31337261cb58a8e3cec4b69e7058c8e66b5bddfa08d8f078840
3
896
DISCORD_BOT_LOG_CHANNEL_ID= DISCORD_ANALYTICS_CHANNEL_ID= DISCORD_ANNOUNCEMENTS_CHANNEL_ID= DISCORD_WELCOME_CHANNEL_ID= DISCORD_ROLES_CHANNEL_ID= # Roles DISCORD_ROLE_ADMIN= DISCORD_ROLE_MODERATOR= DISCORD_ROLE_VERIFIED= DISCORD_ROLE_CONTRIBUTOR= DISCORD_ROLE_CURSOR_TEAM= # Luma LUMA_API_KEY= LUMA_CALENDAR_ID= LUMA_W...
cursor-vienna-discord
prd.md
Markdown
43ff7d7beaeec6a8eae8d280f0e488e9f00e808b37f5a43bcb27a309eb977fc8
4
896
(), description: text("description"), location: text("location"), lumaUrl: text("luma_url"), coverImageUrl: text("cover_image_url"), startTime: timestamp("start_time").notNull(), endTime: timestamp("end_time"), maxAttendees: integer("max_attendees"), status: eventStatusEnum("status").default("scheduled"...
cursor-vienna-discord
prd.md
Markdown
d35ea848d72204439c22aa5a4924785bdce4741af6e71ffe4db84075168734e4
5
896
() => crypto.randomUUID()), title: text("title").notNull(), description: text("description"), prize: text("prize").notNull(), winnerCount: integer("winner_count").default(1).notNull(), channelId: text("channel_id").notNull(), messageId: text("message_id"), hostId: text("host_id").notNull(), endsAt: time...
cursor-vienna-discord
prd.md
Markdown
9b6610fba79f1a99a44aac2ccaa1f179dd182b3583baf27164dcb5b0f77aa564
6
896
( table.weekNumber, table.year, ), }), ); export const challengeSubmissions = pgTable( "challenge_submissions", { id: text("id") .primaryKey() .$defaultFn(() => crypto.randomUUID()), challengeId: text("challenge_id") .notNull() .references(() => challenges.id, { on...
cursor-vienna-discord
prd.md
Markdown
9b148ae384ada4bcdacb417acd3c0646f06e31640b5b2cdd4b87b67034109bff
7
896
, (table) => ({ uniquePollMemberOption: uniqueIndex("poll_vote_idx").on( table.pollId, table.memberId, table.optionIdx, ), }), ); // ─── Moderation ──────────────────────────────────────────────── export const modActions = pgTable("mod_actions", { id: text("id") .primaryKey() ....
cursor-vienna-discord
prd.md
Markdown
cbc605f0af3c5251bd9d0666b927fb7e742f8f87c5ce79999c566f21a08cbda9
8
896
) The following should be configured in **Server Settings → Onboarding** (not by the bot): **Default Channels (visible to all on join):** `#announcements`, `#general`, `#cursor-tips`, `#meetups`, `#introduce-yourself`, `#dev-talk`, `#server-guide` **Customization Questions:** Question 1: "What's your tech stack?" (...
cursor-vienna-discord
prd.md
Markdown
358abee1d013886935ebd3ac2f913dd94a37747527046c4a13fedbf08a4f8254
9
896
your-roles These menus mirror the onboarding questions but allow existing members to change selections at any time. Implemented as `StringSelectMenuBuilder` with persistent `customId` routing (not collector-based). **Behavior:** - On select interaction, bot compares current roles to selected values - Adds new select...
cursor-vienna-discord
prd.md
Markdown
0d781ecd7f42d4a90f78ce03f547bbe59bace8ef8499097578f0d833ec3dfc17
10
896
the announcement embed): - Tracked in `eventRsvps` table with `source: 'discord'` - Buttons update the embed's attendee count field in real-time - Clicking a different status updates the existing RSVP (upsert) **Luma-side RSVPs** (via API polling): - Every 15 minutes, fetch guests for active events - Upsert into `ev...
cursor-vienna-discord
prd.md
Markdown
54c05a3987dccdb538dd51f42755e1505de01a6eecb3cf6f3bf51db7c094009c
11
896
) **`/cowork list`** — Shows active/upcoming cowork sessions with pagination **`/cowork cancel`** — Cancel your own session (with confirmation) #### 4.4.2 Flow 1. Host creates session via modal 2. Bot posts embed in #coworking: - Color: `BRAND.ORANGE` - Location with Maps link, date/time, "3/10 spots" with at...
cursor-vienna-discord
prd.md
Markdown
d5be095140183deaf1d0e354dc79dd5e63119e5360c07513d231c107fac34cec
12
896
* — Shows the active challenge **`/challenge leaderboard`** — Shows all-time challenge winners #### 4.6.3 Project Showcase **Submission:** `/showcase submit` — Opens modal: - Project title, description, tech stack (comma-separated), repo URL (optional), live URL (optional) **Flow:** 1. Bot creates a forum post in ...
cursor-vienna-discord
prd.md
Markdown
818b1198ed677b465dad9038c34ea5f6d9e81ed12d7a0ceebad7b3c059b25cea
13
896
Description | Permissions | | ------------------------------------- | ---------------------------------- | ----------- | | `/warn {user} {reason}` | Issue warning, DM user, log | Moderator+ | | `/mute {user} {duration} {reason}` | Timeout via Discord native timeout | Mode...
cursor-vienna-discord
prd.md
Markdown
832b00bc6239a9609ab1e575e5fbb65eeca02841e98a29bea6c45450ad7c490d
14
896
return commandRegistry.autocomplete(interaction); } // 3. Context Menus if ( interaction.isUserContextMenuCommand() || interaction.isMessageContextMenuCommand() ) { return contextMenuRegistry.execute(interaction); } // 4. Components (Buttons, Select Menus) if (interaction.isButton() || inter...
cursor-vienna-discord
prd.md
Markdown
874dba88acd4a62ad75b7c7b6e865eba971034acbb0f7a0bd882d7a7fea55d1c
15
896
via Railway/Fly.io with Docker - [ ] Verify bot online, test `/help` - [ ] Run `/config setup-roles` in #get-your-roles - [ ] Run `/config setup-automod` - [ ] Test welcome DM with `/config test-welcome` --- ## 10. Development Phases ### Phase 1 — Foundation (Week 1) - [ ] Project scaffolding: TypeScript, discord.j...
cursor-vienna-discord
prd.md
Markdown
8b3a24d54770a9e857bbeb70e41719131bbbdbdc2e7acb29c6baebd6a37c4af8
16
735
{ "$schema": "https://railway.com/railway.schema.json", "build": { "builder": "RAILPACK" }, "deploy": { "startCommand": "bun run start", "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } }
cursor-vienna-discord
railway.json
JSON
f7eef159e9428c7df43333700e6447cd07378f3aff94146fa18e24c22f53f8b8
0
66
# Railway Deployment Guide This guide covers deploying the CursorBot Vienna Discord bot to Railway.app. ## Prerequisites 1. A Railway account ([railway.app](https://railway.app)) 2. A GitHub account (for connecting your repository) 3. Discord bot token and application ID 4. PostgreSQL database (Railway can provision...
cursor-vienna-discord
RAILWAY.md
Markdown
09648804a7c1a2074b34f07ee03da0b2a82018f2d498c6f34692520b257369e7
0
896
These should be set in `src/config/app-config.ts` (not as env vars): - `DISCORD_CLIENT_ID` - Your Discord application ID - `DISCORD_GUILD_ID` - Your Discord server/guild ID - Channel IDs, Role IDs, etc. (see `src/config/app-config.ts`) ### 4. Configure App Config Before deploying, ensure `src/config/app-config.ts` ha...
cursor-vienna-discord
RAILWAY.md
Markdown
a927084a1b10b762cf0d2fed69d28b60ddfca1bac7452258f992a615d39d338c
1
749
# CursorBot Vienna A custom Discord bot for the Cursor Community Vienna server, built with modern technologies. ## Features - **Onboarding:** Welcome DMs, follow-up messages, intro tracking. - **Roles:** Self-service role menus. - **Events:** Syncs with Luma, manages RSVPs natively in Discord. - **Coworking:** Organ...
cursor-vienna-discord
README.md
Markdown
22944f5893dfb7b167243bf53e71712d404e2a2b76f0d7ffe6aaed7a95f7c155
0
896
run` only validates the JSON and prints counts. `--skip-existing` skips creating a channel/category if one with the same name and parent already exists. `--write-config` writes resolved channel and role IDs to `src/config/generated-ids.json` (Vienna layout mapping); the app merges this file at startup so you can run po...
cursor-vienna-discord
README.md
Markdown
73b289fd1435c7a9293cfa424d4d8b88834bc507eb66d79af90083f988004472
1
426
{ "roles": [ { "name": "Admin", "permissions": "8", "color": 15158332, "hoist": true, "mentionable": false }, { "name": "Moderator", "permissions": "268435456", "color": 3066993, "hoist": true, "mentionable": false } ], "categories": [ { "name": "General", "position": 0, "nsfw": false, "permission_ove...
cursor-vienna-discord
server-template.json
JSON
dfeecce99e3e32fb2910c0cd9d0125e6f6d78d2bab79cffac11335fdf33ffbb3
0
682
{ "compilerOptions": { "target": "ES2022", "module": "CommonJS", "moduleResolution": "node", "outDir": "./dist", "rootDir": "./src", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true }, "includ...
cursor-vienna-discord
tsconfig.json
JSON
b1d6434515c1122f741bdecbbf780fa9bb3c9fddbfe3879225d1d0fe4712743c
0
117
import { defineConfig } from "vitest/config"; import path from "path"; export default defineConfig({ test: { environment: "node", include: ["tests/**/*.test.ts", "src/**/*.test.ts"], exclude: ["node_modules", "dist"], globals: true, }, resolve: { alias: { "@": path.resolve(__dirname, "....
cursor-vienna-discord
vitest.config.ts
TypeScript
0897367d74a3fe17d1543003cb73198e124471455498e15f40b3082abc3bf81f
0
110
{ "categories": [ { "name": "Pinboard", "position": 0 }, { "name": "Community", "position": 1 }, { "name": "Cursor & Dev", "position": 2 }, { "name": "Vienna", "position": 3 }, { "name": "Engagement", "position": 4 }, { "name": "Voice", "position": 5 }, { "name": "Staff", "position": 6 } ...
cursor-vienna-discord
configs/cursor-vienna-channels.json
JSON
9d7478a0b84323be1cecc676b0176fc4948e8e5a95eb4c3a63f797904b050434
0
896
, Vienna, the universe.", "position": 1, "permission_overwrites": [ { "id": "everyone", "type": "role", "deny": ["ViewChannel"] }, { "id": "Verified", "type": "role", "allow": ["ViewChannel", "SendMessages", "ReadMessageHistory", "AddReactions", "AttachFiles", "EmbedLinks", "UseExternalEmoji...
cursor-vienna-discord
configs/cursor-vienna-channels.json
JSON
7486f7d3f12dd00c960cd7f9ea59b77757e40c1a339b511499f8d554f04341e1
1
896
", "position": 4, "available_tags": [ { "name": "TypeScript", "moderated": false }, { "name": "Python", "moderated": false }, { "name": "Rust", "moderated": false }, { "name": "Go", "moderated": false }, { "name": "Java", "moderated": false }, { "name": "C#", ...
cursor-vienna-discord
configs/cursor-vienna-channels.json
JSON
a5a2ccb23bf4b4c3e51b279d0c47f6ff232e0c995209f42c8ff4f1a78bf115cc
2
896
: "mcp", "type": "GUILD_TEXT", "parent": "Community", "topic": "All things MCP. Share servers, discuss integrations, build custom tools.", "position": 8, "permission_overwrites": [ { "id": "everyone", "type": "role", "deny": ["ViewChannel"] }, { "id": "Verified", "type": "r...
cursor-vienna-discord
configs/cursor-vienna-channels.json
JSON
f03ba17782185738990ea935abb19ba49aaa846a39e79a1492e82854ce532d2e
3
896
name": "AI/ML", "moderated": false }, { "name": "Data", "moderated": false }, { "name": "DevOps", "moderated": false }, { "name": "Framework-Specific", "moderated": false }, { "name": "Language-Specific", "moderated": false } ], "default_sort_order": 0, "default_forum_l...
cursor-vienna-discord
configs/cursor-vienna-channels.json
JSON
5eb06fedcc2ab829fcfde9421b37daf01af33e6065faa3bb272a400df4af4487
4
896
": [ { "id": "everyone", "type": "role", "allow": ["ViewChannel", "ReadMessageHistory"], "deny": ["SendMessages"] }, { "id": "Admin", "type": "role", "allow": ["ViewChannel", "SendMessages", "ReadMessageHistory", "EmbedLinks", "AttachFiles", "ManageMessages"] } ] }, { "name": "weekly...
cursor-vienna-discord
configs/cursor-vienna-channels.json
JSON
d09be81bef357f5bdc4b58b0667209b965ee0e7668e1e97ea03e86917162f3e6
5
896
, "deny": ["Speak"] }, { "id": "Admin", "type": "role", "allow": ["ViewChannel", "Connect", "Speak", "RequestToSpeak", "MuteMembers", "MoveMembers"] }, { "id": "Moderator", "type": "role", "allow": ["ViewChannel", "Connect", "Speak", "RequestToSpeak", "MuteMembers", "MoveMembers"] }, { "id": "Ev...
cursor-vienna-discord
configs/cursor-vienna-channels.json
JSON
40fc49785d1acc0e7cbbc933ebfbdc4654cb893f90f871b78210b094f2b0c701
6
896
Staff", "topic": "Plan meetups, coordinate speakers, manage logistics with co-organizers.", "position": 3, "permission_overwrites": [ { "id": "everyone", "type": "role", "deny": ["ViewChannel"] }, { "id": "Admin", "type": "role", "allow": ["ViewChannel", "SendMessages", "ReadMessageHis...
cursor-vienna-discord
configs/cursor-vienna-channels.json
JSON
2522e4346b46985f04efbb75048ff00b553e8f7e4c337992ccaeee7f455b6d3e
7
503
CREATE TYPE "public"."challenge_status" AS ENUM('active', 'voting', 'completed');--> statement-breakpoint CREATE TYPE "public"."cowork_status" AS ENUM('open', 'full', 'started', 'ended', 'cancelled');--> statement-breakpoint CREATE TYPE "public"."event_status" AS ENUM('scheduled', 'active', 'completed', 'cancelled');--...
cursor-vienna-discord
drizzle/migrations/0000_youthful_owl.sql
SQL
b0fc6f19dfcf80bb65c7dd1ad0c8a4eaaf5d3b79472f40516ba96aee95bc864e
0
896
"title" text NOT NULL, "description" text, "location" text, "luma_url" text, "cover_image_url" text, "start_time" timestamp NOT NULL, "end_time" timestamp, "max_attendees" integer, "status" "event_status" DEFAULT 'scheduled' NOT NULL, "announcement_msg_id" text, "reminder_sent_24h" boolean DEFAULT false NOT N...
cursor-vienna-discord
drizzle/migrations/0000_youthful_owl.sql
SQL
af8de1a6b4b696f99d25b65c28ed1f3b01e3922d06fde23fb928117d54600ad6
1
896
created_at" timestamp DEFAULT now() NOT NULL ); --> statement-breakpoint ALTER TABLE "challenge_submissions" ADD CONSTRAINT "challenge_submissions_challenge_id_challenges_id_fk" FOREIGN KEY ("challenge_id") REFERENCES "public"."challenges"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint ALTER TABLE...
cursor-vienna-discord
drizzle/migrations/0000_youthful_owl.sql
SQL
cc8af6e2a136acdd409bb361194b2e15778ce1a13c7da38a7a137a5f37b2f212
2
808
DROP TABLE "challenge_submissions" CASCADE;--> statement-breakpoint DROP TABLE "challenges" CASCADE;--> statement-breakpoint DROP TABLE "giveaway_entries" CASCADE;--> statement-breakpoint DROP TABLE "giveaways" CASCADE;--> statement-breakpoint DROP TABLE "poll_votes" CASCADE;--> statement-breakpoint DROP TABLE "polls" ...
cursor-vienna-discord
drizzle/migrations/0001_ancient_ironclad.sql
SQL
61a9b49b49c585cda1b4962b59790bd7bd954f1de08af4c31ca956e42139c1c7
0
166
{ "id": "dcbdf34c-e25f-4400-bc1e-e30b636fdfab", "prevId": "00000000-0000-0000-0000-000000000000", "version": "7", "dialect": "postgresql", "tables": { "public.bot_config": { "name": "bot_config", "schema": "", "columns": { "key": { "name": "key", "type": "text...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
aa9f525da2ca259d4590c72e4a751ed54eb572ab4cc8d894843b9a33f9cbadcd
0
896
: "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true }, "description":...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
c7be0ab3575159560b1c6860f279c2bf3af3e824b89a86aeee59d3bfdd4d462f
1
896
cowork_participants", "tableTo": "members", "columnsFrom": [ "member_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints"...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
50e306008ac0c4d7db7a0d14de7042722f3e9809d4fbd583829a567be672ee74
2
896
: true }, "top_channels": { "name": "top_channels", "type": "jsonb", "primaryKey": false, "notNull": false }, "commands_used": { "name": "commands_used", "type": "integer", "primaryKey": false, "notNull": tru...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
f7d5028e635347cd64970b44f55ddd467e7f8a006fad06a4776d48eccfecbee5
3
896
"id", "type": "text", "primaryKey": true, "notNull": true }, "luma_event_id": { "name": "luma_event_id", "type": "text", "primaryKey": false, "notNull": false }, "discord_event_id": { "name": "discord_event_i...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
75a5d9191c8da2dad11c5ed0af98b4587b37b143b9ec1998f5d78fd1dc27689a
4
896
"giveaway_id", "type": "text", "primaryKey": false, "notNull": true }, "member_id": { "name": "member_id", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", ...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
ca6415ca1105f02b6a951d139bed10a9e0f26a61506b9d05de93d8d84722c899
5
896
type": "text", "primaryKey": false, "notNull": false }, "require_intro": { "name": "require_intro", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "require_tip_or_showcase": { "n...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
b08b01954f02fec68a2fe5886d8683ee4034c97e3af6983ee3e8ae3f86d0acf2
6
896
": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "target_id": { "name": "target_id", "type": "text", "primaryKey": false, "notNull": true }, "mode...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
1451dfb1a59e5fa097627e7192813e7a80f919baffbb88acc2fb165b36dc91b7
7
896
poll_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "poll_votes_member_id_members_id_fk": { "name": "poll_votes_member_id_members_id_fk", "tableFrom": "poll_votes", "tableTo": "me...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
a5f56d3235aba2aad1554ce9936eb9428177f144a910cb4ffa8545089ea37a81
8
896
: "live_url", "type": "text", "primaryKey": false, "notNull": false }, "tech_stack": { "name": "tech_stack", "type": "jsonb", "primaryKey": false, "notNull": false, "default": "'[]'::jsonb" }, "forum_post_id"...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
3eeb1abd53beb422421eabe6843d1efe9a5db600af56281e0d282700ea9b6ddd
9
896
"compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": { "public.challenge_status": { "name": "challenge_status", "schema": "public", "values": [ "active", "voting", "c...
cursor-vienna-discord
drizzle/migrations/meta/0000_snapshot.json
JSON
30e8972b2881409bf417267c09bb4cf1fd38704cacad9a45684e622a10638c60
10
506
{ "id": "22f14924-9502-47bf-ab52-b36d0454af19", "prevId": "dcbdf34c-e25f-4400-bc1e-e30b636fdfab", "version": "7", "dialect": "postgresql", "tables": { "public.bot_config": { "name": "bot_config", "schema": "", "columns": { "key": { "name": "key", "type": "text...
cursor-vienna-discord
drizzle/migrations/meta/0001_snapshot.json
JSON
943d546ad417d02609ee8984ee8a427513897f4e6d83d8014955a381e2690b2a
0
896
"name": "date", "type": "timestamp", "primaryKey": false, "notNull": true }, "start_time": { "name": "start_time", "type": "text", "primaryKey": false, "notNull": true }, "end_time": { "name": "end_time", ...
cursor-vienna-discord
drizzle/migrations/meta/0001_snapshot.json
JSON
cc65a4d0c6264ace4a5f761fef21f73d2dbe7a531c2c761b492c339639846447
1
896
}, "event_id": { "name": "event_id", "type": "text", "primaryKey": false, "notNull": true }, "member_id": { "name": "member_id", "type": "text", "primaryKey": false, "notNull": true }, "status": { ...
cursor-vienna-discord
drizzle/migrations/meta/0001_snapshot.json
JSON
c2fdd9a4e376186dd3a5019fc2aa19b10ae05c724da34206810266151af5ddc5
2
896
false, "notNull": false }, "start_time": { "name": "start_time", "type": "timestamp", "primaryKey": false, "notNull": true }, "end_time": { "name": "end_time", "type": "timestamp", "primaryKey": false, ...
cursor-vienna-discord
drizzle/migrations/meta/0001_snapshot.json
JSON
2c272891796d92eecadab761b2bb3d69bde65cd3ff19dc656d7ca32b55e8f355
3
896
"type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { ...
cursor-vienna-discord
drizzle/migrations/meta/0001_snapshot.json
JSON
2e689535e0e3d1bcffb194c7bfc58036df6d83581284b024447aac0dbe139f0e
4
896
": { "name": "repo_url", "type": "text", "primaryKey": false, "notNull": false }, "live_url": { "name": "live_url", "type": "text", "primaryKey": false, "notNull": false }, "tech_stack": { "name": "...
cursor-vienna-discord
drizzle/migrations/meta/0001_snapshot.json
JSON
4706727bf7f7ce2e2c030bd68c3d1fd49f4e574e4e051f20dad81126d1f777ba
5
726
{ "version": "7", "dialect": "postgresql", "entries": [ { "idx": 0, "version": "7", "when": 1771150795140, "tag": "0000_youthful_owl", "breakpoints": true }, { "idx": 1, "version": "7", "when": 1771168932218, "tag": "0001_ancient_ironclad", "...
cursor-vienna-discord
drizzle/migrations/meta/_journal.json
JSON
9aee0f5de37ea83ce53215ce3991e5e8335d4db7db712a185cacee8ea083f8c6
0
97
export const BRAND = { PRIMARY: 0x242424, SECONDARY: 0x2a2a2a, TERTIARY: 0x3a3a3a, ORANGE: 0xf97316, ORANGE_SOFT: 0xfb923c, SUCCESS: 0x22c55e, WARNING: 0xeab308, ERROR: 0xef4444, INFO: 0x8b8b8b, TEXT_PRIMARY: "#EDEDED", TEXT_SECONDARY: "#8B8B8B", TEXT_MUTED: "#525252", } as const;
cursor-vienna-discord
src/brand.ts
TypeScript
6b9bfa9952427b10af2866b0a80c4af43cebdb1d759c476a1ac5be5fe922223f
0
76
import path from "path"; import { readFileSync, existsSync } from "fs"; import { z } from "zod"; import dotenv from "dotenv"; import { appConfig } from "./config/app-config"; import { appConfigSchema } from "./config/app-config.schema"; const projectRoot = path.resolve(__dirname, ".."); dotenv.config({ path: path.join...
cursor-vienna-discord
src/config.ts
TypeScript
21944c113309e207616928fe0ba29b7425193841fb71f78895cd3061c3435db5
0
896
announcements, "DISCORD_ANNOUNCEMENTS_CHANNEL_ID"), DISCORD_WELCOME_CHANNEL_ID: fromAppOrEnv(app.discord.channels.welcome, "DISCORD_WELCOME_CHANNEL_ID"), DISCORD_ROLES_CHANNEL_ID: fromAppOrEnv(app.discord.channels.roles, "DISCORD_ROLES_CHANNEL_ID"), DISCORD_ROLE_ADMIN: fromAppOrEnv(app.discord.roles.admin, "DISCO...
cursor-vienna-discord
src/config.ts
TypeScript
1d2d6338bae0a04474231f1e7ffcfa3a254ef07e387a2968c8785ac830c929e7
1
209
import { REST, Routes } from "discord.js"; import { config } from "./config"; import { commands, loadCommands } from "./commands/_registry"; (async () => { try { if (!config.DISCORD_GUILD_ID?.trim()) { console.error( "❌ DISCORD_GUILD_ID is required for guild command deployment.\n" + " S...
cursor-vienna-discord
src/deploy-commands.ts
TypeScript
dc6b421b9167815ae223fa2f4c1ec9f683de154ff4a7f47c1072b687cfcb13aa
0
271
import { Client, Events, GatewayIntentBits, Partials, ActivityType, } from "discord.js"; import { config } from "./config"; import { loadCommands } from "./commands/_registry"; import { handleInteraction } from "./handlers/interaction"; import { handleGuildMemberAdd, handleGuildMemberRemove } from "./handlers...
cursor-vienna-discord
src/index.ts
TypeScript
ae228b01f0b2608ed5d91dc4817765175c288fa17e20eb9b49b0504ec137e2cb
0
764
import { Collection, CommandInteraction, AutocompleteInteraction, ContextMenuCommandBuilder, SlashCommandBuilder, ContextMenuCommandInteraction, } from "discord.js"; import path from "path"; import fs from "fs"; import { logger } from "../utils/logger"; export interface Command { data: SlashCommandBuilde...
cursor-vienna-discord
src/commands/_registry.ts
TypeScript
ea944cf927af52b2be47f48f9367ace583cf053a48e72f33a1b899cc65e7187c
0
680
import { SlashCommandBuilder, CommandInteraction, PermissionsBitField, GuildMember, TextChannel, StringSelectMenuBuilder, ActionRowBuilder, } from "discord.js"; import { handleWelcome } from "../modules/onboarding/welcome"; import { createEmbed, createErrorEmbed } from "../utils/embeds"; import { BRAND } ...
cursor-vienna-discord
src/commands/config.ts
TypeScript
5fffbfdab2f61511814f81d70e64bebf8a16692e89b0307a7fba48a1e9d76c29
0
896
}); try { const value = { v: raw }; await db .insert(botConfig) .values({ key, value }) .onConflictDoUpdate({ target: botConfig.key, set: { value, updatedAt: new Date() }, }); await interaction.editReply({ embeds: [ createEmbed(...
cursor-vienna-discord
src/commands/config.ts
TypeScript
db02af2bc55ab6435b7033a8e43cc2d193f74b217714ff8ff74ea610a906fc10
1
896
`/config set event_speaker_role_id <role_id>`", ), ], }); return; } try { const role = interaction.guild?.roles.cache.get(roleId); if (!role) { await interaction.editReply({ embeds: [createErrorEmbed("Error", "Event Speaker role not found in this serve...
cursor-vienna-discord
src/commands/config.ts
TypeScript
fc42638d36b754d1e253d2fa455482a97e367f47ae792507cfa2d2558abe62fb
2
896
; if (fs.existsSync(contextMenuPath)) { const contextMenuFiles = fs .readdirSync(contextMenuPath) .filter((file) => file.endsWith(".ts")); for (const file of contextMenuFiles) { const filePath = path.join(contextMenuPath, file); try { const command = awai...
cursor-vienna-discord
src/commands/config.ts
TypeScript
05f793b2be5055858113a73003916bf1b3a87496456d01ba2cb45d82be3a46dd
3
189
import { SlashCommandBuilder, CommandInteraction, PermissionsBitField, ModalBuilder, TextInputBuilder, TextInputStyle, ActionRowBuilder, } from "discord.js"; import { createEmbed, createErrorEmbed } from "../utils/embeds"; import { BRAND } from "../brand"; export const data = new SlashCommandBuilder() ...
cursor-vienna-discord
src/commands/cowork.ts
TypeScript
c06932cc393a3598743bfe42a735afe506597956cc82e0009ace45ec32103fbb
0
572
import { SlashCommandBuilder, CommandInteraction, PermissionsBitField, AutocompleteInteraction, ModalBuilder, TextInputBuilder, TextInputStyle, ActionRowBuilder, } from "discord.js"; import { syncEvents } from "../modules/events/luma"; import { isLumaConfigured } from "../integrations/luma/client"; impo...
cursor-vienna-discord
src/commands/event.ts
TypeScript
abd80c8555428cf103109dcf57434b9310365107882f6011c44ea4d64d099365
0
896
in .env and app config) to enable event sync with Luma.", ), ], ephemeral: true, }); return; } await interaction.deferReply({ ephemeral: true }); try { await syncEvents(interaction.client); await interaction.editReply({ embeds: [ createE...
cursor-vienna-discord
src/commands/event.ts
TypeScript
20ed849b49d5ed269119f03ac92d58910ea9987a3c6af33b679164cfb8944ee5
1
896
")], ephemeral: true, }); return; } const eventId = interaction.options.getString("event", true); const ev = await db.query.events.findFirst({ where: eq(events.id, eventId), }); if (!ev) { await interaction.reply({ embeds: [createErrorEmbed("Error", "Event not...
cursor-vienna-discord
src/commands/event.ts
TypeScript
37860e2eb666e28d77c0a4c6971675dc707dcd459f52dac86f0e2f9ed1e1a1dc
2
612
import { SlashCommandBuilder, CommandInteraction, ActionRowBuilder, ButtonBuilder, ButtonStyle, } from "discord.js"; import { createHeroEmbed } from "../utils/embeds"; const LUMA_CALENDAR_URL = "https://luma.com/cursorcommunity"; export const data = new SlashCommandBuilder() .setName("help") .setDescrip...
cursor-vienna-discord
src/commands/help.ts
TypeScript
a2d90365cb7de487f59bcf790794fb195f5135d3a123f428486615f1ab3b6ea7
0
380
import { SlashCommandBuilder, CommandInteraction, PermissionsBitField, GuildMember, TextChannel, ActionRowBuilder, ButtonBuilder, ButtonStyle, } from "discord.js"; import { createEmbed, createErrorEmbed } from "../utils/embeds"; import { BRAND } from "../brand"; import { logModAction, pendingBans, ...
cursor-vienna-discord
src/commands/mod.ts
TypeScript
ddfccce70e9e22b59c7897a4fc1a2985dcf319cc4c370b646c5e0c83f8cf031c
0
896
interaction.reply({ embeds: [createErrorEmbed("Error", "This command can only be used in a text channel.")], ephemeral: true, }); return; } await interaction.deferReply({ ephemeral: true }); try { const messages = await channel.messages.fetch({ limit: 100 }); const fi...
cursor-vienna-discord
src/commands/mod.ts
TypeScript
9f996bb8bc31e87c3d83f187034999be85593d8680dea2ff9a7457a732297486
1
896
("Error", "You cannot moderate this user.")], ephemeral: true, }); return; } if (subcommand === "warn") { try { await target .send({ embeds: [ createEmbed(BRAND.WARNING) .setTitle("Warning Issued") .setDescription( `Y...
cursor-vienna-discord
src/commands/mod.ts
TypeScript
bc3f01515271d1e0d1dda748395204d478b6f351685f9959e3fb52ca90b59a69
2
756
import { SlashCommandBuilder, CommandInteraction, PermissionsBitField, ModalBuilder, TextInputBuilder, TextInputStyle, ActionRowBuilder, } from "discord.js"; import { createEmbed, createErrorEmbed } from "../utils/embeds"; import { BRAND } from "../brand"; export const data = new SlashCommandBuilder() ...
cursor-vienna-discord
src/commands/showcase.ts
TypeScript
53b2c956b751ef0072fe5b47343d6e369e8fcc4eb93ef8934a0517ef8ed0682d
0
459
import { CommandInteraction, PermissionsBitField, SlashCommandBuilder, } from "discord.js"; import { db } from "../db/client"; import { members, dailyStats } from "../db/schema"; import { createEmbed } from "../utils/embeds"; import { count } from "drizzle-orm"; export const data = new SlashCommandBuilder() .s...
cursor-vienna-discord
src/commands/stats.ts
TypeScript
92bcf97bc21784fe85297464435c65a4e82ee48a5424fe2e9ddeb4e8fc59eeee
0
317
import type { AppConfig } from "./app-config.schema"; /** * Example app config. Copy to app-config.ts and fill in your IDs. * Secrets stay in .env only. */ export const appConfigExample: AppConfig = { discord: { clientId: "", guildId: "", channels: { modLog: "", botLog: "", analytics...
cursor-vienna-discord
src/config/app-config.example.ts
TypeScript
82d2605f0f0417aaeac3dbff0980ac44870c1e3b8dd1628b86df6dab1282138d
0
176