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:
Import the library with
import daf
Define a server list
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.