リンク生成とリダイレクト

Discordの配信通知から自動的にTwitterに投稿をするBotを作ってみた【上級者向け】

提供:Willadge

作り方後で書いておきます


以下を参考に登録します

https://qiita.com/neru-dev/items/857cc27fd69411496388

  1. まずTwitterAPIの登録を行う

https://developer.twitter.com/en/portal/products


利用文章はこれ

I want to implement a function that posts in X every time a Discord bot message is posted, so I will use the API. This bot will only be used by me and my friends, and will not be used in any way for profit. However, it will be used as a supplementary tool for distribution


2. その後にデフォルトでジェネレートがかかるので、先にネイティブアプリとして紐付けを行う

HTITwitter.png


3. 登録したあとは、4つのシークレットキーを取得

HTITwitter2.png


4. 作成後にDiscordのチャットIDをコピーして、その値を登録

HTITwitter3.png

5.Botを導入

https://discord.com/oauth2/authorize?client_id=1256526453005094962&permissions=8&integration_type=0&scope=bot

HTITewitter4.png