config.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import entities
  2. class listen:
  3. port = 1025
  4. server_name = b"andrewyu.org"
  5. users = {
  6. b"guest@" + server_name: {
  7. "password": b"guest",
  8. "bio": b"Guest",
  9. "permissions": set(),
  10. "options": ["offline-messages", "eat-cookies"],
  11. },
  12. b"Noisytoot@" + server_name: {
  13. "password": b"pissnet",
  14. "bio": b"Ron",
  15. "permissions": {"kill", "new-guild"},
  16. "options": ["offline-messages", "eat-cookies"],
  17. },
  18. b"andrew@" + server_name: {
  19. "password": b"hunter2",
  20. "bio": b"Andrew Yu",
  21. "permissions": {"kill", "new-guild"},
  22. "options": ["offline-messages", "eat-cookies"],
  23. },
  24. b"hax@" + server_name: {
  25. "password": b"lurk",
  26. "bio": b"Professional h4xx0r",
  27. "permissions": {"kill", "new-guild"},
  28. "options": ["offline-messages", "eat-cookies"],
  29. },
  30. b"luk3yx@" + server_name: {
  31. "password": b"billy",
  32. "bio": b"Random bot",
  33. "permissions": {"kill", "new-guild"},
  34. "options": ["offline-messages", "eat-cookies"],
  35. },
  36. b"idcbot@" + server_name: {
  37. "password": b"",
  38. "bio": b"#IDC relay bot",
  39. "permissions": {"kill", "new-guild"},
  40. "options": ["offline-messages", "eat-cookies"],
  41. },
  42. b"speechbot@" + server_name: {
  43. "password": b"",
  44. "bio": b"#librespeech relay bot",
  45. "permissions": {"kill", "new-guild"},
  46. "options": ["offline-messages", "eat-cookies"],
  47. },
  48. b"vitali64@" + server_name: {
  49. "password": b"hello",
  50. "bio": b"Nice person",
  51. "permissions": {"kill", "new-guild"},
  52. "options": ["offline-messages", "eat-cookies"],
  53. },
  54. b"lurk@" + server_name: {
  55. "password": b"HQWkf36lIttHBYGifwvcjso6RGPN2Ne_frrt6FpP3qc",
  56. "bio": b"Random human",
  57. "permissions": {"kill"},
  58. "options": ["bot"],
  59. },
  60. }
  61. guilds = {
  62. b"haxxors@" + server_name: {
  63. "description": b"Haxxors guild",
  64. "user_roles": [],
  65. "channels": [],
  66. "users": {b"Andrew", b"lurk"},
  67. "roles": [],
  68. }
  69. }
  70. channels = {
  71. b"librespeech@" + server_name: {
  72. "broadcast_to": {
  73. b"@andrew@andrewyu.org",
  74. b"@Noisytoot@andrewyu.org",
  75. b"@lurk@andrewyu.org",
  76. b"@luk3yx@andrewyu.org",
  77. b"@hax@andrewyu.org",
  78. b"@vitali64@andrewyu.org",
  79. b"@speechbot@andrewyu.org",
  80. }
  81. },
  82. b"hackers@" + server_name: {
  83. "broadcast_to": {
  84. b"@andrew@andrewyu.org",
  85. b"@lurk@andrewyu.org",
  86. b"@Noisytoot@andrewyu.org",
  87. b"@luk3yx@andrewyu.org",
  88. b"@hax@andrewyu.org",
  89. b"@vitali64@andrewyu.org",
  90. b"@idcbot@andrewyu.org",
  91. }
  92. },
  93. }
  94. guilds = {
  95. b"idc": {
  96. "users": {
  97. b"andrew@andrewyu.org",
  98. b"lurk@andrewyu.org",
  99. b"Noisytoot@andrewyu.org",
  100. b"luk3yx@andrewyu.org",
  101. b"hax@andrewyu.org",
  102. b"vitali64@andrewyu.org",
  103. b"idcbot@andrewyu.org",
  104. },
  105. "channels": {
  106. b"testing@andrewyu.org",
  107. b"protocol@andrewyu.org",
  108. b"server@andrewyu.org",
  109. b"client@andrewyu.org",
  110. b"general@andrewyu.org",
  111. },
  112. }
  113. }
  114. motd = b"""Hi there! This is the best IDC server you'll ever encounter. Good luck!"""