Skip to content

fix(deps): update dependency discord.js to v14 #139

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

Merged
merged 1 commit into from
May 15, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 22, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
discord.js (source) 13.1.0 -> 14.15.2 age adoption passing confidence

Release Notes

discordjs/discord.js (discord.js)

v14.15.2

Compare Source

Bug Fixes

v14.15.1

Compare Source

Bug Fixes

v14.15.0

Compare Source

Bug Fixes

Documentation

Features

Performance

  • Presence: Prefer boolean client status comparison before activity checks (#​10213) (4ad2858)

Refactor

Typings

v14.14.1

Compare Source

Bug Fixes

Documentation

Refactor

Typings

v14.14.0

Compare Source

Bug Fixes

  • Client: Ensure destroyed connections are not ready (#​9942) (b5e23ec)
  • Webhook: Do not call client.deleteWebhook in delete (#​9786) (31d914e)
  • GuildManager#fetch: Inject shard id (#​9921) (85753a9)
  • Prevent 'undefined' debug message on intentional shard closure (#​9846) (0e0b85b)
  • Role: Calculate position correctly when rawPositions are equal (#​9871) (0529b2a)
  • GuildScheduledEvent: Use if...else pattern and handle partials (#​9802) (32d614c)

Documentation

Features

Refactor

Typings

v14.13.0

Compare Source

Bug Fixes

Documentation

Features

Typings

v14.12.1

Compare Source

Bug Fixes

v14.12.0

Compare Source

Bug Fixes

Documentation

Features

Performance

Refactor

  • User: Remove deprecation warning from tag (#​9660) (cf8012c)
  • GuildMember: Make _roles property non-enumerable (#​9387) (46167a7)
  • rest: Switch api to fetch-like and provide strategies (#​9416) (cdaa0a3)
    • BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global fetch
    • BREAKING CHANGE: The raw method of REST now returns a web compatible Respone object.
    • BREAKING CHANGE: The parseResponse utility method has been updated to operate on a web compatible Response object.
    • BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
    • BREAKING CHANGE: DefaultRestOptions used to contain a default agent, which is now set to null instead.

Typings

  • MessageManager: Allow comparison of messages again (#​9612) (a48d0ef)
  • AutoModerationActionExecution: Add forum channels as a possible type in channel() (#​9623) (d64330a)
  • ModalSubmitFields: Components is an array (#​9406) (1cab79f)
  • Use readonly arrays and const type parameters in places (#​9641) (cd69868)
  • BaseInteraction: appPermissions not null in guilds (#​9601) (6c2242f)

v14.11.0

Compare Source

Bug Fixes

Documentation

Features

  • Guild: Safety alerts channel and mention raid protection (#​8959) (6b2c3fb)

Performance

Refactor

Typings

v14.10.2

Compare Source

Bug Fixes

v14.10.1

Compare Source

Bug Fixes

  • Client: Spelling of InvalidScopesWithPermissions (ac9bf3a)

Refactor

v14.10.0

Compare Source

Bug Fixes

Documentation

Features

Performance

  • RoleManager: Dont call Role#position getter twice per role (#​9352) (bfee6c8)

Refactor

Typings

  • AutoModerationActionMetadataOptions: Make channel property optional (#​9460) (d26df5f)
  • CategoryChannel: Ensure parent and parentId are null (#​9327) (8218ffc)
  • GuildTextBasedChannel: Remove unnecessary exclusion of forum channels (#​9326) (7ff3d52)

v14.9.0

Compare Source

Bug Fixes

Documentation

Features

Refactor

v14.8.0

Compare Source

Bug Fixes


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 22, 2023
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch from b9cec19 to 4db1ff2 Compare April 2, 2023 06:37
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch 4 times, most recently from eba01de to ed0ee86 Compare May 6, 2023 12:56
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch 2 times, most recently from 631c3c1 to 2068c17 Compare August 1, 2023 04:42
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch from 2068c17 to ab88f7d Compare August 17, 2023 21:56
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch from ab88f7d to cbc5d68 Compare November 12, 2023 22:27
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch from cbc5d68 to 1b7a0b8 Compare January 21, 2024 12:16
@renovate renovate bot changed the title fix(deps): update dependency discord.js to v14 Update dependency discord.js to v14 Jan 21, 2024
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch 2 times, most recently from e05aec8 to caa94b4 Compare May 5, 2024 19:14
@renovate renovate bot changed the title Update dependency discord.js to v14 fix(deps): update dependency discord.js to v14 May 15, 2024
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch 3 times, most recently from fd6e5b3 to 60a1604 Compare May 15, 2024 04:50
@renovate renovate bot force-pushed the renovate/discord.js-14.x branch from 60a1604 to c54b1f3 Compare May 15, 2024 04:53
@Domin0de Domin0de merged commit 720e1c6 into develop May 15, 2024
3 checks passed
@Domin0de Domin0de deleted the renovate/discord.js-14.x branch May 15, 2024 04:57
Domin0de added a commit that referenced this pull request Jul 18, 2024
* migrate from insou api to circles for the handbook commands (#128)

* migrate from insou api to circles for the handbook commands

* remove trailing forward slash in handbook.json

* handbook: the handbook is fixed

* Update handbook.js

commented out a console.log

---------

Co-authored-by: tunein <z5371683@ad.unsw.edu.au>
Co-authored-by: zcDay1 <113964162+zcDay1@users.noreply.github.com>

* prettier formatted

* chore(deps): update `renovate` config

* chore(deps): update docker/build-push-action action to v4 (#134)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Projects description command feature (#145)

* projects-descriptions v1 commit

* project-descriptions command v2 commit

* linting fixes for project-descriptions.js, and for handbook.js

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* disable annoying carrotboard pins

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging

* Revert "rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging"

This reverts commit 2f59c71.

* rolesPermOverride command  (#152)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Roles perm override (#153)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

* course.js: removed code to create individual user permission overwrites in each channel

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Project descriptions (#154)

* project-descriptions.js: updated course descriptions written by the directors for 2023 levelling up with Projects Fair Day, and the discord bot CTF flag easter egg entry under this command included too for this event.

* made messages ephemeral to prevent chat from being spammed by users. And got rid of link embeds in the messages.

* lint update

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Dev/course channel fix 3 (#158)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* dev/course-channel-fix-5 (#160)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

* Appended single channel mode for permissions override

* Appended check command for role permissions

* Resolved merge conflicts in dev/course-channel-fix-4

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* Update rolesPermOverride.js

double equals updated to triple equals on line 156

* Course Command Fixing - Collection Null Value Error (#162)

* Accounting for non-channel returns associated to snowflakes

* Utilise cache directly as fetch falls back to a cache call anyway

* Dev/upgrade handbook url (#164)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed equivalent courses urls being listed

* Implementation of the Lunch Buddy feature (#167)

* update: checking if perms work

* Chron job set for every minute, basic embed added and structure for the locations and sub locations created

* Updated README

* Implemented area voting system

* Ran linting and prettier for current changes

* Appending location poll for given area, and vote counting for both area and locations

* Implemented functional voting system for area and location, creating thread upon completion of set

* Used await and cleaned up a bit of code, thread now adds all voters not only the ones who voted for the winning area

* Lint fix

* Removed promises and adjusted placement of vote function calls

* Adjusted thread users, append location vote pings

* Linting fixes

* Locations Update

* Adds "any" option and append additional vote info

* Appended code for live run timing

* Update to use config file

* Allow disabling of feature without editing code and disable

* Minor adjustment to readme and npm commands

* Appended clarifying comment regarding edge case of only any votes

---------

Co-authored-by: mi-mott <98304083+mi-mott@users.noreply.github.com>

* [DISC-107] Adding csesocLinks to get CSESoc related links (#170)

* completed csesocLinks command

* linting

* Refactor execute function to use arrow functions

* linting

* [DISC-109] Adding bot-status for events and member count (#169)

* Adding bot-status for events and member count

* Fixing lint errors

* Adding fixes to how member count is calculated

---------

Authored-by: Eric <eric.wu3@student.unsw.edu.au>

* Update dependency nodemailer to v6.9.9 [SECURITY] (#168)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency axios to v0.28.0 [SECURITY] (#166)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency yaml to v2.2.2 [security] (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency dotenv to v16 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#157)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency discordjs-button-pagination to v3 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unused discord-tictactoe dependency and updated canvas (#173)

* fix(deps): update weekly patch updates (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/builders to v1 (#135)

* Update dependency @discordjs/builders to v1

* Update to project description choices to utilise object structure (Fix to erroring on dependency update)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>
Co-authored-by: Wolfdragon24 <31204305+Wolfdragon24@users.noreply.github.com>

* fix(deps): update dependency discord.js to v14 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update to fix v14 breaking changes (#176)

* chore(deps): update actions/setup-node action to v4 (#172)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Nitpick refactor for courses command (#126)

* I can finally sleep now

* Implementation of suggested modifications

* Modification to ensure correct regex form for case-insensitive match

---------

Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* fix(deps): update dependency mathjs to v12 (#182)

* chore(deps): update docker-github-actions

* fix(deps): update dependency mathjs to v12

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency axios to v1 (#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/rest to v2 (#179)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-config-prettier to v9 (#175)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency nodemon to v3 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update node.js to v20 (#171)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency mathjs to v13 (#184)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DISC-119-unielectives-review (#188)

* working unilectives review

* added warning for chartjs dependency

* changed to ephemeral reply

* removed unneccesary libraries for chartjs

* hopefully no npm package conflict dying

* npm packages should be fixed

* changed web scraper package for robustness

* linting

* fixed yaml npm issue

* JSCode docu

* linting

* revert config files to og

* package-json changes

---------

Co-authored-by: addison <h34312575s@gmail.com>

* [DISC-120] Update eslint dependency and nodejs to v20

* chore(deps): update dependency eslint to v9

* Update to eslint and babel/eslint-parser

* Update lock file

* Fixes for linting

* Modifications to ignore node modules and consider all other files for linting

* Force update of node to version 20

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* [DISC-120] Update to prettier and corresponding eslint plugin

* chore(deps): update dependency prettier to v3

* Update prettier config to use auto end of line setting

* Linting and prettifying

* Prettier fixes and running format

* Prettier fix

* Fix by consolidating updates to prettier and eslint plugin

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* chore(deps): lock file maintenance (#186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update weekly minor updates (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* [DISC-120] Fix to renovate.json file (#190)

* [DISC-120] Declare file type for requiring data (#192)

* [DISC-120] Adjust data type for file (#193)

* Declare file type for requiring data

* Use json as opposed to js data file

* [DISC-120] Move to using fs for configuration (#194)

* Declare file type for requiring data

* Use json as opposed to js data file

* Replace require to use reading file with fs

* Move file to config

* Fix spelling error

* Append setup command for puppeteer browser

* Downloading dependencies and requirements for puppeteer

* Modification to installation order

* Affirm installation

* Revert prior changes and set to use alternate folder for chromium instance

* Manually ignore puppeteer config file in eslint

* Attempt fix to eslint hanging

* [DISC-117] Adding travelguides command (#187)

* initial travelguide add subcommand

* fixing formatting

* fixing syntax error

* added get function

* linting

* completed travelguide command

* linting

* adding deletion confirmation

* linting

* migrating travelguide.json to postgres

* linting

* linting

---------

Co-authored-by: Jessica Xu <jessica.xu3@student.unsw.edu.au>

* Modify location and method for chromium install

* Alter setup to use chromium base

* Update to puppeteer version

* Replace secondary node image with puppeteer

* Fix capitalisation inconsistency and assume permission set

* Reappend entrypoint permission modification

* Reset user from image setup

* Attempt return to puppeteer user after setup

* [DISC-110] Adding Course Chats 1-year "Subscription" (#191)

* Added database implementation of user roles when assigned and removed

* Added time checking function for expired user_roles and added time assigned column to user_roles table

* Added on ready file with cron.js to perform daily check of old_roles

* Adding new package cron for scheduling

* fixing lint issues

* Fixing prettier issues

* Package changes

* Restoring develop package lock.json and fixing db_ready

* Moving guild and roles out of for loop to remove redundant fetching

---------

Co-authored-by: imagine-hussain <93496985+imagine-hussain@users.noreply.github.com>
Co-authored-by: tunein <z5371683@ad.unsw.edu.au>
Co-authored-by: zcDay1 <113964162+zcDay1@users.noreply.github.com>
Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: abiramen <7523422+abiramen@users.noreply.github.com>
Co-authored-by: Bigbugman <101852152+Bigbugman@users.noreply.github.com>
Co-authored-by: Abraham Assariparambil Earnest <44077482+abe123442@users.noreply.github.com>
Co-authored-by: mi-mott <98304083+mi-mott@users.noreply.github.com>
Co-authored-by: chlowoee <98923921+chlowoee@users.noreply.github.com>
Co-authored-by: ericwu2205 <143063143+ericwu2205@users.noreply.github.com>
Co-authored-by: XenocidePC <34413724+XenocidePC@users.noreply.github.com>
Co-authored-by: h34312575s <134785889+h34312575s@users.noreply.github.com>
Co-authored-by: addison <h34312575s@gmail.com>
Co-authored-by: Jessica Xu <jessica.xu3@student.unsw.edu.au>
Domin0de added a commit that referenced this pull request Aug 8, 2024
* migrate from insou api to circles for the handbook commands (#128)

* migrate from insou api to circles for the handbook commands

* remove trailing forward slash in handbook.json

* handbook: the handbook is fixed

* Update handbook.js

commented out a console.log

---------

Co-authored-by: tunein <z5371683@ad.unsw.edu.au>
Co-authored-by: zcDay1 <113964162+zcDay1@users.noreply.github.com>

* prettier formatted

* chore(deps): update `renovate` config

* chore(deps): update docker/build-push-action action to v4 (#134)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Projects description command feature (#145)

* projects-descriptions v1 commit

* project-descriptions command v2 commit

* linting fixes for project-descriptions.js, and for handbook.js

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* disable annoying carrotboard pins

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging

* Revert "rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging"

This reverts commit 2f59c71.

* rolesPermOverride command  (#152)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Roles perm override (#153)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

* course.js: removed code to create individual user permission overwrites in each channel

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Project descriptions (#154)

* project-descriptions.js: updated course descriptions written by the directors for 2023 levelling up with Projects Fair Day, and the discord bot CTF flag easter egg entry under this command included too for this event.

* made messages ephemeral to prevent chat from being spammed by users. And got rid of link embeds in the messages.

* lint update

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Dev/course channel fix 3 (#158)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* dev/course-channel-fix-5 (#160)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

* Appended single channel mode for permissions override

* Appended check command for role permissions

* Resolved merge conflicts in dev/course-channel-fix-4

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* Update rolesPermOverride.js

double equals updated to triple equals on line 156

* Course Command Fixing - Collection Null Value Error (#162)

* Accounting for non-channel returns associated to snowflakes

* Utilise cache directly as fetch falls back to a cache call anyway

* Dev/upgrade handbook url (#164)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed equivalent courses urls being listed

* Implementation of the Lunch Buddy feature (#167)

* update: checking if perms work

* Chron job set for every minute, basic embed added and structure for the locations and sub locations created

* Updated README

* Implemented area voting system

* Ran linting and prettier for current changes

* Appending location poll for given area, and vote counting for both area and locations

* Implemented functional voting system for area and location, creating thread upon completion of set

* Used await and cleaned up a bit of code, thread now adds all voters not only the ones who voted for the winning area

* Lint fix

* Removed promises and adjusted placement of vote function calls

* Adjusted thread users, append location vote pings

* Linting fixes

* Locations Update

* Adds "any" option and append additional vote info

* Appended code for live run timing

* Update to use config file

* Allow disabling of feature without editing code and disable

* Minor adjustment to readme and npm commands

* Appended clarifying comment regarding edge case of only any votes

---------

Co-authored-by: mi-mott <98304083+mi-mott@users.noreply.github.com>

* [DISC-107] Adding csesocLinks to get CSESoc related links (#170)

* completed csesocLinks command

* linting

* Refactor execute function to use arrow functions

* linting

* [DISC-109] Adding bot-status for events and member count (#169)

* Adding bot-status for events and member count

* Fixing lint errors

* Adding fixes to how member count is calculated

---------

Authored-by: Eric <eric.wu3@student.unsw.edu.au>

* Update dependency nodemailer to v6.9.9 [SECURITY] (#168)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency axios to v0.28.0 [SECURITY] (#166)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency yaml to v2.2.2 [security] (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency dotenv to v16 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#157)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency discordjs-button-pagination to v3 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unused discord-tictactoe dependency and updated canvas (#173)

* fix(deps): update weekly patch updates (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/builders to v1 (#135)

* Update dependency @discordjs/builders to v1

* Update to project description choices to utilise object structure (Fix to erroring on dependency update)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>
Co-authored-by: Wolfdragon24 <31204305+Wolfdragon24@users.noreply.github.com>

* fix(deps): update dependency discord.js to v14 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update to fix v14 breaking changes (#176)

* chore(deps): update actions/setup-node action to v4 (#172)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Nitpick refactor for courses command (#126)

* I can finally sleep now

* Implementation of suggested modifications

* Modification to ensure correct regex form for case-insensitive match

---------

Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* fix(deps): update dependency mathjs to v12 (#182)

* chore(deps): update docker-github-actions

* fix(deps): update dependency mathjs to v12

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency axios to v1 (#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/rest to v2 (#179)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-config-prettier to v9 (#175)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency nodemon to v3 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update node.js to v20 (#171)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency mathjs to v13 (#184)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DISC-119-unielectives-review (#188)

* working unilectives review

* added warning for chartjs dependency

* changed to ephemeral reply

* removed unneccesary libraries for chartjs

* hopefully no npm package conflict dying

* npm packages should be fixed

* changed web scraper package for robustness

* linting

* fixed yaml npm issue

* JSCode docu

* linting

* revert config files to og

* package-json changes

---------

Co-authored-by: addison <h34312575s@gmail.com>

* [DISC-120] Update eslint dependency and nodejs to v20

* chore(deps): update dependency eslint to v9

* Update to eslint and babel/eslint-parser

* Update lock file

* Fixes for linting

* Modifications to ignore node modules and consider all other files for linting

* Force update of node to version 20

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* [DISC-120] Update to prettier and corresponding eslint plugin

* chore(deps): update dependency prettier to v3

* Update prettier config to use auto end of line setting

* Linting and prettifying

* Prettier fixes and running format

* Prettier fix

* Fix by consolidating updates to prettier and eslint plugin

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* chore(deps): lock file maintenance (#186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update weekly minor updates (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* [DISC-120] Fix to renovate.json file (#190)

* [DISC-120] Declare file type for requiring data (#192)

* [DISC-120] Adjust data type for file (#193)

* Declare file type for requiring data

* Use json as opposed to js data file

* [DISC-120] Move to using fs for configuration (#194)

* Declare file type for requiring data

* Use json as opposed to js data file

* Replace require to use reading file with fs

* Move file to config

* Fix spelling error

* Append setup command for puppeteer browser

* Downloading dependencies and requirements for puppeteer

* Modification to installation order

* Affirm installation

* Revert prior changes and set to use alternate folder for chromium instance

* Manually ignore puppeteer config file in eslint

* Attempt fix to eslint hanging

* [DISC-117] Adding travelguides command (#187)

* initial travelguide add subcommand

* fixing formatting

* fixing syntax error

* added get function

* linting

* completed travelguide command

* linting

* adding deletion confirmation

* linting

* migrating travelguide.json to postgres

* linting

* linting

---------

Co-authored-by: Jessica Xu <jessica.xu3@student.unsw.edu.au>

* Modify location and method for chromium install

* Alter setup to use chromium base

* Update to puppeteer version

* Replace secondary node image with puppeteer

* Fix capitalisation inconsistency and assume permission set

* Reappend entrypoint permission modification

* Reset user from image setup

* Attempt return to puppeteer user after setup

* [DISC-110] Adding Course Chats 1-year "Subscription" (#191)

* Added database implementation of user roles when assigned and removed

* Added time checking function for expired user_roles and added time assigned column to user_roles table

* Added on ready file with cron.js to perform daily check of old_roles

* Adding new package cron for scheduling

* fixing lint issues

* Fixing prettier issues

* Package changes

* Restoring develop package lock.json and fixing db_ready

* Moving guild and roles out of for loop to remove redundant fetching

* [DISC-121] Implement Logging for User Rejoining (#199)

* Implementation of user join and leave logging and admin command to facilitate replacing old db table

* Complete implementation of rejoin notices

* Fix to incorrect conflict resolution commit

---------

Co-authored-by: imagine-hussain <93496985+imagine-hussain@users.noreply.github.com>
Co-authored-by: tunein <z5371683@ad.unsw.edu.au>
Co-authored-by: zcDay1 <113964162+zcDay1@users.noreply.github.com>
Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: abiramen <7523422+abiramen@users.noreply.github.com>
Co-authored-by: Bigbugman <101852152+Bigbugman@users.noreply.github.com>
Co-authored-by: Abraham Assariparambil Earnest <44077482+abe123442@users.noreply.github.com>
Co-authored-by: mi-mott <98304083+mi-mott@users.noreply.github.com>
Co-authored-by: chlowoee <98923921+chlowoee@users.noreply.github.com>
Co-authored-by: ericwu2205 <143063143+ericwu2205@users.noreply.github.com>
Co-authored-by: XenocidePC <34413724+XenocidePC@users.noreply.github.com>
Co-authored-by: h34312575s <134785889+h34312575s@users.noreply.github.com>
Co-authored-by: addison <h34312575s@gmail.com>
Co-authored-by: Jessica Xu <jessica.xu3@student.unsw.edu.au>
Domin0de added a commit that referenced this pull request Aug 8, 2024
* migrate from insou api to circles for the handbook commands (#128)

* migrate from insou api to circles for the handbook commands

* remove trailing forward slash in handbook.json

* handbook: the handbook is fixed

* Update handbook.js

commented out a console.log

---------

Co-authored-by: tunein <z5371683@ad.unsw.edu.au>
Co-authored-by: zcDay1 <113964162+zcDay1@users.noreply.github.com>

* prettier formatted

* chore(deps): update `renovate` config

* chore(deps): update docker/build-push-action action to v4 (#134)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Projects description command feature (#145)

* projects-descriptions v1 commit

* project-descriptions command v2 commit

* linting fixes for project-descriptions.js, and for handbook.js

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* disable annoying carrotboard pins

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging

* Revert "rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging"

This reverts commit 2f59c71.

* rolesPermOverride command  (#152)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Roles perm override (#153)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

* course.js: removed code to create individual user permission overwrites in each channel

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Project descriptions (#154)

* project-descriptions.js: updated course descriptions written by the directors for 2023 levelling up with Projects Fair Day, and the discord bot CTF flag easter egg entry under this command included too for this event.

* made messages ephemeral to prevent chat from being spammed by users. And got rid of link embeds in the messages.

* lint update

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Dev/course channel fix 3 (#158)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* dev/course-channel-fix-5 (#160)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

* Appended single channel mode for permissions override

* Appended check command for role permissions

* Resolved merge conflicts in dev/course-channel-fix-4

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* Update rolesPermOverride.js

double equals updated to triple equals on line 156

* Course Command Fixing - Collection Null Value Error (#162)

* Accounting for non-channel returns associated to snowflakes

* Utilise cache directly as fetch falls back to a cache call anyway

* Dev/upgrade handbook url (#164)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed equivalent courses urls being listed

* Implementation of the Lunch Buddy feature (#167)

* update: checking if perms work

* Chron job set for every minute, basic embed added and structure for the locations and sub locations created

* Updated README

* Implemented area voting system

* Ran linting and prettier for current changes

* Appending location poll for given area, and vote counting for both area and locations

* Implemented functional voting system for area and location, creating thread upon completion of set

* Used await and cleaned up a bit of code, thread now adds all voters not only the ones who voted for the winning area

* Lint fix

* Removed promises and adjusted placement of vote function calls

* Adjusted thread users, append location vote pings

* Linting fixes

* Locations Update

* Adds "any" option and append additional vote info

* Appended code for live run timing

* Update to use config file

* Allow disabling of feature without editing code and disable

* Minor adjustment to readme and npm commands

* Appended clarifying comment regarding edge case of only any votes

---------

Co-authored-by: mi-mott <98304083+mi-mott@users.noreply.github.com>

* [DISC-107] Adding csesocLinks to get CSESoc related links (#170)

* completed csesocLinks command

* linting

* Refactor execute function to use arrow functions

* linting

* [DISC-109] Adding bot-status for events and member count (#169)

* Adding bot-status for events and member count

* Fixing lint errors

* Adding fixes to how member count is calculated

---------

Authored-by: Eric <eric.wu3@student.unsw.edu.au>

* Update dependency nodemailer to v6.9.9 [SECURITY] (#168)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency axios to v0.28.0 [SECURITY] (#166)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency yaml to v2.2.2 [security] (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency dotenv to v16 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#157)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency discordjs-button-pagination to v3 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unused discord-tictactoe dependency and updated canvas (#173)

* fix(deps): update weekly patch updates (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/builders to v1 (#135)

* Update dependency @discordjs/builders to v1

* Update to project description choices to utilise object structure (Fix to erroring on dependency update)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>
Co-authored-by: Wolfdragon24 <31204305+Wolfdragon24@users.noreply.github.com>

* fix(deps): update dependency discord.js to v14 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update to fix v14 breaking changes (#176)

* chore(deps): update actions/setup-node action to v4 (#172)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Nitpick refactor for courses command (#126)

* I can finally sleep now

* Implementation of suggested modifications

* Modification to ensure correct regex form for case-insensitive match

---------

Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* fix(deps): update dependency mathjs to v12 (#182)

* chore(deps): update docker-github-actions

* fix(deps): update dependency mathjs to v12

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency axios to v1 (#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/rest to v2 (#179)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-config-prettier to v9 (#175)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency nodemon to v3 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update node.js to v20 (#171)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency mathjs to v13 (#184)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DISC-119-unielectives-review (#188)

* working unilectives review

* added warning for chartjs dependency

* changed to ephemeral reply

* removed unneccesary libraries for chartjs

* hopefully no npm package conflict dying

* npm packages should be fixed

* changed web scraper package for robustness

* linting

* fixed yaml npm issue

* JSCode docu

* linting

* revert config files to og

* package-json changes

---------

Co-authored-by: addison <h34312575s@gmail.com>

* [DISC-120] Update eslint dependency and nodejs to v20

* chore(deps): update dependency eslint to v9

* Update to eslint and babel/eslint-parser

* Update lock file

* Fixes for linting

* Modifications to ignore node modules and consider all other files for linting

* Force update of node to version 20

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* [DISC-120] Update to prettier and corresponding eslint plugin

* chore(deps): update dependency prettier to v3

* Update prettier config to use auto end of line setting

* Linting and prettifying

* Prettier fixes and running format

* Prettier fix

* Fix by consolidating updates to prettier and eslint plugin

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* chore(deps): lock file maintenance (#186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update weekly minor updates (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* [DISC-120] Fix to renovate.json file (#190)

* [DISC-120] Declare file type for requiring data (#192)

* [DISC-120] Adjust data type for file (#193)

* Declare file type for requiring data

* Use json as opposed to js data file

* [DISC-120] Move to using fs for configuration (#194)

* Declare file type for requiring data

* Use json as opposed to js data file

* Replace require to use reading file with fs

* Move file to config

* Fix spelling error

* Append setup command for puppeteer browser

* Downloading dependencies and requirements for puppeteer

* Modification to installation order

* Affirm installation

* Revert prior changes and set to use alternate folder for chromium instance

* Manually ignore puppeteer config file in eslint

* Attempt fix to eslint hanging

* [DISC-117] Adding travelguides command (#187)

* initial travelguide add subcommand

* fixing formatting

* fixing syntax error

* added get function

* linting

* completed travelguide command

* linting

* adding deletion confirmation

* linting

* migrating travelguide.json to postgres

* linting

* linting

---------

Co-authored-by: Jessica Xu <jessica.xu3@student.unsw.edu.au>

* Modify location and method for chromium install

* Alter setup to use chromium base

* Update to puppeteer version

* Replace secondary node image with puppeteer

* Fix capitalisation inconsistency and assume permission set

* Reappend entrypoint permission modification

* Reset user from image setup

* Attempt return to puppeteer user after setup

* [DISC-110] Adding Course Chats 1-year "Subscription" (#191)

* Added database implementation of user roles when assigned and removed

* Added time checking function for expired user_roles and added time assigned column to user_roles table

* Added on ready file with cron.js to perform daily check of old_roles

* Adding new package cron for scheduling

* fixing lint issues

* Fixing prettier issues

* Package changes

* Restoring develop package lock.json and fixing db_ready

* Moving guild and roles out of for loop to remove redundant fetching

* [DISC-121] Implement Logging for User Rejoining (#199)

* Implementation of user join and leave logging and admin command to facilitate replacing old db table

* Complete implementation of rejoin notices

* Fix to incorrect conflict resolution commit

* Minor fixes to Admin Command (#203)

* Update permission field to use new reference

* Fix function call name

* Fixes to allow functioning of admin delete command

* Append additional table creation after removing old table

---------

Co-authored-by: imagine-hussain <93496985+imagine-hussain@users.noreply.github.com>
Co-authored-by: tunein <z5371683@ad.unsw.edu.au>
Co-authored-by: zcDay1 <113964162+zcDay1@users.noreply.github.com>
Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: abiramen <7523422+abiramen@users.noreply.github.com>
Co-authored-by: Bigbugman <101852152+Bigbugman@users.noreply.github.com>
Co-authored-by: Abraham Assariparambil Earnest <44077482+abe123442@users.noreply.github.com>
Co-authored-by: mi-mott <98304083+mi-mott@users.noreply.github.com>
Co-authored-by: chlowoee <98923921+chlowoee@users.noreply.github.com>
Co-authored-by: ericwu2205 <143063143+ericwu2205@users.noreply.github.com>
Co-authored-by: XenocidePC <34413724+XenocidePC@users.noreply.github.com>
Co-authored-by: h34312575s <134785889+h34312575s@users.noreply.github.com>
Co-authored-by: addison <h34312575s@gmail.com>
Co-authored-by: Jessica Xu <jessica.xu3@student.unsw.edu.au>
Domin0de added a commit that referenced this pull request Nov 12, 2024
* migrate from insou api to circles for the handbook commands (#128)

* migrate from insou api to circles for the handbook commands

* remove trailing forward slash in handbook.json

* handbook: the handbook is fixed

* Update handbook.js

commented out a console.log

---------

Co-authored-by: tunein <z5371683@ad.unsw.edu.au>
Co-authored-by: zcDay1 <113964162+zcDay1@users.noreply.github.com>

* prettier formatted

* chore(deps): update `renovate` config

* chore(deps): update docker/build-push-action action to v4 (#134)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Projects description command feature (#145)

* projects-descriptions v1 commit

* project-descriptions command v2 commit

* linting fixes for project-descriptions.js, and for handbook.js

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* disable annoying carrotboard pins

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging

* Revert "rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging"

This reverts commit 2f59c71.

* rolesPermOverride command  (#152)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Roles perm override (#153)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

* course.js: removed code to create individual user permission overwrites in each channel

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Project descriptions (#154)

* project-descriptions.js: updated course descriptions written by the directors for 2023 levelling up with Projects Fair Day, and the discord bot CTF flag easter egg entry under this command included too for this event.

* made messages ephemeral to prevent chat from being spammed by users. And got rid of link embeds in the messages.

* lint update

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>

* Dev/course channel fix 3 (#158)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* dev/course-channel-fix-5 (#160)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

* Appended single channel mode for permissions override

* Appended check command for role permissions

* Resolved merge conflicts in dev/course-channel-fix-4

---------

Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* Update rolesPermOverride.js

double equals updated to triple equals on line 156

* Course Command Fixing - Collection Null Value Error (#162)

* Accounting for non-channel returns associated to snowflakes

* Utilise cache directly as fetch falls back to a cache call anyway

* Dev/upgrade handbook url (#164)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed equivalent courses urls being listed

* Implementation of the Lunch Buddy feature (#167)

* update: checking if perms work

* Chron job set for every minute, basic embed added and structure for the locations and sub locations created

* Updated README

* Implemented area voting system

* Ran linting and prettier for current changes

* Appending location poll for given area, and vote counting for both area and locations

* Implemented functional voting system for area and location, creating thread upon completion of set

* Used await and cleaned up a bit of code, thread now adds all voters not only the ones who voted for the winning area

* Lint fix

* Removed promises and adjusted placement of vote function calls

* Adjusted thread users, append location vote pings

* Linting fixes

* Locations Update

* Adds "any" option and append additional vote info

* Appended code for live run timing

* Update to use config file

* Allow disabling of feature without editing code and disable

* Minor adjustment to readme and npm commands

* Appended clarifying comment regarding edge case of only any votes

---------

Co-authored-by: mi-mott <98304083+mi-mott@users.noreply.github.com>

* [DISC-107] Adding csesocLinks to get CSESoc related links (#170)

* completed csesocLinks command

* linting

* Refactor execute function to use arrow functions

* linting

* [DISC-109] Adding bot-status for events and member count (#169)

* Adding bot-status for events and member count

* Fixing lint errors

* Adding fixes to how member count is calculated

---------

Authored-by: Eric <eric.wu3@student.unsw.edu.au>

* Update dependency nodemailer to v6.9.9 [SECURITY] (#168)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency axios to v0.28.0 [SECURITY] (#166)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency yaml to v2.2.2 [security] (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency dotenv to v16 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#157)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency discordjs-button-pagination to v3 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unused discord-tictactoe dependency and updated canvas (#173)

* fix(deps): update weekly patch updates (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/builders to v1 (#135)

* Update dependency @discordjs/builders to v1

* Update to project description choices to utilise object structure (Fix to erroring on dependency update)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>
Co-authored-by: Wolfdragon24 <31204305+Wolfdragon24@users.noreply.github.com>

* fix(deps): update dependency discord.js to v14 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update to fix v14 breaking changes (#176)

* chore(deps): update actions/setup-node action to v4 (#172)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Nitpick refactor for courses command (#126)

* I can finally sleep now

* Implementation of suggested modifications

* Modification to ensure correct regex form for case-insensitive match

---------

Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* fix(deps): update dependency mathjs to v12 (#182)

* chore(deps): update docker-github-actions

* fix(deps): update dependency mathjs to v12

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency axios to v1 (#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/rest to v2 (#179)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-config-prettier to v9 (#175)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency nodemon to v3 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update node.js to v20 (#171)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency mathjs to v13 (#184)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DISC-119-unielectives-review (#188)

* working unilectives review

* added warning for chartjs dependency

* changed to ephemeral reply

* removed unneccesary libraries for chartjs

* hopefully no npm package conflict dying

* npm packages should be fixed

* changed web scraper package for robustness

* linting

* fixed yaml npm issue

* JSCode docu

* linting

* revert config files to og

* package-json changes

---------

Co-authored-by: addison <h34312575s@gmail.com>

* [DISC-120] Update eslint dependency and nodejs to v20

* chore(deps): update dependency eslint to v9

* Update to eslint and babel/eslint-parser

* Update lock file

* Fixes for linting

* Modifications to ignore node modules and consider all other files for linting

* Force update of node to version 20

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* [DISC-120] Update to prettier and corresponding eslint plugin

* chore(deps): update dependency prettier to v3

* Update prettier config to use auto end of line setting

* Linting and prettifying

* Prettier fixes and running format

* Prettier fix

* Fix by consolidating updates to prettier and eslint plugin

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <dragonbomber24@gmail.com>

* chore(deps): lock file maintenance (#186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update weekly minor updates (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* [DISC-120] Fix to renovate.json file (#190)

* [DISC-120] Declare file type for requiring data (#192)

* [DISC-120] Adjust data type for file (#193)

* Declare file type for requiring data

* Use json as opposed to js data file

* [DISC-120] Move to using fs for configuration (#194)

* Declare file type for requiring data

* Use json as opposed to js data file

* Replace require to use reading file with fs

* Move file to config

* Fix spelling error

* Append setup command for puppeteer browser

* Downloading dependencies and requirements for puppeteer

* Modification to installation order

* Affirm installation

* Revert prior changes and set to use alternate folder for chromium instance

* Manually ignore puppeteer config file in eslint

* Attempt fix to eslint hanging

* [DISC-117] Adding travelguides command (#187)

* initial travelguide add subcommand

* fixing formatting

* fixing syntax error

* added get function

* linting

* completed travelguide command

* linting

* adding deletion confirmation

* linting

* migrating travelguide.json to postgres

* linting

* linting

---------

Co-authored-by: Jessica Xu <jessica.xu3@student.unsw.edu.au>

* Modify location and method for chromium install

* Alter setup to use chromium base

* Update to puppeteer version

* Replace secondary node image with puppeteer

* Fix capitalisation inconsistency and assume permission set

* Reappend entrypoint permission modification

* Reset user from image setup

* Attempt return to puppeteer user after setup

* [DISC-110] Adding Course Chats 1-year "Subscription" (#191)

* Added database implementation of user roles when assigned and removed

* Added time checking function for expired user_roles and added time assigned column to user_roles table

* Added on ready file with cron.js to perform daily check of old_roles

* Adding new package cron for scheduling

* fixing lint issues

* Fixing prettier issues

* Package changes

* Restoring develop package lock.json and fixing db_ready

* Moving guild and roles out of for loop to remove redundant fetching

* [DISC-121] Implement Logging for User Rejoining (#199)

* Implementation of user join and leave logging and admin command to facilitate replacing old db table

* Complete implementation of rejoin notices

* Fix to incorrect conflict resolution commit

* Minor fixes to Admin Command (#203)

* Update permission field to use new reference

* Fix function call name

* Fixes to allow functioning of admin delete command

* Append additional table creation after removing old table

* Update dependency axios to v1.7.4 [SECURITY] (#205)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Fix embed option usage of strings with objects (#207)

---------

Co-authored-by: imagine-hussain <93496985+imagine-hussain@users.noreply.github.com>
Co-authored-by: tunein <z5371683@ad.unsw.edu.au>
Co-authored-by: zcDay1 <113964162+zcDay1@users.noreply.github.com>
Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: abiramen <7523422+abiramen@users.noreply.github.com>
Co-authored-by: Bigbugman <101852152+Bigbugman@users.noreply.github.com>
Co-authored-by: Abraham Assariparambil Earnest <44077482+abe123442@users.noreply.github.com>
Co-authored-by: mi-mott <98304083+mi-mott@users.noreply.github.com>
Co-authored-by: chlowoee <98923921+chlowoee@users.noreply.github.com>
Co-authored-by: ericwu2205 <143063143+ericwu2205@users.noreply.github.com>
Co-authored-by: XenocidePC <34413724+XenocidePC@users.noreply.github.com>
Co-authored-by: h34312575s <134785889+h34312575s@users.noreply.github.com>
Co-authored-by: addison <h34312575s@gmail.com>
Co-authored-by: Jessica Xu <jessica.xu3@student.unsw.edu.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant