Command Line
New Project
Create a new project in the provided directory.
kogno new your_project_nameCreate table
Creates the database tables needed for the framework.
This command must be executed after configuring the database in config/database.yml.
kogno installProcesses
Kogno runs a total of 3 processes, which can be started all together or separately:
http
Web server that receives the events and messages from the configured platforms, in addition to the requests in the web/ folder.
sequences
Process that executes the queue from the sequences.
scheduled_messages
Process that executes the scheduled messages queue.
Manage All Together
Start all in Background
kogno startKogno 1.0.0 server starting in development
Http: starting daemon..
Sequence: starting daemon..
Scheduled Messages: starting daemon..Other options are: kogno stop, kogno restart and kogno status
HTTP Server
Run in Background
kogno http startOther options are: kogno http stop, kogno http restart and kogno http status
Run in Foreground
kogno http fgSequences
Run in Background
kogno sequences startOther options are: kogno sequences stop, kogno sequences restart and kogno sequences status
Run in Foreground
kogno sequences fgScheduled Messages Daemon
Run in Background
kogno scheduled_messages startOther options are: kogno scheduled_messages stop, kogno scheduled_messages restart and kogno scheduled_messages status.
Run in Foreground
kogno scheduled_messages fgConsole
The console command starts the console that lets you interact with your Kogno application from the command line.
kogno consoleYou can also use the alias "c" to load the console: kogno c.
Usage example
kogno c
Loading development environment (Kogno 1.0.1)
2.7.0 :001 > user = User.first
=> #<User id: 1, psid: "600....>
2.7.0 :002 > puts user.first_name
Martín
=> nil Runner
runner runs Ruby code in terminal.
kogno runner "some ruby code"Example
kogno runner "puts User.first.first_name"
User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1
MartínMessenger
Persistent Menu
Activates the persistent menu in Messenger Platform.
kogno messenger menu onTo Remove Persistent Menu
kogno messenger menu offGet Started Button
Activates and set the get started button payload of Messenger.
kogno messenger get_started onTo Deactivate
kogno get_started offSetting the Greeting Text
Activates greeting text on the welcome screen on Messenger.
kogno messenger greeting onTo Deactivate
kogno messenger greeting offWhitelisted Domains
Update whitelisted domains in Messenger Platform.
kogno messenger update_whitelisted_domainsIce Breakers
Activates Messenger Platform ice breakers.
kogno messenger ice_breakers onTo Deactivate
kogno messenger ice_breakers offTelegram
Webhook
Set and activate a url and receive incoming updates via a webhook.
kogno telegram webhook onTo Stop Receiving Webhooks
kogno telegram webhook offCommands
Set and activate commands for every command scope available in Telegram.
Set/Update all Scopes
kogno telegram set_commands allAvailable Scopes
default, all_private_chats, all_group_chats, all_chat_administrators and all
To Deactivate Commands
kogno telegram delete_commands allLast updated
Was this helpful?