Important
|
already legacy code q-: New Project at dotBot@gitlab |
I’m lazy so I want to let someone else do task for me
My Bot can:
-
say hello to strangers, but only follow my orders
-
upload files to an ftp server for me
you’ll need to configer to Environment Variables
-
Token of your Discord Bot (https://discord.com/developers/applications)
-
List of your "Admins"
-
FTP-Credentials
Copy template and fill in your stuff
pip install -r requirements.txt
cp runTemplate.sh run.sh
[...]
./run.sh
or export on the fly
export DISCORD_TOKEN={yourBotsToken}
export MASTER_ACCOUNTS="{yourDicordAccouId},{anotherAdminsAccountId}"
export VB_URL_1={publicUrl}
export VB_FTP_1_HOST={ftpHost}
export VB_FTP_1_USER={ftpUser}
export VB_FTP_1_PW={ftpUserPW}
python src/main.py
copy .envTemplate
to .env
and fill with your Information
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Discord Bot",
"type": "python",
"request": "launch",
"program": "src/main.py",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.env",
"justMyCode": true
}
]
}
Inspirations