Getting started#

This page contains a guide to getting started with the shiller.

Minimal example#

This is a minimal example of how to use the shiller.

Note

The example shows you how to shill “Hello World” every 5 seconds to a manually defined list of servers, however this is not what framework is limited to (see Examples).

To start shilling you need to:

  1. Import the library with import daf

  2. Define a server list

  3. Start the shilling with run function.

For help with the GUILD, TextMESSAGE object and see Programming Reference.

from datetime import timedelta


# Define a server list
servers = [
    daf.GUILD(
        snowflake=123456789012345678, # The snowflake id of the guild (This can be obtained by enabling developer mode and then right clicking on the guild's icon)
        messages=[
            daf.TextMESSAGE(None, timedelta(seconds=5), "Hello world!", [123456789012345678], "send", True) # start_period, end_period, data, channels, mode, start_now
        ],
        logging=True # Generate logs for each sent message
    )
]

daf.run(
    token="DNASNDANDASKJNDAKSJDNASKJDNASKJNSDSAKDNAKLSNDSKAJDN", # The authorization token
    server_list=servers # The server list
)

Snowflake ID#

To get the snowflake id you need to first enable Developer Mode. Then just right click on any guild or server and click Copy ID to get the snowflake ID.

Authorization token#

The authorization token is a token that is needed to communicate thru the Discord API.

Bot accounts#

  1. Visit the Developer Portal

  2. Select your application

  3. Click on the “Bot” tab

  4. Click “Copy token” - if only “reset” exists, click on “reset” and then “Copy token”

User accounts#

Follow instructions