Function cog_rust::start

source ·
pub async fn start<T: Cog + 'static>() -> Result<()>
Expand description

Start the server with the given cog.

Errors

This function will return an error if the PORT environment variable is set but cannot be parsed, or if the server fails to start.