Python script#

Contents

Linux

Linux#

Prerequisites:#

Setup:#

  1. Clone the repository

    git clone https://github.com/wupasscat/continent-bot.git
    cd continent-bot
    
  2. Install dependencies

    pip install -r requirements.txt
    
  3. Create .env file

    nano .env
    

    Your file should look like this:

    # .env
    DISCORD_TOKEN=your discord bot token
    API_KEY=s:example
    LOG_LEVEL=INFO
    
    • DISCORD_TOKEN found in the “Bot” section of your Discord application

    • API_KEY Daybreak Games Census API service ID

    Warning

    You can use the default value s:example for testing but you will be limited to 10 requests per minute.
    It is recommended that you apply for a service ID here

  4. Run script

    python3 -m bot.py