forked from botlabs-gg/yagpdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial work on new state system * state: intial version of new state system and basic embedded tracker * progress * more progress * update go.mod * add CacheSet replacement for GuildState.Userstate This is a new package that provides a pretty simple cache system based on "slots", each cached type has it's own "slot" and managed all the cached values inside it on its own values inside a "slot" are keyed by interface{} so the user can use whatever key type they want but the most common one will probably be int64 * more progress moving to the new state and caching sytem * continued work on migrating to the new state and cache system * we compiled now bois * update to latest dcmd and dstate MemberState no longer contains roles and nickname, they're in the nested member object this is to increase support for future discord api versions where presences are less usefull * remove bot.GetMemberJoinedAt as it's not needed I believe discord has fixed the issues where JoinedAt was not available atleast im not able to find any such cases anymore And with the roles and nick fields being moved to the member fields for dstate.MemberState, all calls to bot.GetMember requires the member field to be set to use the cached version. * common: run CacheSet gc loop in goroutine * bot: fix not setting proper state in setupState * automodv2: fix panic in CheckTriggers * tickets: fix build * premium: fix deadlocking state * update to latest dstate * enabled shard migration, added state debug commands * update to latest dshardorchestrator, go mod tidy * accidentally included some compiled files * add a couple more executables to gitignore * memberfetcher: add results to state, properly set guildid * bot: run state gc loop * udpate to latest dstate * templates: fixes and tweaks * fix a bunch of warnings * update to latest dcmd * update to latest dcmd * web: fixes for new state system * botrest: use bot.GetMember to fallback to api * commands: simplify a section * templates: use user reference to keep backwards compat * templates: fix referencing looping var * pubsub: change EvictCacheSet to not require a guildID * undelete: fix build
- Loading branch information
1 parent
0355286
commit afe4ff8
Showing
147 changed files
with
2,166 additions
and
2,232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.