Skip to content

Releases: sntran/shell2discord

v0.3.0

01 Jun 03:45
Compare
Choose a tag to compare

Added

  • Command description (#4)
  • Information about shell command

Fixed

  • Default value can be anything, not just words.

v0.2.0

31 May 22:57
Compare
Choose a tag to compare

Added

  • Passthrough environment variables to shell command through --export-vars (#1).
  • Converts long shell output to text file and follow up to initial response (#2).
  • Option params with syntax ${VARIABLE-defaultValue} (#3)

MVP

29 May 17:10
2c30431
Compare
Choose a tag to compare
MVP

Added

  • Initializes a Discord bot
  • Uses token from --token flag or DISCORD_TOKEN environment variable
  • Takes pairs of /slash_command_name 'shell_command' and converts to Discord's slash commands.
  • Registers commands globally or in a specific GUILD through --guild flag or DISCORD_GUILD environment variable.
  • Commands are removed from Discord when program exists.
  • In shell command, use ${variable_name} to specify slash command's parameters.
  • Only distinct variables are used, by the order they are defined in shell command.
  • Restrict bot access by channels through --channels flag or DISCORD_CHANNELS environment variable.