diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 26102c42..b8316d72 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -39,7 +39,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GH_TOKEN }} - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: . push: ${{ github.event_name != 'pull_request' && ( github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/projects-bot' ) }} diff --git a/commands/handbook.js b/commands/handbook.js index 64bf8b60..3799f703 100644 --- a/commands/handbook.js +++ b/commands/handbook.js @@ -43,15 +43,15 @@ module.exports = { title, code, UOC, - level, + // level, description, - study_level, - school, - campus, + // study_level, + // school, + // campus, equivalents, raw_requirements, exclusions, - handbook_note, + // handbook_note, terms, } = data; diff --git a/commands/project-descriptions.js b/commands/project-descriptions.js new file mode 100644 index 00000000..0b186b0d --- /dev/null +++ b/commands/project-descriptions.js @@ -0,0 +1,85 @@ +const { SlashCommandBuilder } = require("@discordjs/builders"); + +module.exports = { + data: new SlashCommandBuilder() + .setName("project-descriptions") + .setDescription("Returns a description for each project under CSESoc Development!") + .addStringOption((option) => + option + .setName("project") + .setDescription("Which project do you want to be introduced to?") + .setRequired(true) + .addChoices([ + ["Chaos", "chaos"], + ["Circles", "circles"], + ["CS Electives", "cselectives"], + ["Discord Bot", "discordbot"], + ["Freerooms", "freerooms"], + ["Jobsboard", "jobsboard"], + ["Notangles", "notangles"], + ["Structs.sh", "structs.sh"], + ["UI/UX", "ui/ux"], + ["Website", "website"], + ]), + ), + + async execute(interaction) { + const parsedOption = interaction.options.get("project").value.toLowerCase(); + // console.log(`.${parsedOption}.`); + switch (parsedOption) { + case "chaos": + await interaction.reply( + "Chaos is a CSESoc internal recruitment tool written in Rust.", + ); + break; + case "circles": + await interaction.reply( + "Circles is a degree planner that helps you choose courses, plan out your terms and check progression.", + ); + break; + case "cselectives": + await interaction.reply( + "Unsure about what a course is like? Worry no more; CSElectives lets you read and write reviews of UNSW CSE courses.", + ); + break; + case "discordbot": + await interaction.reply( + "CSESoc Discord Bot is your friendly helper in all things fun and CSE.", + ); + break; + case "freerooms": + await interaction.reply( + "Looking for a room to study in? Freerooms lets you see which on-campus rooms are vacant and which ones are booked.", + ); + break; + case "jobsboard": + await interaction.reply( + "Jobsboard is an app that connects CSE students with companies looking for recruits.", + ); + break; + case "notangles": + await interaction.reply( + "Notangles is a timetable planning app for UNSW students to build their perfect timetable, even before class registration opens.", + ); + break; + case "structs.sh": + await interaction.reply("Structs.sh is an interactive algorithm visualiser."); + break; + case "ui/ux": + await interaction.reply( + "The CSESoc Development UI/UX team works with all things related to user interface and experience design!", + ); + break; + case "website": + await interaction.reply( + "The website team are in charge of writing the software for the CSESoc website.", + ); + break; + default: + await interaction.reply( + "Error: the switch case has fallen through to the default case.", + ); + break; + } + }, +}; diff --git a/config/carrotboard.yaml b/config/carrotboard.yaml index 32c98a8b..7a4a11b6 100644 --- a/config/carrotboard.yaml +++ b/config/carrotboard.yaml @@ -3,5 +3,5 @@ leaderboard_channel_id: 979516523335016509 carrotboard_alert_channel_id: 894267846106963998 guild_id: 884747109935497236 carrot_emoji: 🥳 -minimum_carrot_count: 1 -minimum_pin_count: 1 +minimum_carrot_count: 999999 +minimum_pin_count: 999999999999 diff --git a/renovate.json b/renovate.json index 28505fd0..7262f36f 100644 --- a/renovate.json +++ b/renovate.json @@ -9,16 +9,23 @@ "automerge": false, "automergeType": "branch" }, + { + "matchUpdateTypes": ["patch"], + "groupName": "weekly patch updates", + "schedule": ["before 5am every monday"], + "addLabels": ["deps: patches"] + }, + { + "matchUpdateTypes": ["minor"], + "groupName": "weekly minor updates", + "schedule": ["before 5am every monday"], + "addLabels": ["deps: minor"] + }, { "groupName": "docker-github-actions", "matchPackagePatterns": ["docker/*"], "automerge": true, "automergeType": "branch" }, - { - "matchUpdateTypes": ["patch"], - "groupName": "weekly patch updates", - "schedule": ["before 5am every monday"] - } ] }