Tag: プログラミング

  • chatGPTをDiscordサーバーに追加する

    参考記事 https://note.com/sangmin/n/nd6c3d7dd59cb 細かな手順はgithubにも英語ですが記載されていますね。 GitHub – openai/gpt-discord-bot: Example Discord bot written in Python that uses the completions API to have conversations with the text-davinci-003 model, and the moderations API to filter the messages. https://github.com/openai/gpt-discord-bot#setup Discord Botの作成 まずDiscordのdeveloper portalにログインしてBotを作成します。 Discord 以下のようにBotの特権設定をONにしないと招待URLが生成できなかったので注意 ソースコードのクローン 続いてbot用のソースコードをgithubから取得します。 .envの作成 openAIのAPIキーはOpenAI https://openai.com/でsign upした後に生成する必要があります。 はまった点