Public/Invoke-HelloWorld.ps1

function Invoke-HelloWorld {
    <#
    .SYNOPSIS
        Says hello
    .EXAMPLE
        !hi
    #>

    [PoshBot.BotCommand(
        CommandName = 'hello',
        Aliases = ('hi', 'helloworld')
    )]
    [cmdletbinding()]
    param()

    New-PoshBotTextResponse -Text 'Hi from PoshBot!'
}