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
-
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.)
-
Download the latest version of the source code from here to a folder of your choice and extract it.
-
Open the (unpacked path)\bot\cmds\config.py file with a text editor, etc., and edit the Owner Setting. Please refer to here.
-
Run Windows Powershell by pressing Windows+X.
-
Enter
py -3 -m pip install -r (unpacked path)\requirements.txt
. (If you unzipped it to C:\hello, you could enterpy -3 -m pip install -r C:\hello\requirements.txt
.) -
Enter
py -3 (unpacked path)\bot\bot.py
to run.
Linux
*It is recommended to use tmux, etc., to keep the bot running.
-
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.)
-
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. -
Open the (unpacked path)/bot/cmds/config.py file with a text editor, etc., and edit the Owner Setting. Please refer to here.
-
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
.) -
Enter
(sudo) python3 (unpacked path)/bot/bot.py
to run.