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

Make users and channels aware of bot self object #11

Open
1 of 4 tasks
RyanSquared opened this issue Feb 7, 2020 · 2 comments
Open
1 of 4 tasks

Make users and channels aware of bot self object #11

RyanSquared opened this issue Feb 7, 2020 · 2 comments

Comments

@RyanSquared
Copy link
Member

System:

  • Internal
  • Bot Plugin
  • Bot Command
  • Async Subprocess

Description:

Users and channels should have a @_server item so it's possible to, further down the line, add functions that require sending data to the server.

@RyanSquared
Copy link
Member Author

Commit c4524f8 adds bot context to User and Channel classes, need to rewrite all data handlers into generic handlers and instead transition all current non-data handlers to hooks that can then take models instead of raw inputs

@RyanSquared
Copy link
Member Author

This means that the only method that should have add_handler would probably lie in data.moon and everything else will eventually use hooks.

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

No branches or pull requests

1 participant