em_server_accounts.rb 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # .. allowed commands .. ROLES = CAPABILITIES
  2. # normal users have ROLE broadcast. Roles are defined on a per-user basis .. in a config.
  3. $version = "0.6em_specservers_dupe_election"
  4. $debug = 0
  5. $role_commands = Hash[
  6. #noinspection RubyStringKeysInHashInspection
  7. 'everyone' => %w(PING WHO C PART),
  8. 'broadcast_admin' => %w(BC_ID BC BC_ENDCOUNT),
  9. 'broadcast' => %w(REQ_BC BC_RE),
  10. 'specbot_admin' => %w(REQ_ASSIGN REQ_UNASSIGN REQ_PING REQ_ASSIGNMENTS REQ_MAXSERVERS DUPECHECK ELECTION),
  11. 'specbot' => %w(ASSIGN_RE UNASSIGN_RE PING_RE ASSIGNMENTS_RE REQ_DNS MAXSERVERS_RE),
  12. ]
  13. $default_role = "everyone"
  14. # which role is talking to which role?
  15. # effectively it says: this (local) command is sent to that (remote) topic .. that certain topic is read by that user with that role.
  16. $role_dialogs = Hash[
  17. #noinspection RubyStringKeysInHashInspection
  18. 'everyone' => %w(everyone),
  19. 'broadcast_admin' => %w(broadcast),
  20. 'broadcast' => %w(broadcast_admin),
  21. 'specbot_admin' => %w(specbot),
  22. 'specbot' => %w(specbot_admin),
  23. ]
  24. $user_roles = Hash[
  25. #noinspection RubyStringKeysInHashInspection
  26. 'paul_tester' => %w(everyone broadcast specbot_admin),
  27. 'paul_dev_eggdrop' => %w(everyone broadcast),
  28. 'paul_eggdrop' => %w(everyone broadcast),
  29. 'paul_dev_specbot' => %w(everyone broadcast specbot),
  30. 'paul_specbot' => %w(everyone broadcast specbot),
  31. 'qw.nu' => %w(everyone broadcast),
  32. 'qw.nu_poster' => %w(everyone broadcast),
  33. 'mihawk_devA_specbot' => %w(everyone broadcast specbot),
  34. 'mihawk_devB_specbot' => %w(everyone broadcast specbot),
  35. 'mihawk_specbot' => %w(everyone broadcast specbot),
  36. 'armitage_specbot' => %w(everyone broadcast specbot),
  37. 'blaze_specbot' => %w(everyone broadcast specbot),
  38. ]