Skip to content

Extend functionality of poise rewrite#24

Closed
jamesbt365 wants to merge 22 commits intoOpenTabletDriver:masterfrom
jamesbt365:poise-tb-unique-features
Closed

Extend functionality of poise rewrite#24
jamesbt365 wants to merge 22 commits intoOpenTabletDriver:masterfrom
jamesbt365:poise-tb-unique-features

Conversation

@jamesbt365
Copy link
Copy Markdown
Member

@jamesbt365 jamesbt365 commented Dec 1, 2023

depends on #23

Fixes #22
Fixes #21
Fixes #18

based on #23 because its already big enough and I wanted to split things up a little bit.

diff: jamesbt365/TabletBot@poise...jamesbt365:TabletBot:poise-tb-unique-features

Will convert to a RwLock shortly, finish the commands, fix hopefully everything and add migration (tabletbot will panic on read() if issue_prefixes is not present.

Somebody PLEASE look at that regex and see if you can improve it 🥺

- now locking to serenity 0.12
- poise current until it releases a new version
- octocrab has been bumped enough to fix the conflict (any further
  breaks stuff)
- Cleanup some comments
- added pre command hook to announce when commands begin execution
- restored comments for creating and editing snippets
Also moves the event handler into the events directory
@jamesbt365 jamesbt365 force-pushed the poise-tb-unique-features branch from 5b7a1e6 to 0cbffbc Compare December 1, 2023 01:02
@jamesbt365
Copy link
Copy Markdown
Member Author

I've gone ahead and pushed the rwlock change and partial edit embed support.

Some growing pains exist when handling edit embed because i'm editing the embed directly then turning it into a builder as this allows you to actually check what fields are set if you want better error handling.

Also CreateEmbed doesn't allow you to unset things, so I'll rewrite the command eventually to build embeds from scratch using the current details of the embed, this hopefully will mitigate every problem with it.

@jamesbt365
Copy link
Copy Markdown
Member Author

Gone ahead and reworked the command, don't really know how to get around move issues nicely when using map for everything so its a bit scuffed currently, I also don't think the colour logic that infinity originally implemented is optimal I think it can be improved lots.

- Also disables all events in dms, as these aren't needed.
@jamesbt365 jamesbt365 changed the title Add issue token support and cleanup Extend functionality of poise rewrite Dec 1, 2023
@jamesbt365
Copy link
Copy Markdown
Member Author

Merging the contents of this pull request into #23.

@jamesbt365 jamesbt365 closed this Dec 4, 2023
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.

"Hide body" feature Feature Request: Link to other projects than the main project (issue prefix token?) Edit-embed command

1 participant