Skip to content

Latest commit

 

History

History
81 lines (57 loc) · 1.61 KB

README.adoc

File metadata and controls

81 lines (57 loc) · 1.61 KB

vikbot a Discord Bot

Important
already legacy code q-: New Project at dotBot@gitlab

I’m lazy so I want to let someone else do task for me

es lebt

My Bot can:

  • say hello to strangers, but only follow my orders

  • upload files to an ftp server for me

run

you’ll need to configer to Environment Variables

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

Debug

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
        }
    ]
}