Skip to content
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

Update deploy.yml #195

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Update deploy.yml #195

merged 1 commit into from
Mar 25, 2024

Conversation

sloth-ontabasco
Copy link
Member

Deployment workflows

Description

Automatically deploy new versions of code to the VM
Triggers:

  • push to master updates main bot
  • push to staging temporarily starts beta bot for testing changes

Checklist

  • This PR makes changes to the code
    • I have tested my changes locally and they work as expected.
    • I have ensured that the code is free of linting errors and warnings.
    • I have added any necessary comments or explanations to the code.
    • I have updated the documentation (if applicable) to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

@sloth-ontabasco sloth-ontabasco merged commit ad8d7a2 into public-refactor Mar 25, 2024
4 checks passed
@sloth-ontabasco sloth-ontabasco deleted the staging-deploy branch March 25, 2024 14:01
sloth-ontabasco added a commit that referenced this pull request Mar 28, 2024
* transfer MOST hard coded ids to reference

* whoops, the toml was just an idea

* continue replacing hard coded ids

* continue transfering values to reference

* split global_listeners and BirdTree into separate files

* move files around and enable recursive cog loading

* move files into app dir, deleted antiraid and roleassign

* Fixed hopefully most internal imports to now start with app
Transitioned to using a new error system within utils/errors.py
Transitioned to using a new check system which works for both app commands and text commands

* patreon role reference was not being called as it should

* remove slash command reminder on text command input

* banners update to use buttons and text command error change
banners.py have been updated to use a single view instance for listening to acceptance or denial.
text command error handling didnt prioritize handling InternalErrors but now it does

* move load_extensions into client.setup_hook

* needed to __init__ the constructor for banners view

* Refactor & Remove Unused Files (#137)

* move BirdTree into Birdbot

* remove unused imports and ununsed code

* dont need these files

* convert certain class configs to properties

* convert mod and above to property

* convert config to staticmethod

* added needed imports for birdtree after move

* check_server_moments forgot the ()

* type hint startbot

* more type checking

* readding cls to class method, I have no idea where it went

* Fix/git (#147)

* make interaction respond with edited message

* name now appears in infraction list embed

* forgot to add cls argument to classmethod

* fixes and re-enabled banner uploads to mongo

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>

* Get emoji strings from config (#150)

* fix reference to config file

* inform user on banner approval

* Refactor/topic suggest (#148)

* transition to using views for topic accepting/denial

* check_server_moments forgot the ()

* type hint startbot

* more type checking

* readding cls to class method, I have no idea where it went

* Fix/git (#147)

* make interaction respond with edited message

* name now appears in infraction list embed

* forgot to add cls argument to classmethod

* fixes and re-enabled banner uploads to mongo

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>

* Inform user how to avoid waiting after modal cancel
add await to tree.on_error call

* Get emoji strings from config (#150)

* fix reference to config file

* move to variable emoji reference and uncomment db update

* communicate with user on topic approval

---------

Co-authored-by: KvantOrav <[email protected]>
Co-authored-by: sloth <[email protected]>
Co-authored-by: Siddharth Narayanan <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>

* Refactor/intro (#156)

* staff intro with modals, wip

* some fixes for intros

* intro changes

* reordered the intro logic

* IntroModals, now with more methods

* changes to intro: close modal before sending messages, other improvements

* type hinting, cleanup and also black (oops)

* asyncio lock for reordering intros

* intro permissions, removed unnecessary lines from config.json

* changed intro reorder logic

* self.kgs_guild on init, revert if this is wrong

* intro async lock

* Revert "self.kgs_guild on init, revert if this is wrong"

This reverts commit 5af38b8.

* changes to intro commands

* of course i forgot to change permissions

* fix with intro role color and kurz maintenance role

---------

Co-authored-by: arcinfini <[email protected]>

* giveaway bias in config.py

* Meta/workflows (#154)

* make interaction respond with edited message

* name now appears in infraction list embed

* forgot to add cls argument to classmethod

* fixes and re-enabled banner uploads to mongo

* staff intro with modals, wip

* some fixes for intros

* intro changes

* reordered the intro logic

* IntroModals, now with more methods

* changes to intro: close modal before sending messages, other improvements

* type hinting, cleanup and also black (oops)

* asyncio lock for reordering intros

* linting workflows

* Update lint.yml

* black reformat

* Update lint.yml

* Update lint.yml

* yml is annoying

* install requirements at lint

* sort inputs

* formatting

* issue template

* format

* PR template

* contributor guide and codeowners

* Update CODEOWNERS

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>
Co-authored-by: KvantOrav <[email protected]>
Co-authored-by: arcinfini <[email protected]>

* Type Checking  (#158)

* make interaction respond with edited message

* name now appears in infraction list embed

* forgot to add cls argument to classmethod

* fixes and re-enabled banner uploads to mongo

* staff intro with modals, wip

* some fixes for intros

* intro changes

* reordered the intro logic

* IntroModals, now with more methods

* changes to intro: close modal before sending messages, other improvements

* type hinting, cleanup and also black (oops)

* asyncio lock for reordering intros

* Get latest changes from public-refactor (#153)

* readding cls to class method, I have no idea where it went

* Fix/git (#147)

* make interaction respond with edited message

* name now appears in infraction list embed

* forgot to add cls argument to classmethod

* fixes and re-enabled banner uploads to mongo

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>

* Get emoji strings from config (#150)

* fix reference to config file

* inform user on banner approval

* Refactor/topic suggest (#148)

* transition to using views for topic accepting/denial

* check_server_moments forgot the ()

* type hint startbot

* more type checking

* readding cls to class method, I have no idea where it went

* Fix/git (#147)

* make interaction respond with edited message

* name now appears in infraction list embed

* forgot to add cls argument to classmethod

* fixes and re-enabled banner uploads to mongo

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>

* Inform user how to avoid waiting after modal cancel
add await to tree.on_error call

* Get emoji strings from config (#150)

* fix reference to config file

* move to variable emoji reference and uncomment db update

* communicate with user on topic approval

---------

Co-authored-by: KvantOrav <[email protected]>
Co-authored-by: sloth <[email protected]>
Co-authored-by: Siddharth Narayanan <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: arcinfini <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>
Co-authored-by: KvantOrav <[email protected]>
Co-authored-by: arcinfini <[email protected]>

* linting workflows

* Update lint.yml

* black reformat

* Update lint.yml

* Update lint.yml

* yml is annoying

* install requirements at lint

* sort inputs

* formatting

* issue template

* format

* PR template

* contributor guide and codeowners

* delete quiz cog

* update CODEOWNERS

* move meta files around

* update toml and workflow

* type hinting

* add pyright action

* update workflow file

* fix actions;

* conflicts

* delete quiz cog

* fix actions yaml

* Update requirements.txt

* Update banner.py

* fix conflicts (#159)

* fix hopefully?

* formatting

* typing.Union gone

* BirdBot type hint

* helpful functions for type hinting in BirdBot class

* User and Member union

* fixed

* removed unnecessary fetch_channel

* unnecessary member fetch removed

* handle message NotFound

* small fixes

* small rewrite, should actually rewrite it though

* More type hinting and get reference channels through the new function

* more type checking, black format

* added pyright requirement

* ran isort and pyright

* Use reusable workflow from .github repo

* Update lint.yml

* pls work

* Update lint.yml

* Update lint.yml

* Some improvements to type checking

* forgot isort

* Enhancements/type hinting+ (#160)

* typing.Union gone

* BirdBot type hint

* helpful functions for type hinting in BirdBot class

* User and Member union

* fixed

* removed unnecessary fetch_channel

* unnecessary member fetch removed

* handle message NotFound

* small fixes

* small rewrite, should actually rewrite it though

* More type hinting and get reference channels through the new function

* more type checking, black format

* added pyright requirement

* ran isort and pyright

* Some improvements to type checking

* forgot isort

* upgrade py version in toml

* upgrade discord version

* remove translate cmd

* type hint patreon.py

* format

* better impl for banner rotation

---------

Co-authored-by: Siddharth Narayanan <[email protected]>
Co-authored-by: sloth <[email protected]>

* formatting

* remove new member webhook

* format

* delete unused deployment files

* remove unused templates infavor of org level templates

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>
Co-authored-by: KvantOrav <[email protected]>
Co-authored-by: arcinfini <[email protected]>
Co-authored-by: arcinfini <[email protected]>

* temp fix (#165)

* temp fix

* fixed

* add mov to filetype

* update channel refs for server rework

* remove server moments and mod alert logic

* add enhanced role color selection

* isort color_select

* giveaway fix hopefully

* simplified _get_channel()

* fixed giveaway and moved the giveaway task to on_ready

* back to cog_load

* Server rework (#167)

* update channel refs for server rework

* remove server moments and mod alert logic

* add enhanced role color selection

* isort color_select

* giveaway fix hopefully

* simplified _get_channel()

* fixed giveaway and moved the giveaway task to on_ready

* back to cog_load

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: KvantOrav <[email protected]>

* Fix/post server rework (#171)

* fix issue where those who didnt have access to color could still have it

* remove the verified role from code

* black formatting

* fix banner rotation

* update banner cycler

* fix typos

* remove print statements

* add perch to automod

* add perch to config

* fix + type hinting

* topix fix 2

* Bug Fix: Infraction embed field exceeding max length of 1024

Splitted array into multiple fields if string length exceeds 1000 characters.

* Genericiterator (#183)

* generic cycler for banner and topic

* update cycle list without changing order

* change the dequeueueue variable name so the tests dont fail

* quick black formatting

* an implementation for syncing the iterator list with bot list

* banner message ids are stored and images fetched from messages

* -typo seriously why is it so many ue

* Cycle update_list function should be unnecessary

* gif support + fixes

* fix banner add

* filename_from_url cleanup

* iterator queue moved into init

* Banner rotation error logging

* fix topics_db variable name mismatch

* queue has to be outside of init for this to work

* more and less type hinting

* changed logging

* added more comments

* add pre-commit functionality check (#190)

* Inclusion of GNU License (#186)

* license creation and preamble in source files

* Add reusable license check

* Update lint.yml

---------

Co-authored-by: Siddharth Narayanan <[email protected]>

* Docs/public refactor (#193)

* Some doc formatting.

* MOAR DOCS

* doc grammar and clarification

---------

Co-authored-by: KvantOrav <[email protected]>
Co-authored-by: arcinfini <[email protected]>

* rebase

* Update deploy.yml (#195)

* delete infraction log to mod_actions (#196)

* Update README (#197)

* Update README

* Added isort in README.md

* Bumping dependencies (#198)

* Bumping dependencies and removed unused deps

* Updated black formatted misc

---------

Co-authored-by: UtkarshPatel <[email protected]>

---------

Co-authored-by: arcinfini <[email protected]>
Co-authored-by: arcinfini <[email protected]>
Co-authored-by: KvantOrav <[email protected]>
Co-authored-by: UtkarshPatel <[email protected]>
Co-authored-by: arcinfini <[email protected]>
Co-authored-by: Utkarsh-Patel-13 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant