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

a quickstart guide on bot development #45

Merged
merged 8 commits into from
Dec 13, 2022
Merged

a quickstart guide on bot development #45

merged 8 commits into from
Dec 13, 2022

Conversation

missytake
Copy link
Contributor

related: #44

quickstart.md Outdated Show resolved Hide resolved
quickstart.md Outdated Show resolved Hide resolved
quickstart.md Outdated
Comment on lines 51 to 58
[`account.run_account()`](https://py.delta.chat/api.html#deltachat.account.Account.run_account)
will run the account, and configure it if necessary (e.g. look up the mail
servers of your provider).

[`account.wait_shutdown()`](https://py.delta.chat/api.html#deltachat.account.Account.wait_shutdown)
waits until the account quits running for some reason. This is necessary here
so the script doesn't quit directly, but stays open as long as the bot is
running. We want the bot to reply to our messages forever, after all.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe move the text to comments and just have a list of links after it? If we even need the links to the code reference?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are now not directly after each other, but are explaining a code snippet directly - I think it makes sense now as it is.

@missytake missytake changed the title WIP: started to write a quick guide on bot development a quickstart guide on bot development Nov 26, 2022
@missytake
Copy link
Contributor Author

The page can be previewed here: https://staging.bots.delta.chat/45/quickstart.html

quickstart.md Outdated Show resolved Hide resolved
@link2xt
Copy link

link2xt commented Dec 3, 2022

@missytake This does not have to wait for deltachat/deltachat-core-rust#3734. Except for the need to know about async, I like the approach in deltachat/deltachat-core-rust#3734 better because there is a single loop that processes all the events and messages. But it is not applicable to CFFI python bindings because they already implement their own event loop (_inner_run), and the only thing you can do is hooking into it.

@missytake missytake merged commit 417b6a3 into master Dec 13, 2022
@missytake missytake deleted the quickstart-guide branch December 13, 2022 14:27
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.

3 participants