Setup

Commands inside of the setup cog

Command

Usage

Description

setup name

+setup name <name>

Changes a user's nickname on the server to their full name.

Arguments

name is the name the user used to sign up for C4T programs. For students, this should be the student's name. For parents, this should be the parent's name. For volunteers, this should be the volunteer's name.

Examples

+setup name Jane Doe

Do NOT do this: +setup Jane Doe

IMPORTANT

This name must match the name you signed up with in order for the setup subcommands to work.

This command will automatically remove <, >, [, or ] characters from the given display name.

setup student

+setup student [code] ...

Sets up a student's account on the server and displays the result of the setup (if it was successful or not).

Arguments

code is a unique numerical class code sent via email that represents the class the student is enrolled in (note: you can enter one or more codes separated by spaces). Students only need to enter code(s) if there is another student with the same name as them - Enoch will notify them if this happens.

Checks

This command can only be invoked...

- in the #commands channel

- in the C4T Classes server

Important

Before using this command, you must use +setup name <name>to set your display name to the name you signed up with. This must match EXACTLY in order for the verification process to work.

Examples +setup student

+setup student 1111

+setup student 2111 3111

Do NOT do this: +setup student @1111

setup parent

+setup parent [code] ...

Sets up a parent's account on the server and displays the result of the setup (if it was successful or not).

Arguments

code is a unique numerical class code sent via email that represents the class the parent's child is enrolled in (note: you can enter one or more codes separated by spaces). codes is optional. You won't have to input it unless Enoch tells you to.

Checks

This command can only be invoked...

- in the #commands channel

- in the C4T Classes server

Important

Before using this command, you must use +setup name <name>

to set your display name to the name you signed up with. This must match EXACTLY in order for the verification process to work.

Examples +setup parent

+setup parent 1111

+setup parent 2111 3111

Do NOT do this: +setup parent @1111

setup teacher

+setup teacher [code] ...

Sets up a teacher's account on the server and displays the result of the setup (if it was successful or not).

Arguments

code is a unique numerical class code that represents the class the teacher is teaching (note: you can enter one or more codes separated by spaces). codes is optional. You won't have to input it unless Enoch tells you to.

Checks

This command can only be invoked...

- in the #commands channel

- in the C4T Classes server

Important

Before using this command, you must use +setup name <name>

to set your display name to the name you signed up with. This must match EXACTLY in order for the verification process to work.

Examples +setup teacher

+setup teacher 1111

+setup teacher 2111 3111

Do NOT do this: +setup teacher @1111

setup member

+setup member <dept>

Sets up a C4T member on the Code 4 Tomorrow server by adding the member's primary department role

Arguments

dept is the C4T member's primary department

Valid Department Names (case insensitive)

outreach

internal affairs

classes

coco

Checks

This subcommand can only be used on the Code 4 Tomorrow server

setup addproj

+setup addproj <project>

Adds a project role to the user

Arguments

project is a C4T member's project group

Valid Project Names (case insensitive)

partnerships

social media, sm

website design, wd

public relations, pr

documentations, docs

volunteer management, vm

finance

java

python

web development, web dev

scratch

machine learning, ml

javascript, js

ios app development, ios app dev

curriculum expansion, curr exp

class scheduling, class sched

coco project

Checks

This subcommand can only be used on the Code 4 Tomorrow server.

The user must have at least 1 department role (see setup member).

IMPORTANT

You must use the setup member command to add a department role before using this command.

Aliases: add_proj, addproject, add_project

setup done

+setup done

Checks if a user is done with setup on the Code 4 Tomorrow server.

If the user is done (they have at least 1 department role and at least 1 project role), then the Unverified role is removed from the user and they are sent a setup complete DM. Otherwise, they are sent a setup fail DM.

Checks

This subcommand can only be used on the Code 4 Tomorrow server

setup ambassador

+setup ambassador

Sets up an ambassador on the C4T Community server by adding the Ambassador role to the user.

Checks

This command can only be invoked...

- in the #commands channel

- in the C4T Community server

IMPORTANT

Before using this command, you must use +setup name <name>to set your display name to the name you signed up with. This must match EXACTLY in order for the verification process to work.

classup

+classup [codes] ...

This command is an alias for using roleup, textup, and voiceup all together. For more details, see those commands' help texts.

Arguments

codes - the class code(s) that you want to set up

Examples

+classup

+classup 11111

+classup 11111 11112 22231

Checks

Only users with administrator permissions can use this command.

classdown

+classdown [codes] ...

This command is an alias for using roledown, textdown, voicedown, and convertroles all together. For more details, see those commands' help texts.

Arguments

type - the role you want to convert (see convertroles). You must specify this argument.

codes - the class code(s) that you want to shut down

Examples

+classdown both

+classdown both 11111

+classdown student 11111

+classdown teacher 11111 11112 22231

Do NOT do this

+classdown (missing type argument)

+classdown 11111 (missing type argument)

+classdown 11111 both (type argument before codes argument(s))

Checks

Only users with administrator permissions can use this command.

Note

The user who invoked the command must confirm this operation within 10 seconds otherwise the classdown operation will be canceled.

voiceup

+voiceup [codes] ...

Creates or updates a private voice channel for each valid class code. IMPORTANT: Make sure to use roleup before this command to create class roles.

If no codes are given, voice channels will only be made for class codes which use Discord as a meeting location as specified on the class roster spreadsheet. (Specifically, the Meeting Location column must contain the words 'Discord Channel'.)

Also creates categories for each course and level combination if they don't already exist. (For example, it will create a Java Beginner category if there are Java Beginner class codes.)

Arguments

codes - the class code(s) that you want to make voice channels for

Examples

+voiceup

+voiceup 11111

+voiceup 11111 11112 22231

Checks

Only users with administrator permissions can use this command.

Note

If a class voice channel already exists, it will be edited so it has the correct category and permissions.

voicedown

+voicedown [codes] ...

Deletes the corresponding voice channel for each valid class code.

This command will also delete any empty categories.

Arguments

codes - the class code(s) that you want to remove channels and roles for

Examples

+voicedown

+voicedown 11111

+voicedown 11111 11112 22231

Checks

Only users with administrator permissions can use this command.

roleup

+roleup [codes] ...

Creates or updates cosmetic roles for each valid class code. If no class codes are given, the command will create roles for all class codes for this series.

Arguments

codes - the class code(s) that you want to make roles for

Examples

+roleup

+roleup 11111

+roleup 11111 11112 22231

Checks

Only users with administrator permissions can use this command.

Note

If a class role already exists, its permissions will be cleared to ensure that it is a cosmetic role.

roledown

+roledown [codes] ...

Deletes cosmetic roles for each valid class code. If no class codes are given, the command will delete roles for all class codes for this series.

Arguments

codes - the class code(s) that you want to delete roles for

Examples

+roledown

+roledown 11111

+roledown 11111 11112 22231

Checks

Only users with administrator permissions can use this command.

Note

The user who invoked the command must confirm this operation within 10 seconds otherwise the operation will be canceled.

convertroles

+convertroles [type]

Converts student or teacher roles to alumnus and former teacher, respectively.

Arguments

type - the role that you want to change (student, teacher, or both)

Examples

+convertroles

+convertroles student

+convertroles teacher

+convertroles both

Checks

Only users with administrator permissions can use this command.

Note

The user who invoked the command must confirm this operation within 10 seconds otherwise the operation will be canceled.

textup

+textup [codes] ...

Creates or updates a private text channel for each valid class code.

Also sets the text channel topic and creates categories for each course and level combination. (For example, it will create a Java Beginner category if there are Java Beginner class codes.)

IMPORTANT: Make sure to use roleup before this command to create class roles.

Arguments

codes - the class code(s) that you want to make text channels for

Examples

+textup

+textup 11111

+textup 11111 11112 22231

Checks

Only users with administrator permissions can use this command.

Note

Created class text channels will be appended to their categories in ascending order. Created categories will be appended in ascending order.

If a class text channel already exists, it will be edited so it has the correct topic, category, position, and permissions.

textdown

+textdown [codes] ...

Deletes the text channel for each valid class code. Also deletes any empty categories.

Arguments

codes - the class code(s) that you want to remove text channels for

Examples

+textdown

+textdown 11111

+textdown 11111 11112 22231

Checks

Only users with administrator permissions can use this command.

Note

The user who invoked the command must confirm this operation within 10 seconds otherwise the textdown operation will be canceled.

Last updated