Bot::Backbone::Service::ConsoleChat - Chat with an interactive command line
version 0.161950
service console => ( service => 'ConsoleChat', );
This is a handy service for interacting with a bot from the command line. This can be useful for interfering with the state of the bot or working with the bot without going through some other chat server.
This is the internal readline terminal object.
No user serviceable parts.
This is the prompt displayed to the user. It is "> " by default. You may set this during initialization or the bot may modify it as desired.
This is the name of the user at the console. This is set to $ENV{USER} by default.
$ENV{USER}
This is the nickname to give the user at the console. As of now, this is also se to $ENV{USER} be default.
It may be set to gecos or something by default in the future.`
Starts the chat and shows the first prompt.
Whenever the user hits enter, this dispatches, notifies the chat consumers, and puts up the next prompt.
Anything not matching a built-in command will be passed to the bot as a direct message. The built-in commands include:
This causes the bot to shutdown and exit.
Handles most messages typed on the command line.
This sets up the POE::Session that is used to manage the terminal wheel.
Whenever the bot sends a message, it will be displayed if it is a direct message back to the console or if the group name matches the "current_group". All other messages will be muted.
Says good-bye and destroys the terminal object, which will shutdown the session and allow the bot to exit.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2016 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Bot::Backbone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Backbone
CPAN shell
perl -MCPAN -e shell install Bot::Backbone
For more information on module installation, please visit the detailed CPAN module installation guide.