This is a Discord bot that scrapes posts on a specific DCInside gallery and links new ones to a Discord channel.
These instructions assume a UNIX-like environment (macOS, Linux, etc).
discord.py:pip3 install discorddc_api:pip3 install dc_apifiletype:pip3 install filetype
git clone https://github.com/goonmandu/DCNewPostBot.git
cd DCNewPostBotPermissions in italics may not be necessary, but are untested.
-
General Permissions:
- none
-
Text Permissions:
- Send messages
- Manage messages
- Embed links
- Read message history
-
Voice Permissions:
- none
BOT_TOKEN = "your bot token goes here"python3 bot.py7-1. To start the Python process "detached" from the terminal window (keep it alive even when you close the terminal or ssh session):
nohup python3 bot.py &ps aux | grep -i "python3 bot.py &" # Check PID
kill -2 <The PID from above command>디시인사이드 갤러리에 새로 올라오는 글을 스크레이핑해서 디스코드 채널에 링크해주는 디스코드 봇입니다.
이 가이드는 UNIX 계열의 운영 체제(macOS, Linux 등)를 기반으로 작성되었습니다.
discord.py:pip3 install discorddc_api:pip3 install dc_apifiletype:pip3 install filetype
git clone https://github.com/goonmandu/DCNewPostBot.git
cd DCNewPostBot이탤릭체 된 권한은 필요 없을지도 있지만, 확인되지는 않았습니다.
-
General Permissions:
- 없음
-
Text Permissions:
- Send messages
- Manage messages
- Embed links
- Read message history
-
Voice Permissions:
- 없음
BOT_TOKEN = "복사한 봇 토큰을 여기에 붙여넣기하세요"python3 bot.pynohup python3 bot.py &ps aux | grep -i "python3 bot.py &" # PID 확인
kill -2 <위 명령에서 확인한 PID>