|
|
|
@ -32,7 +32,7 @@ def is_chat_authorized?(message, auth_chat)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def process_command_srvstart(message, command, adm)
|
|
|
|
|
puts "Received command: " + "srvstart".green
|
|
|
|
|
#puts "Received command: " + "srvstart".green
|
|
|
|
|
#pp message
|
|
|
|
|
from_admin = message_from_admin?(message, adm)
|
|
|
|
|
auth_grp = is_chat_authorized?(message, @auth_chat)
|
|
|
|
@ -52,7 +52,7 @@ def process_command_srvstart(message, command, adm)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def process_command_srvstop(message, command, adm)
|
|
|
|
|
puts "Received command: " + "srvstop".red
|
|
|
|
|
#puts "Received command: " + "srvstop".red
|
|
|
|
|
from_admin = message_from_admin?(message, adm)
|
|
|
|
|
auth_grp = is_chat_authorized?(message, @auth_chat)
|
|
|
|
|
if ! auth_grp && ! from_admin
|
|
|
|
|