Skip to content

szimszon/skill-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

opsdroid skill shell

A skill for opsdroid to respond to Please run messages. With this skill you will be able to run shell scripts from a specific folder you can configure. And the standard output and error messages will sent back to the chat.

Requirements

None.

Configuration

You can configure:

  • scriptdir - where the skill will search for shell scripts, default: ~/.opsdroid/modules/opsdroid-modules/skill/shell/script/
  • initialtalkbacktimeout - the timeout in seconds for sending the first stdout lines from the script back to the chat, default: 5
  • talkbacktimeout - the maximum time in seconds the skill will wait until the gathered stdout lines are sent back to the chat, default: 15
  • argumentumseparator - if the script is able to accept argumentums this will be the separator between the args; default: ;

Usage

Place a shell scipt like this:

#!/bin/bash
ls . | grep -v "*.lib"

in the scriptdir and then you can tell opsdroid: Please run ls

opsdroid will run the script ls in the scriptdir and answer with the output of the script.

The output will be like:

Starting the script named ls on 2018-06-17 11:42:54.705303... Please be patient...

ls

The command ls ended with the return code of 0 on 2018-06-17 11:42:54.905555 and was running 0:00:00.205305 seconds long.

About

OpsDroid shell skill

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages