「Discord bot」の版間の差分
Notion-MW |
Notion-MW |
||
(同じ利用者による、間の1版が非表示) | |||
113行目: | 113行目: | ||
print(f"Failed to create {name} command. Error: {r.text}") | print(f"Failed to create {name} command. Error: {r.text}") | ||
else: | else: | ||
print(f"Successfully created {name} command") | print(f"Successfully created {name} command")</syntaxhighlight> | ||
</syntaxhighlight> | |||
</div></div> | </div></div> | ||
127行目: | 126行目: | ||
[https://www.netlify.com/blog/intro-to-serverless-functions/#traditional-serverless-functions https://www.netlify.com/blog/intro-to-serverless-functions/#traditional-serverless-functions] | [https://www.netlify.com/blog/intro-to-serverless-functions/#traditional-serverless-functions https://www.netlify.com/blog/intro-to-serverless-functions/#traditional-serverless-functions] | ||
以下ではこれの通りCommonJS形式で説明する。ES Modules形式の場合の注意点も↑に書いてある。 | |||
ntl initで全部やってもいいが、loginは別でやったほうがわかりやすいかも | ntl initで全部やってもいいが、loginは別でやったほうがわかりやすいかも | ||
githubへのアクセスを認めなきゃならんのはなんでなのかよくわかってない | <s>githubへのアクセスを認めなきゃならんのはなんでなのかよくわかってない</s> | ||
* [https://docs.netlify.com/cli/get-started/ https://docs.netlify.com/cli/get-started/] ここに For repositories on GitHub, you can also connect your repository manually, if you prefer to give more limited, repository-only access for your repositories on GitHub って書いてあった。てかinitのメニューで確かにそんなん出てたな | * [https://docs.netlify.com/cli/get-started/ https://docs.netlify.com/cli/get-started/] ここに For repositories on GitHub, you can also connect your repository manually, if you prefer to give more limited, repository-only access for your repositories on GitHub って書いてあった。てかinitのメニューで確かにそんなん出てたな |