Created
February 24, 2022 11:04
-
-
Save book000/271c716ed34c7ea64a02f55078a82935 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
send_message() { | |
token="" | |
channelId="" | |
curl \ | |
-X POST \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: Bot $token" \ | |
-d "{\"content\": \"$1\"}" \ | |
"https://discord.com/api/channels/$channelId/messages" | |
} | |
send_message "hoge piyo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment