A Mastodon bot for pinging
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

sample-config.cfg 1.7KB

2 år sedan
1234567891011121314151617181920212223242526272829303132333435363738
  1. [DEFAULT]
  2. # The bot's Mastodon domain. Not the full URL, just the domain name, e.g. elekk.xyz
  3. domain = mastodon.example
  4. # YOUR full username, including the domain but without the initial @.
  5. # This is where error messages get sent.
  6. # e.g. noelle@elekk.xyz
  7. admin = admin@mastodon.example
  8. # You can have multiple bots in the same config file. Have a [bracket] header
  9. # for each of them.
  10. [pingbot]
  11. # The bot's class. Don't change this unless you know what you're doing.
  12. class = pingbot.PingBot
  13. # A secondary bot's domain, if it's different from the default domain.
  14. # If you don't need this you should delete it.
  15. domain =
  16. # The admin's full username, if it's different from the default admin.
  17. # If you don't need this you should delete it.
  18. admin =
  19. # Get client_id, client_secret, and access_token by going to
  20. # Preferences > Development > New Application. You can choose your
  21. # application name; leave "Application website" blank, and leave
  22. # "Redirect URI" alone. You can leave the default permissions alone
  23. # too, or you can change them if you know what you're doing; Pingbot
  24. # needs to be able to READ your notifications and WRITE statuses.
  25. # YOU CANNOT MONITOR AN ACCOUNT YOU DON'T CONTROL. THIS IS DELIBERATE
  26. # AND WILL NOT BE CHANGED.
  27. client_id =
  28. client_secret =
  29. access_token =
  30. # The full name of the account you're monitoring, WITH the initial @.
  31. # This is only for record-keeping and to make sure the bot doesn't
  32. # reply to itself.
  33. monitor = @contact@mastodon.example
  34. # The full names of each account you want to notify when the monitored
  35. # account gets a notification, separated by a comma (but no space!),
  36. # WITH the initial @.
  37. notify = @admin@mastodon.example,@moderator@mastodon.example