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

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. # 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. '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. }