Skip to content

Conversation

rjpadilla
Copy link
Member

New feature:

  • webhook
  • send

webhook pulls info from the Discord API.
send sends a message to your selected discord channel.

Can add multiple channels.

fi
;;
*)
log_help_and_exit1 "Error: This command does not exist" message
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error message could be updated to explicitly list all the Discord commands that exist.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still in the rough draft stages >.<

echo "you have successfully authorized and your access token is $access_token "
fi
;;
webhook)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could echo error message if webhook and/or apitoken isn't provided:

e.g.

Error: Please add a webhook URL.


echo "Your webhook url is $webhook_url"
;;
send)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should account for empty messages. Empty messages generate this error:

line 542: {"message":: command not found
ERROR: message not delivered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants