config.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. b"guest@andrewyu.org",
  81. }
  82. },
  83. b"#hackers@" + server_name: {
  84. "broadcast_to": {
  85. b"andrew@andrewyu.org",
  86. b"lurk@andrewyu.org",
  87. b"Noisytoot@andrewyu.org",
  88. b"luk3yx@andrewyu.org",
  89. b"hax@andrewyu.org",
  90. b"vitali64@andrewyu.org",
  91. b"idcbot@andrewyu.org",
  92. }
  93. },
  94. }
  95. guilds = {
  96. b"idc": {
  97. "users": {
  98. b"@andrew@andrewyu.org",
  99. b"@lurk@andrewyu.org",
  100. b"@Noisytoot@andrewyu.org",
  101. b"@luk3yx@andrewyu.org",
  102. b"@hax@andrewyu.org",
  103. b"@vitali64@andrewyu.org",
  104. b"@idcbot@andrewyu.org",
  105. },
  106. "channels": {
  107. b"testing@andrewyu.org",
  108. b"protocol@andrewyu.org",
  109. b"server@andrewyu.org",
  110. b"client@andrewyu.org",
  111. b"general@andrewyu.org",
  112. },
  113. }
  114. }
  115. motd = b"""Hi there! This is the best IDC server you'll ever encounter. Good luck!"""