Facebook
From Social Hummingbird, 3 Years ago, written in Python.
Embed
Download Paste or View Raw
Hits: 108
  1. # set the following variable to True to declare that you have modified the config
  2. i_have_read_config = False
  3.  
  4. # replace with the private token of your bot, do not share this with anyone
  5. bot_token = "###########################################################"
  6.  
  7. # minimum amount of seconds between check
  8. # e.g. compare amount of messages sent in channel within past 30 seconds
  9. check_frequency = 30
  10.  
  11. # determine amount of messages per check_frequency required for each slowmode band
  12. # slowmode_delay must be an integer ranging from 0-21600 seconds
  13. time_configs = {
  14.     # message_frequency: slowmode_delay
  15.     0: 0,
  16.     30: 1,
  17.     60: 3,
  18.     90: 5,
  19.     120: 10
  20. }
  21.  
  22. # choose whether channels must be whitelisted for auto-slowmode to run there
  23. channel_whitelisting_enabled = True
  24.  
  25. # ids of channels that auto slowmode will run in
  26. # ignored if channel whitelisting is disabled
  27. whitelisted_channels = [
  28.     00000000000000000,
  29.     00000000000000000
  30. ]
  31.  
  32. # blacklisted channels ids
  33. # if whitelisting is disabled, the bot will ignore channels with these ids
  34. blacklisted_channels = [
  35.     00000000000000000,
  36.     00000000000000000
  37. ]

Replies to config.py rss

Title Name Language When
Re: config.py Trivial Marten python 3 Years ago.