Created
June 1, 2018 17:37
-
-
Save Baa14453/f23808415a581d08b6cfa7fb3ec45aa4 to your computer and use it in GitHub Desktop.
Sends messages from Rocketchat to Discord.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Script { | |
prepare_outgoing_request({ request }) { | |
request.data = { | |
content: request.data.text, | |
username: request.data.user_name, | |
avatar_url: `https://<RocketchatServerUrlGoesHere/avatar/${request.data.user_name}` | |
} | |
return request; | |
} | |
process_outgoing_response({ request, response }) { | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment