Experimental Discord bot written in Python
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. # 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. # A task is in progress
  44. 'wait_emoji': '⏳',
  45. # -----------------------------------------------------------------------
  46. # Default values for cog-specific settings that a guild has not overridden
  47. # through configuration commands. More information about these is available
  48. # from the runtime help commands for each cog.
  49. 'cog_defaults': {
  50. 'AutoKickCog': {
  51. 'enabled': False,
  52. 'bancount': 0,
  53. 'offlineonly': False,
  54. },
  55. 'CrossPostCog': {
  56. 'enabled': False,
  57. 'dupewarncount': 3,
  58. 'warncount': 5,
  59. 'dupebancount': 9999,
  60. 'bancount': 9999,
  61. 'minlength': 1,
  62. 'timespan': 60,
  63. },
  64. 'JoinAgeCog': {
  65. 'enabled': False,
  66. 'jointime': 3600,
  67. },
  68. 'JoinRaidCog': {
  69. 'enabled': False,
  70. 'joincount': 5,
  71. 'jointime': 5,
  72. },
  73. 'LoggingCog': {
  74. 'enabled': False,
  75. },
  76. 'URLSpamCog': {
  77. 'enabled': False,
  78. 'joinage': 900, # Should be > 600 due to Discord-imposed waiting period
  79. 'action': 'nothing', # "nothing" | "modwarn" | "delete" | "kick" | "ban"
  80. 'deceptiveaction': 'nothing', # "nothing" | "modwarn" | "delete" | "kick" | "ban"
  81. },
  82. },
  83. }