em_server_accounts.rb 1.7 KB

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