How to host BFYBOT - BFY-PDCT/BFYBOT GitHub Wiki

KR

BFY봇은 스스로 운영하기 쉽도록 제작된 봇입니다. 아래 단계를 따라하면 쉽게 BFY봇을 운영해볼 수 있습니다.

윈도우

1.파이썬을 설치하고, 환경 변수 PATH를 추가해주세요. (파이썬 3.9는 충돌이 발생하므로 되도록 파이썬 3.8을 설치해주세요.) (관련 정보는 인터넷에 많으니 여기선 생략하겠습니다.)

2.여기에서 최신 버전의 소스 코드를 원하는 폴더에 다운로드를 받고, 압축을 풀어주세요.

3.(압축을 푼 경로)\bot\cmds\config.py 파일을 텍스트 에디터 등으로 열어 Owner Setting을 편집합니다. 여기를 참고해주세요.

4.Windows+X를 눌러 Windows Powershell을 실행해주세요.

5.py -3 -m pip install -r (압축을 푼 경로)\requirements.txt를 입력해주세요. (만약 C:\hello에 압축을 풀었다면 py -3 -m pip install -r C:\hello\requirements.txt와 같이 입력하면 됩니다.)

6.py -3 (압축을 푼 경로)\bot\bot.py를 입력하면 실행됩니다.

리눅스

*봇이 계속 실행되게 하려면 tmux 등을 사용하시는 것을 추천드립니다.

1.파이썬을 설치해주세요. (파이썬 3.9는 충돌이 발생하므로 되도록 파이썬 3.8을 설치해주세요.) (관련 정보는 인터넷에 많으니 여기선 생략하겠습니다.)

2.여기에서 최신 버전의 소스 코드를 원하는 폴더에 다운로드를 받고, 압축을 풀어주세요. wget (파일링크)를 사용하면 다운로드가 가능합니다.

3.(압축을 푼 경로)/bot/cmds/config.py 파일을 텍스트 에디터 등으로 열어 Owner Setting을 편집합니다. 여기를 참고해주세요.

4.(sudo) pip install -r (압축을 푼 경로)/requirements.txt를 입력해주세요. (만약 /usr/hello/hi에 압축을 풀었다면 (sudo) pip install -r /usr/hello/hi/requirements.txt와 같이 입력하면 됩니다.)

5.(sudo) python3 (압축을 푼 경로)/bot/bot.py를 입력하면 실행됩니다.

EN

BFY bot is a bot designed to be easy to operate by itself. You can easily operate BFYbot by following the steps below.

window

  1. Install Python and add the environment variable PATH. (Python 3.9 crashes, so please install Python 3.8 as much as possible.) (There is a lot of related information on the Internet, so that I will skip it here.)

  2. Download the latest version of the source code from here to a folder of your choice and extract it.

  3. Open the (unpacked path)\bot\cmds\config.py file with a text editor, etc., and edit the Owner Setting. Please refer to here.

  4. Run Windows Powershell by pressing Windows+X.

  5. Enter py -3 -m pip install -r (unpacked path)\requirements.txt. (If you unzipped it to C:\hello, you could enter py -3 -m pip install -r C:\hello\requirements.txt.)

  6. Enter py -3 (unpacked path)\bot\bot.py to run.

Linux

*It is recommended to use tmux, etc., to keep the bot running.

  1. Install Python. (Python 3.9 crashes, so please install Python 3.8 as much as possible.) (There is a lot of related information on the Internet, so that I will skip it here.)

  2. Download the latest version of the source code from here to a folder of your choice and extract it. If you use wget (file link), you can download it.

  3. Open the (unpacked path)/bot/cmds/config.py file with a text editor, etc., and edit the Owner Setting. Please refer to here.

  4. Enter (sudo) pip install -r (unpacked path)/requirements.txt. (If you unzipped it to /usr/hello/hi, you can enter (sudo) pip install -r /usr/hello/hi/requirements.txt.)

  5. Enter (sudo) python3 (unpacked path)/bot/bot.py to run.