Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 850 Bytes

File metadata and controls

43 lines (34 loc) · 850 Bytes

BusTrackerDiscordBot

Taichung bus tracker

setting

how to 開始你的機器人

nextcord

install nextcord

# Linux/macOS
python3 -m pip install -U nextcord

# Windows
py -3 -m pip install -U nextcord

request

pip install requests

dotenv

幫助你更安全的處存token

install dotenv

pip install python-dotenv

add .env file

add your discord bot token and tdx api key

#example
TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TDX_ClientId=XXXXX-XXXXXXXX-XXXX-XXXX
TDX_ClientSecret=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

api key