Experimental Discord bot written in Python
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

config.sample.py 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # Copy this file to config.py and fill in "<REQUIRED>" values
  2. CONFIG = {
  3. '__config_version': 5,
  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. # Whether the Discord app has Message Content intent enabled. Enables more
  16. # features but requires applying for access for bots serving 10k or more users.
  17. 'has_message_content_intent': False,
  18. # Whether the Discord app has Server Members intent enabled. Enables more
  19. # features but requires applying for access for bots serving 10k or more users.
  20. 'has_members_intent': False,
  21. # -----------------------------------------------------------------------
  22. # Emojis used for performing actions on flagged activities. The bot will
  23. # post a message in the designated logging channel with one or more
  24. # reaction emojis and an explanation of each action. Adding that emoji
  25. # will perform that action.
  26. # Reaction for kicking a user from the server
  27. 'kick_emoji': '👢',
  28. # Reaction for banning a user from the server
  29. 'ban_emoji': '🚫',
  30. # Reaction for deleting a message
  31. 'trash_emoji': '🗑',
  32. # Reaction for acknowledging a warning but deciding to take no action
  33. 'ignore_emoji': '👍',
  34. # -----------------------------------------------------------------------
  35. # Emojis added to bot messages as general categories. These are just
  36. # decorative for quickly scanning log message types.
  37. # A bot operation completed successfully
  38. 'success_emoji': '✅',
  39. # A bot operation failed
  40. 'failure_emoji': '❌',
  41. # Something happened that mods should probably pay attention to
  42. 'warning_emoji': '⚠️',
  43. # Non-critical information
  44. 'info_emoji': 'ℹ️',
  45. # Logging something that happened on the server (e.g. a user joined the server)
  46. 'log_emoji': '📋',
  47. # A task is in progress
  48. 'wait_emoji': '⏳',
  49. # -----------------------------------------------------------------------
  50. # Default values for cog-specific settings that a guild has not overridden
  51. # through configuration commands. More information about these is available
  52. # from the runtime help commands for each cog.
  53. 'cog_defaults': {
  54. 'AutoKickCog': {
  55. 'enabled': False,
  56. 'bancount': 0,
  57. 'offlineonly': False,
  58. },
  59. 'CrossPostCog': {
  60. 'enabled': False,
  61. 'dupewarncount': 3,
  62. 'warncount': 5,
  63. 'dupebancount': 9999,
  64. 'bancount': 9999,
  65. 'minlength': 1,
  66. 'timespan': 60,
  67. },
  68. 'JoinAgeCog': {
  69. 'enabled': False,
  70. 'jointime': 3600,
  71. },
  72. 'JoinRaidCog': {
  73. 'enabled': False,
  74. 'joincount': 5,
  75. 'jointime': 5,
  76. },
  77. 'LoggingCog': {
  78. 'enabled': False,
  79. },
  80. 'URLSpamCog': {
  81. 'enabled': False,
  82. 'joinage': 900, # Should be > 600 due to Discord-imposed waiting period
  83. 'action': 'nothing', # "nothing" | "modwarn" | "delete" | "kick" | "ban"
  84. 'deceptiveaction': 'nothing', # "nothing" | "modwarn" | "delete" | "kick" | "ban"
  85. },
  86. },
  87. }