Experimental Discord bot written in Python
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

config.sample.py 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # Copy this file to config.py and fill in "<REQUIRED>" values
  2. CONFIG = {
  3. '__config_version': 4,
  4. # -----------------------------------------------------------------------
  5. # General
  6. # Client token obtained from the Discord application dashboard. See setup documentation.
  7. 'client_token': '<REQUIRED>',
  8. # Path to a directory where guild-specific preferences will be stored.
  9. # Each guild's settings will be saved as a JSON file. Path should end with a slash.
  10. 'config_path': 'config/',
  11. # Limit on how many users are tagged in one message.
  12. 'max_members_per_message': 20,
  13. # Minimum seconds between warnings about the same member.
  14. 'squelch_warning_seconds': 300,
  15. # -----------------------------------------------------------------------
  16. # Emojis used for performing actions on flagged activities. The bot will
  17. # post a message in the designated logging channel with one or more
  18. # reaction emojis and an explanation of each action. Adding that emoji
  19. # will perform that action.
  20. # Reaction for kicking a user from the server
  21. 'kick_emoji': '👢',
  22. # Reaction for banning a user from the server
  23. 'ban_emoji': '🚫',
  24. # Reaction for deleting a message
  25. 'trash_emoji': '🗑',
  26. # Reaction for acknowledging a warning but deciding to take no action
  27. 'ignore_emoji': '👍',
  28. # -----------------------------------------------------------------------
  29. # Emojis added to bot messages as general categories. These are just
  30. # decorative for quickly scanning log message types.
  31. # A bot operation completed successfully
  32. 'success_emoji': '✅',
  33. # A bot operation failed
  34. 'failure_emoji': '❌',
  35. # Something happened that mods should probably pay attention to
  36. 'warning_emoji': '⚠️',
  37. # Non-critical information
  38. 'info_emoji': 'ℹ️',
  39. # Logging something that happened on the server (e.g. a user joined the server)
  40. 'log_emoji': '📋',
  41. # A task is in progress
  42. 'wait_emoji': '⏳',
  43. # -----------------------------------------------------------------------
  44. # Default values for cog-specific settings that a guild has not overridden
  45. # through configuration commands. More information about these is available
  46. # from the runtime help commands for each cog.
  47. 'cog_defaults': {
  48. 'AutoKickCog': {
  49. 'enabled': False,
  50. 'bancount': 0,
  51. 'offlineonly': False,
  52. },
  53. 'CrossPostCog': {
  54. 'enabled': False,
  55. 'dupewarncount': 3,
  56. 'warncount': 5,
  57. 'dupebancount': 9999,
  58. 'bancount': 9999,
  59. 'minlength': 1,
  60. 'timespan': 60,
  61. },
  62. 'JoinAgeCog': {
  63. 'enabled': False,
  64. 'jointime': 3600,
  65. },
  66. 'JoinRaidCog': {
  67. 'enabled': False,
  68. 'joincount': 5,
  69. 'jointime': 5,
  70. },
  71. 'LoggingCog': {
  72. 'enabled': False,
  73. },
  74. 'URLSpamCog': {
  75. 'enabled': False,
  76. 'joinage': 900, # Should be > 600 due to Discord-imposed waiting period
  77. 'action': 'nothing', # "nothing" | "modwarn" | "delete" | "kick" | "ban"
  78. 'deceptiveaction': 'nothing', # "nothing" | "modwarn" | "delete" | "kick" | "ban"
  79. },
  80. },
  81. }