Framework control (core)

The following section shows how DAF’s core can be started / stopped. The first thing you need is the library installed, see Installation.

The framework can be started using daf.core.run() function and stopped with the daf.core.shutdown() function. It can also be stopped by a SIGINT signal, which can be signaled using CTRL+C. For full list of parameters refer to daf.core.run()’s description.

import daf
daf.run()

The above code is somewhat useless as nothing was configured. On the next page, we will take a look on how to define our accounts, guilds (servers) and messages.