Skip to content

Discord Oauth2의 "Guilds.join" Scope를 활용한 코드입니다.

License

Notifications You must be signed in to change notification settings

samsunghappytree123/discord-oauth2-guilds.join

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-oauth-guilds.join

Discord Oauth2의 "Guilds.join" Scope를 활용한 코드입니다.

공지사항

  • 사용시 스타 한번씩 눌러주시면 감사하겠습니다 :)

사용법

  1. 이 코드를 Clone(git clone https://github.com/samsunghappytree123/discord-oauth2-guilds.join) 또는 Use This Template 혹은 Fork 등으로 다운로드합니다.
  2. Terminal에 python3 -m pip install -r "requirements.txt"를 사용해 필수적으로 설치해야 하는 의존성 모듈을 설치합니다.
  3. .env.example 파일을 참고하여 .env 파일을, config.py.example을 참고하여 config.py를 만들어주세요. (상세한 예시는 여기를 확인해주세요.)
  4. python3 app.py를 사용하여 app.py를 실행해주세요.
  5. ${config.py HOST}/login에 접속하여 인증을 테스트를 하세요.

.env.example과 config.py.example 내용 설명

.env.example

TOKEN=YOUR_TOKEN # 봇의 토큰을 입력해주세요.
OAUTH2_CLIENT_SECRET=YOUR_SECRET_KEY # 봇의 CLIENT_SECRET_KEY를 입력해주세요.

config.py.example

GUILD_ID = 1234567890 # 강제 초대할 서버의 ID를 입력하세요.
CLIENT_ID = 1234567890 # APPLICATION ID (BOT ID)를 입력해주세요.
REDIRECT_URI = 'http://localhost:5000/callback' # OAUTH 로그인 후 이동할 웹사이트의 주소를 입력하세요.
                                                # APPLICATION OAUTH 탭에서 REDIRECT URL을 이 부분에 입력한 주소로 지정하세요!

# -- Sanic 호스트 설정 -- #
HOST = '127.0.0.1' # 127.0.0.1과 같이 수정해주세요.
PORT = 5000 # 포트를 지정해주세요.

About

Discord Oauth2의 "Guilds.join" Scope를 활용한 코드입니다.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published