Serein
Rust로 만든 가볍고 성능 좋은 Discord 전용 네이티브 클라이언트
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
An English-language, modular Discord bot for Mellune. It uses Node.js, JavaScript, discord.js 14, Prisma and Supabase Postgres. The project is split into small files so it is easy to learn and extend.
• Node.js 18.18 or newer
• A Discord server where you have Manage Server
• A Discord application and bot
• A free Supabase projectREADME 전문 보기 ↗An English-language, modular Discord bot for Mellune. It uses Node.js, JavaScript, discord.js 14, Prisma and Supabase Postgres. The project is split into small files so it is easy to learn and extend.
git clone <your-repository-url>
cd Mellune-BOT
npm install
cp .env.example .env
DISCORD_TOKEN.DISCORD_CLIENT_ID.bot and applications.commands scopes.DEV_GUILD_ID.The code requests Guilds, GuildMembers, GuildMessages, MessageContent, and GuildVoiceStates.
The bot is linked to the existing project Mellune DB:
https://qjhvapvcbyabbsgvoley.supabase.coeu-west-1The Mellune tables (guilds, warnings, tickets, levels, …) are already created there, with Row Level Security enabled so the public anon key cannot read bot data. Prisma talks to Postgres with the database password.
Prisma uses only DATABASE_URL. Put your external PostgreSQL URL there (postgresql://...). You do not need SQLite, and you do not need to add DIRECT_URL to start the bot.
DISCORD_TOKEN=your_bot_token
DISCORD_CLIENT_ID=your_application_id
DEV_GUILD_ID=your_test_server_id
SUPABASE_PROJECT_REF=qjhvapvcbyabbsgvoley
SUPABASE_URL=https://qjhvapvcbyabbsgvoley.supabase.co
SUPABASE_ANON_KEY=your_anon_or_publishable_key
DATABASE_URL="postgresql://USER:PASSWORD@HOST:5432/DATABASE"
Never share these values, and never commit .env.
npm start generates Prisma and applies any pending migrations before starting
the bot. This keeps new dashboard features, such as always-on voice, in sync
with the production database. Do not skip prisma migrate deploy when a new
migration has been added.
npm start
On startup Mellune pushes slash commands once, globally, and removes per-server copies so Discord does not show them twice. In Discord, run /ping.
For development with automatic restart:
npm run dev
Global commands (slow to appear):
npm run deploy:global
index.js/ping and /profile/warn, /warnings, /clearwarns, /timeout, /purge/setupnpm test
npm run lint
npx prettier --check .
The repository now contains a Next.js dashboard at the root alongside the
Discord bot. The bot entry point remains index.js; main.js is not used.
For local dashboard development:
npm run dashboard:dev
Production build and start:
npm run dashboard:build
npm run dashboard:start
The dashboard keeps Discord OAuth access tokens server-side in the
DashboardSession PostgreSQL table. The browser receives only an opaque,
HTTP-only session cookie. Add these server-only variables before enabling
Discord login:
DISCORD_CLIENT_SECRET=
DISCORD_REDIRECT_URI=https://your-dashboard-domain.example/api/auth/callback
SESSION_SECRET=
MELLUNE_GUILD_ID=your_mellune_server_id
MELLUNE_OWNER_ROLE_ID=your_mellune_owner_role_id
SESSION_SECRET must be at least 32 characters. The dashboard only returns
guilds the authenticated Discord user owns or can manage, and every guild
overview request re-checks that permission against Discord.
The OAuth flow also requests guilds.join: after explicit Discord consent, it
adds the authenticated user to MELLUNE_GUILD_ID using the server-side bot
token, then checks that the member has MELLUNE_OWNER_ROLE_ID before creating
a dashboard session. The bot must already be installed in that server and be
able to view members. Never expose the bot token to the browser.
The sidebar groups every module. These pages are wired to the bot and database:
guildMemberAdd / guildMemberRemove events. Placeholders: {user}, {username}, {server}, {memberCount}, {userId}./profile.Other sections show a "being built" page until the bot supports them. Icons come from lucide-react.
Missing environment variables: copy .env.example to .env and fill DISCORD_TOKEN, DISCORD_CLIENT_ID, and DATABASE_URL (a postgresql:// URL). DEV_GUILD_ID is required by npm run deploy:guild.
Commands are stale or appear twice: restart the bot. It publishes the current commands directly to each server, which updates immediately, and clears the old global list. Fully restart the Discord app once so it drops the previous global cache.
Can't reach database / IPv6 errors: use the pooler URLs from Connect, not the direct db.<project>.supabase.co host, unless your network supports IPv6.
Prisma says the URL must start with file:: the schema is still SQLite. Update the files so prisma/schema.prisma has provider = "postgresql", then run npx prisma generate.
Wrong password: reset the database password in your Postgres host, then update DATABASE_URL only.