|
@@ -67,7 +67,7 @@ async main. |
|
|
|
|
|
|
|
|
[!code-csharp[Async Context](samples/intro/async-context.cs)] |
|
|
[!code-csharp[Async Context](samples/intro/async-context.cs)] |
|
|
|
|
|
|
|
|
As a result of this, your program will now start, and immidiately |
|
|
|
|
|
|
|
|
As a result of this, your program will now start, and immediately |
|
|
jump into an async context. This will allow us later on to create a |
|
|
jump into an async context. This will allow us later on to create a |
|
|
connection to Discord, without needing to worry about setting up the |
|
|
connection to Discord, without needing to worry about setting up the |
|
|
correct async implementation. |
|
|
correct async implementation. |
|
@@ -221,4 +221,4 @@ should be to separate the program (initialization and command handler), |
|
|
the modules (handle commands), and the services (persistent storage, |
|
|
the modules (handle commands), and the services (persistent storage, |
|
|
pure functions, data manipulation). |
|
|
pure functions, data manipulation). |
|
|
|
|
|
|
|
|
**todo:** diagram of bot structure |
|
|
|
|
|
|
|
|
**todo:** diagram of bot structure |