Skip to content

Update the rules channel #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 52 additions & 42 deletions src/features/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,60 @@ import { OnStartupHandler } from '../types';

const RULES_CHANNEL_ID = process.env.RULES_CHANNEL_ID ?? '752553802359505020';
const INTRO_CHANNEL_ID = '766393115044216854';
// const HELP_CHANNEL_ID = '752668543891276009';
// const OFFTOPIC_CHANNEL_ID = '766433464055496744';
// const SHOWCASE_CHANNEL_ID = '771729272074534922';
// const KUDOS_CHANNEL_ID = '911305422307225682';
// const GENERAL_CHANNEL_ID = '752647196419031042';

// 'https://i.imgur.com/Zqc3Nc6.png',
// `
// Welcome to the official Next.js Discord server!

// This is the place to chat about Next.js, ask questions, show off your projects, and collaborate with other developers.

// **Here's a quick breakdown of our channels:**
// <#${GENERAL_CHANNEL_ID}>:: General chat about Next.js
// <#${HELP_CHANNEL_ID}>: Ask for help with Next.js
// <#${OFFTOPIC_CHANNEL_ID}>: Anything else you want to talk about
// <#${SHOWCASE_CHANNEL_ID}>: Show off your Next.js projects
// <#${KUDOS_CHANNEL_ID}>: Shout out people who helped you out

// We abide by our Code of Conduct. Please read it: <https://github.com/vercel/next.js/blob/canary/CODE_OF_CONDUCT.md>
// `,
const HELP_CHANNEL_ID = '1007476603422527558';
const OFFTOPIC_CHANNEL_ID = '766433464055496744';
const SHOWCASE_CHANNEL_ID = '771729272074534922';
const KUDOS_CHANNEL_ID = '911305422307225682';
const GENERAL_CHANNEL_ID = '752647196419031042';
const JOBS_CHANNEL_ID = '910564441119150100';
const FEEDBACK_CHANNEL_ID = '843997308616966145';

const RULES_MESSAGES = [
`**To unlock the rest of the server, make sure to introduce yourself in the <#${INTRO_CHANNEL_ID}> channel!** Use this template:

🌎 I'm from: Italy
🏢 I work at: Amazon
💻 I work with this tech: Next.js, Typescript, Tailwind, and Prisma
🍎 I snack on: ☕

Also, tell us what tools you use so we can automatically add you to the relevant channels!

<:javascript:770004227366846494> : JavaScript

<:typescript:770004243545325580> : TypeScript

<:tailwind:913088128468787210> : Tailwind

<:rust:913088096692748349> : Rust

<:swr:770004547422650388> : SWR

<:mdx:935667057121439805> : MDX
`,
'https://i.imgur.com/r9Etfje.png',
`
👋 Welcome to the official Next.js Discord server! This is the place to chat about Next.js, ask questions, show off your projects, and collaborate with other developers.

📖 We abide by our Code of Conduct. Please read it: <https://github.com/vercel/next.js/blob/canary/CODE_OF_CONDUCT.md>

🙋 Introduce yourself in the <#${INTRO_CHANNEL_ID}> channel, we'd love to learn more about you and what you're working on!

✨ Customize your profile in <id:customize> by adding your own name color or custom roles

🔍 **Here's a quick breakdown of our most popular channels:**

<#${GENERAL_CHANNEL_ID}> — General chat about Next.js
<#${HELP_CHANNEL_ID}> — Ask for help with Next.js
<#${OFFTOPIC_CHANNEL_ID}> — Anything else you want to talk about
<#${SHOWCASE_CHANNEL_ID}> — Show off your Next.js projects
<#${KUDOS_CHANNEL_ID}> — Shout out people who helped you out

📜 **Server Rules**

1. Treat everyone with respect. No NFSW content or spam
2. No self-promotion (server invites, advertisements, etc.) outside the correct channels. This includes DMing fellow members
3. Job posts in this server are not allowed, refer to <#${JOBS_CHANNEL_ID}> if you want to hire someone or are looking for a job
4. Do not DM members randomly
5. Do not mention (\`@ping\`) people not in the conversation
6. Do not use an avatar, nickname, or profile that breaks any of the rules
7. Moderators will delete messages posted on the wrong channel, please read the channel descriptions before posting
8. Bumping posts in <#${HELP_CHANNEL_ID}> is allowed to avoid having it going down the list if you still need help. Do not do it more than once a day

If you see something against the rules or something that makes you feel unsafe, let the staff know. We want this server to be a welcoming space!
We are always looking to improve the server. Feel free to share your ideas or opinions in <#${FEEDBACK_CHANNEL_ID}>
`,
`
✍️ **Tips to get help faster**

1. Don't ask to ask, just ask: <https://dontasktoask.com>
2. If you are facing an error, share the full error message and what you think might be causing it
3. Always try to add this to your questions when applicable: "What are you expecting to happen?", "What is happening instead?", "What have you tried?"
4. Include the relevant dependencies you are working with. \`next info\` will give you a list to get you started
5. Share the project or a minimal reproduction of the issue, this allows people to investigate better the problem

More tips: <https://stackoverflow.com/help/how-to-ask>
`,
];

export const onStartup: OnStartupHandler = async (client) => {
Expand Down
89 changes: 0 additions & 89 deletions src/features/welcomeQuestions.ts

This file was deleted.