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

Add dummy mode to debug #126

Merged
merged 1 commit into from
Feb 1, 2021
Merged

Add dummy mode to debug #126

merged 1 commit into from
Feb 1, 2021

Conversation

KevinNovak
Copy link
Collaborator

No description provided.

@scottbucher scottbucher merged commit e21d865 into updates Feb 1, 2021
@scottbucher scottbucher deleted the dev/dummy-mode branch February 1, 2021 05:05
scottbucher added a commit that referenced this pull request Jul 11, 2021
* Updated commands to use the lang utils

* forgot to save oops

* Added database system for member anniversary roles

* Added model for anniversary roles

* Updated service to use correct model

* Use correct config value

* Added config values for member Anniversary roles

* Updated procedure to take in a year

* Updated parse utils to catch invalid input

* Continued work on member anniversary role system

* Add lang embed for user not giving a year

* Add dummy mode to debug (#126)

* Create "dev" and "info" commands (#125)

* Create "dev" and "info" commands

* Dev command shows stats, memory sizes per server

* Show bot ID in dev command

* Show bot ID in dev command

* Sync lang functionality from template (#127)

* Update lang functionality from template

* Make prefix a REF

* Field orders

* Remove unused "limiter" package (#128)

* Fix imports (#129)

* Misc small updates from template (#130)

* Rename "Read Messages" to "View Channel"

* Array of error codes, shorten comments

* Combine if statement conditions, add comment

* Update template packages

* Disable message cache completely

* Cleanup launch.json

* Update MessageUtils from template

* Add log for when all shards have been spawned

* Update discord links

* Updated and added methods for new setup commands

* Removed message setup

* Updated setup commands

* Updated required setup to use lang system

* Updated logic for inline input in bday set

* Exit loop as soon as we find a timezone

* Updated trusted setup to use lang system

* Updated anniversary setup to use lang system

* Updated anniversary setup to use Lang system

* Updated clear and add to work well wil user specific messages

* Added values for anniversary utils

* Added utils for the anniversary service

* Started new celebration job

* Updated methods for birthday utils to improve accuracy

* Indexing

* "READ_MESSAGE_HISTORY" needed with "ADD_REACTIONS" (#131)

* Reactions require READ_MESSAGE_HISTORY

* READ_MESSAGE_HISTORY needed to ADD_REACTIONS

* Add docker, additional utils, template changes, misc (#132)

* Update packages

* Add docker

* Add gitbook.yaml

* Prettier ignore docs

* Update tsconfig

* Fix in order for build to succeed

* Lint fixes

* Require Node.js v15 or newer

* Add some missing utils

* Move isLeap() to TimeUtils

* Rename to SqlUtils

* Fix utils import

* Rename methods

* Use MathUtils to sum in shard methods

* Add PartialUtils

* Add @types/remove-markdown

* Better message for startupInProcess

* Log errors on reactions

* Temp

* Merge master into updates (#140)

* Auto-format

* Update to models and start of new models

* Refractored bday utils to celebration utils

* Installed packages

* Added code to get data needed for the celebration job in bulk

* Added method and model to convert the raw guild celebration data into a sorted model

* Simplifiy class

* Updated logic of isBirthday method

* Added models for the planned services

* Added methods to make filters cleaner

* Finish sorting to prepare for message service

* Removed unused Models

* Leap year dates are celebrated on march 1st now

* Refractored methods to calculate birthday times

* Added method to find birthday roles to remove

* Added calculations for role service

* Remove uneeded variables and imports

* Update method

* Added method to get the members year

* Added requireAllTrustedRoles to guildData

* Updated inputs

* Added implementation of the role service

* Use the filtered array

* Improve logic to prevent calculating things before we know we need them

* Added utils to make message service cleaner

* Implemented birthday messages with message service

* Made trusted check generic and use correct number of equals

* Added util to get the server age in years

* Implemented rough code for anniversaries

* Miscellaneous changes

* Call the services at the end of the celebration job

* Update message handler to split different member anniversary messages based on the anniversary year

* Removed old birthday system and added new (with some bad code... oops)

* Update config default for celebration job

* Use correct config values

* Update anniversary roles

* Clarification on global birthdays

* intintialize arrays

* Improve validation

* Generalize and rework message add command

* Improve validation on celebration job

* Updated message add command to work with lang system and fixed numerous bugs

* Improved and simplified message list commands

* Implemented user specific message improvements to list and fixed a bug with page jumping

* Updated reaction handler for list emote movement

* Removed separate command for user message list

* Continue implementing lang system throughout the project

* replace placeholder with user @ in user specific messages

* Split up settings and implemented lang system

* Implemented Lang system

* Added methods for differentiating before types and extracting settings

* Implemented lang system

* Display user mention for user specific messages in confirmation messages

* prevent out of bounds exception when checking for guild member

* Use lang system to give multi-lingual support to types

* Continued conversion to the lang system

* Add advanced settings embed

* Continued implementing the lang system

* Allow user with the  manage server permission flag to manage the bot

* Change labels to be more specific

* Updated subscription command to use lang system

* Subscription events now use the lang system

* Added more lang implementation, refractored some utils, and removed comma one lists of two users

* Removed and replaced unneeded method

* Various bug fixes

* Remove and replace unneeded util and converted to lang system

* Updated to lang system

* Get month names from lang

* Remove ununused variable

* Use lang system for canceled action message

* check birthday using lang

* Add and update doc links

* Get and value from lang file

* Added vote command

* Update help system and move it to the lang system

* Converted stats command to lang system even though I said I wasn't going to

* todo comments

* Only use one rusted role if guild doesn't have premim

* Added util method to get a list of valid trusted roles and fixed a bug where getting the mention setting didn't account for the message type

* Add methods to check if all roles in a list can be given a method to resolve all member anniversary roles

* implemented previously mentioned methods

* Use new utils

* Log for an invalid message type

* Reworked test command

* Added result messages for tests

* Re-Implemented test command

* A lot of auto formatting

* Use correct name format in test commands

* Added more permissions to default creation of channels

* Fixed wrong placeholder for years and fix bug where user doesn't have a nickname for name format to use

* Fixed various bugs with bday test

* Formatting

* replace prefix with reference

* Replace bot name with reference

* Convert to the lang system

* Allow for translation of subcommand names and most options

* get action type from lang file

* Added update command (probably too large)

* get from reference

* Added anniversaries to next command

* Heavily improved logic of calculating next member anniversary

* Switch to logic which is consistant with the  member anniversary calculations

* Various bug fixes and improvments

* Added command for listing member anniversaries

* Added command to view member anniversaries

* Added config option for the size of the member anniversary list

* Various Bug Fixes and improvements

* Implemented member anniversary list into paging system

* Added member anniversary role claim command

* Added sleep time after giving/taking role

* Added permission checking at the sub command level

* Added claim command

* Added clearer documentation

* Moved the test command to the lang system

* Default large bot sharding to false

* Ensure a role is found before accessing its guild id

* Remove wrong arg count check

* Update lang

* Update to lang file

* Prevent api calls where possible

* Formatting and update names

* Updated lang file

* Fix name of values being passed to lang system

* Formatting

* Declare an empty array to prevent undefined errors

* Fixed bugs with adding anniversary roles

* Fixed various bugs with claiming anniversary roles

* Update packages

* Updated Logging

* Fixed various bugs & Formatting

* Fixed bug causing placeholders to no be replaced

* Lint and format fixes (#142)

* Lint fixes

* Format fixes

* Remove unused "limiter" package (#143)

* Removed unneeded awaits from getting the mention string

* Update packages

* Updated packages

* When listing two things include and

* Simplified replacing placeholder and fixed some bugs

* Improve replacing placeholders for lang options or user id when displaying

* moment diff already returns a whole number

* Use name format in bday next command

* Added option to clear server's default timezone

* Fixed bugs

* Fix bug with applying timezone

* Fix lang

* Added anniversary help and misc

* Fixed setup args

* Fixed bug with moment timezone validation

* Require server timezone for anniversary system

* Grammar is hard

* Fix bug with timezone check

* Improve timezone validation

* Updated lang system and simplified update command

* Removed thumbnail to fit more text in horizontally

* Added setting value of number of trusted roles

* Possibly fix bug for celebrating a member's 0th anniversary

* Add config value for delays

* Added delays to send messages

* Apply config delays to services

* Apply delay to the mar claim command

* Remove outdated scripts

* Small changes to README

* Update README.md

* Update packages

* Update footers to include icons and add authors

* Fix issue with mentioning everyone

* Simplified logic

* Formatting

* Updated bug where it was using the wrong channel and changed the member aninversary message to only send the mention setting once

* Added support for getting all subscriptions

* Fix references

* All guilds are premium if payments are disabled

* Added back missing lang options

* Give icon placeholder value

* Fixed doc link

* Fixed lang reference

* Clarify the deafult timezone prompt

* Improved clarity when setting your birthday

* Fix emote references

* Improved logic for timezone setting

* Im prove logic and lang when suggesting timezones

* Fix logic in setting timezone.... again

* oops i did it again!

* Simply user prompts for setting a birthday

* Updated logic for replying and sending messages

* Expired prompts now use the reply feature and generic message

* Split message util methods for delay

* Try and combine member anniversary messages when possible to prevent sending mass amounts of messages

* Fix logic for calculating member years

* Updated logic for calculating messages

* Updated documentation links

* Update documentation links in README

* Fixed returning the mention string

* Fix logic for timezone setting

* Include type in test

* Fix logic for validating the mention string

* Update anniversary role arguments

* Bug fixes

* Lang updates

* Remove unneeded year check

* Fix years in bday test

* Fix lang reference

* Remove deprecated useEmbed reference

* Update packages

Co-authored-by: Kevin Novak <kevinmichaelnovak@gmail.com>
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.

2 participants