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

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